2 of 2 people found this helpful
I seem to recall running across this when I first started developing vb.net applications. I believe the problem is that you are building your application as an 64 bit application instead of a 32 bit application.
To get around this (in VB Express), go build, configuration manager, and make sure that the platform is set to x86 instead of Any CPU.
- This is what I found on the MSDN website in regard to your suggestion:
- Target CPU
This setting specifies whether the compiler should optimize compilation for a specific CPU type, for example, a 64-bit processor. Select AnyCPU, x86, x64, or Itanium from the list. By default, this option is set to AnyCPU, specifying that the compiler not optimize compilation for a specific CPU type.
Since I use the Express version, I am out of luck on that one.
Any other ideas for those who might be using the Express edition?
What version of VB Express are you using?
2010. I was using 2008 on my Windows XP machine and installed 2010 when I got my Windows 7 machine.
The Visual Basic Express can't select a CPU type on GUI.
You can compile as 32-bit application by describing the following to a vbproj file.
Please add a postscript into <PropertyGroup>.
In the case of 64 bits.
Evevn though VB Express does not support opimization, it is still (most likely) compiling the applicaiton as a 64-bit application. The calls in the code are then trying to find 64-bit versions of the Mentor tools.
Tools --> Options --> Projects and Solutions-->General Check "Show advanced build configurations"
If "Configuration Manager" doesn't show on the Bulid menu, add it and click it.
Active Solution Platform --> New --> Type or select the new platform x86
Switch to the SharpDevelop IDE. It's also free and you can specify which CPU flavors to build for.
It supports all the same COM interfaces as VB express. I have had no problems using it now for several years, with all the different Mentor tools. It also makes it easy to specify and/or convert from one version of the .net framework to another. Any version from 2.0 to 4.5. It also has conversion utilities you can use to covert back and forth between c++, c#, vb.net, and several other languages.
I also like the text editor better.
If I write scripts using the SharpDevelop IDE, do all machines that run the scripts also need the SharpDevelop IDE installed?
Once the program is compiled, the only thing that is needed on other PCs would be whatever version of .net you built the program on.
No. The executables and associated runtime files it creates when you compile are completely stand-alone. The only things you have to watch out for are making sure the .net version you build to is low enough for all the user machines, and that the CPU you specify in the build is most common - 32 bit any processor.