fuccaro Posted July 9, 2011 Posted July 9, 2011 Years ago I wrote some nice applications using VB6 and they worked just fine as at home as at the office. Now at home I downloaded the free VB 2010, I wrote a program and I brought the exe file at work. It runs fine on the computers with Win7 but on those with XP it asks for .Net framework. Without admin rights it would be *very* hard to get any new software installed So my question would be: is there any walk around? Or maybe I should rewrite the program in VB6? Quote
BlackBox Posted July 9, 2011 Posted July 9, 2011 I also use Visual Studio 2010 Express for multiple AutoCAD versions (2009, 2011), and I had to change the framework associated with my project from 4.0 (the VS 2012 Express default) down to 3.5 for it to work. You can make this change on the compile tab (advanced settings) of the project's properties. Also, if you aren't able to launch AutoCAD (the applicable version), and step through breakpoints with VS 2010 Express, I'd be happy to share with you the steps of how to enable these features (works for both C#, and VB.NET). Hope this helps! Quote
Jeff H Posted July 9, 2011 Posted July 9, 2011 Xp did not come with .NET installed look here http://en.wikipedia.org/wiki/Microsoft_.NET They must not have AutoCAD installed or a more recent version since AutoCAd requires it. .Net Framework includes the CLR which is needed to run your .exe Not to go into too much detail but at least .NET client profile must be installed. Quote
fuccaro Posted July 11, 2011 Author Posted July 11, 2011 Many thanks for your answers. I use VB only occasionally as you probably already guessed and I teach myself using the trial-error way. I just registered VS about an hour ago. For the moment I changed the framework from 4 down to 2 and recompiled the code. -I will see tomorrow the result. The computer I tried to use has Windows XP with SP3 and has AutoCAD 2004 installed. RenderMan -also thanks for your help offer, when I will be more advanced I will post my request. For new projects we use Catia and AutoCAD is kept only for the old jobs. Those VB things I try are only for my own pleasure. Quote
BlackBox Posted July 11, 2011 Posted July 11, 2011 Xp did not come with .NET installed look here http://en.wikipedia.org/wiki/Microsoft_.NET They must not have AutoCAD installed or a more recent version since AutoCAd requires it. .Net Framework includes the CLR which is needed to run your .exe Not to go into too much detail but at least .NET client profile must be installed. @Jeff - Purely for my edification (as you know well already that I am new to .NET), despite WinXP not having .NET Framework installed by default, doesn't Visual Studio 2010 Express install up to, and including .NET 4.0 framework automatically? Many thanks for your answers.... RenderMan -also thanks for your help offer, when I will be more advanced I will post my request. For new projects we use Catia and AutoCAD is kept only for the old jobs. Those VB things I try are only for my own pleasure. @Fuccaro - I've learned a lot from your previous posts in the past, and am pleased if I've been able to repay you even slightly. Cheers! Quote
Jeff H Posted July 11, 2011 Posted July 11, 2011 I think it will install just 4.0 by default but you eaisly add 3.5 SP1 to enable multi-targeting Here is a overview of .NET(.NET is a software framework) http://msdn.microsoft.com/en-us/library/a4t23ktk.aspx Quote
Tyke Posted July 12, 2011 Posted July 12, 2011 VB.NET 2010 cannot import VB6 code or VB6 forms. But VB.NET 2008 and 2005 can import your VB6 code and VB6 forms, which makes life so much easier. You should still be able to get hold of a copy of the free VB.NET Express 2008, if not PM me and I'll let you have a copy, as its freely distributable. Kean Walmsley's Autodesk Dev Tech Team have a Magic Macro for converting VBA code for import into VB.NET 2008 and whilst this may not be what you want to do there is a great deal of information on changing VB6 code so it works in VB.NET. I migrate my VBA code using the Magic Macro, import it into VB.NET 2008 and get it working there, after which I open the VB.NET 2008 project in VB.NET 2010 and it is automatically updated to a 2010 project. Quote
fuccaro Posted July 12, 2011 Author Posted July 12, 2011 Tyke In my whole life I wrote no more than 10 VB programs, mostly to test myself. Now I switched to VB2010 for my further applications. So there is not much to convert and no important data to make me cry if I loose them. Your mention of that magic macro could help others searching a solution to their problem. RenderMan Thanks again for your suggestions, the framework 2 thing solved my problem. I've learned a lot from your previous posts in the past Now you made me blush. Jeff Thanks for your observations and links. And... maybe I should mention this before: this project has nothing to do with AutoCAD. For practicing my English I wrote a program that randomly chooses an irregular verb from a list. It displays the first form and the user must enter the other twos. The program runs more or less correctly, now I try to make it to run inside AutoCAD Quote
dbroada Posted July 12, 2011 Posted July 12, 2011 For practicing my English I wrote a program that randomly chooses an irregular verb from a list. It displays the first form and the user must enter the other twos. I've been speaking English my entire life and I don't think I could do that! Quote
BlackBox Posted July 12, 2011 Posted July 12, 2011 @Fuccaro - RenderMan Thanks again for your suggestions, the framework 2 thing solved my problem. You're welcome; glad I could help. @All - Thanks for the information, links, Magic Macro reference, etc. as this is educational for me as well. I've been speaking English my entire life and I don't think I could do that! 1+ LoL Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.