Luke_Dunstan

Hi,

I am having a lot of trouble getting Microsoft eMbedded Visual C++ 4.0 to work on Windows Vista Business 32-bit.

I need to install the following things:

1. eVC4 itself, which also installs:

1a. Windows CE Platform Manager 4.0

1b. Standard SDK for Windows CE .NET

2. eVC4 service pack 4

3. An SDK for a custom Windows CE 4.x platform

Firstly, during the Platform Manager setup it tries to install a driver for the emulator, and whether or not I allow this, the driver does not run on Vista and the installer gives an error asking whether I want to continue, so I say Yes. I don't need to use the emulator so I would rather not install this driver (especially since it gives a warning every time I boot my PC), but I am concerned that this may be breaking the installation even though it says that it has finished successfully.

After installing all of the packages, which appears to succeed, running eVC4 as a normal user causes it to crash at startup. Running it as administrator allows it to run, but none of the SDKs are available so I can't even create a new test project.

I have tried many variations of the installed packages. For example, running the Platform Manager setup independently does not work (as administrator or not). I tried running eVC4 without service pack 4, and I somehow got it to compile an application (only one of the SDKs was available), but this is not acceptable because I can't use the correct SDK and I need the service pack. I've tried choosing not to install the Standard SDK during the eVC4 setup, and it does not help.

I suspect that the problem is something to do with the registry, but I don't know how to fix it.

I don't have VS2005, and even if I did, it would not help me build applications for our CE 4.2 platform.

Luke



Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Gangadhar Heralgi - MSFT

eVC is not an application to run on Vista. If you like to work on Vista you have no option but to use Visual Studio 2005 or Orcas Beta which has been released recently.

If eCV is somethign that you like to work with, then you can not have it running on Vista - you would have to go for a Win XP machine.

Thanks,

Gangadhar Heralgi





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Luke_Dunstan

Thank you for your response. Unfortunately, as I said in the original message, I need to use eVC4 because I am developing applications for Windows CE 4.2. Or are you suggesting that it is possible to use newer tools to target CE4.2

Can you please explain exactly why eVC4 does not work on Vista Isn't there some sort of workaround I would really appreciate more information on why it is so difficult.

Luke





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Christopher Fairbairn

Hi,

Luke_Dunstan wrote:
Can you please explain exactly why eVC4 does not work on Vista Isn't there some sort of workaround I would really appreciate more information on why it is so difficult.

eVC4 is almost at the end of it's mainstream support timeframe (see http://support.microsoft.com/gp/lifeselectdevtools for further details) so I assume there's not a large commercial incentive to make it work on Vista.

Vista with it's various changes (in particular security orientated) have caused numerious problems for development tools. Microsoft does not even officially support running older versions of Visual Studio under Vista, as can be seen in the following webpages:

One "solution" is to run a copy of the program in a virtual machine running Windows XP within your Vista machine. I can't explain the specifics of what doesn't work with eVC4 under Vista (since I havn't tried installing it myself).

Hope this helps,

Christopher Fairbairn






Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Gangadhar Heralgi - MSFT

Yes, that is right, eVC is at the end of its support timeframe. If you have to work with eVC, you have no way of getting it to work on Vista, with tons of changes in the way Vista works (and most of them with security changes, the depricated APIs that were supported in previous versions of Windows etc), I can not just comment on why a binary compiled with previous versions of windows just can not be made to work on Vista. There are no plans to make eVC work on Vista, hence I would suggest you work with previous versions of Vista if you like to use eVC.

In fact VS 2005 has some problems working with Vista, we had to make some fixes in VS 2005 SP, to get it working on Vista.

Thanks,

Gangadhar





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Luke_Dunstan

For eVC4 I have tried running the installers and applications as administrator on Vista, and I have tried using dcomcnfg to configure the cemgr.exe COM server to run as an administrator too, but eVC4 still crashes at startup. I even wrote scripts to invoke the Platform Manager API but now I suspect the problem is somewhere else.

I have run eVC4 in Microsoft Virtual PC 2007 with a Windows XP guest OS, and this has been successful so far. I can debug a target device over Ethernet but I guess it will be impossible to develop applications for a Pocket PC because the USB ActiveSync connection cannot work on a virtual PC (correct me if I'm wrong).

Overall I am very disappointed that Microsoft refuse to fix one of their own applications that is only 5 years old to allow it to work on their own operating system. I don't see why Microsoft cannot provide detailed information on why it doesn't work and how to work around the problems without forcing me to buy an extra license for an older OS. This is not some mysterious third party application; Microsoft obviously has the source code. Even the very similar Visual C++ 6.0 works fine on Vista for me. Microsoft could even release the source code for eVC4 to allow someone else to fix it.

Luke





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Stapunov

Gangadhar Heralgi - MSFT wrote:

eVC is not an application to run on Vista. If you like to work on Vista you have no option but to use Visual Studio 2005 or Orcas Beta which has been released recently.

If eCV is somethign that you like to work with, then you can not have it running on Vista - you would have to go for a Win XP machine.

Thanks,

Gangadhar Heralgi

MS Visual Studio 2005 (VS) run on Vista it is a fact. Please, tell me how i can develop program for smartphone on VS without compact framework It is nessesary that it should work on device without compact framework.





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Christopher Fairbairn

Hi,

Stapunov wrote:
Please, tell me how I can develop program for smartphone on VS without compact framework It is nessesary that it should work on device without compact framework.

Your only option would be to utilise a different development platform. In this case your best bet (especially if you still desire to utilise Visual Studio) would be to develop your application in native C or C++ code.

If you have installed Visual C++ as part of your Visual Studio 2005 install, within the New Project dialog you should be able to see a "Smart Devices" section underneath the Visual C++ subtree. This will give you the three main choices of GUI frameworks to develop against, ATL, MFC or raw Win32.

Alternativly (depending upon your target device(s)) you may be able to still develop your application within managed code for the Compact Framework by choosing to use an older version of the framework. Windows Mobile 5.0 devices contain CF1.0 within ROM for example, meaning no additional framework installation is required if you only target this version of the Operating System, newer devices include CF2.0 within ROM.

Hope this helps,

Christopher Fairbairn






Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Filipe Madureira

Hi,

I found kind of a workaround. It is not very nice, but it is the only way.

I have VS2005 installed. When I run evc4 it crashes and Windows asks me if I want to debug the application.

I say "yes" and choose to debug it with VS2005.

Then, in VS2005 I stop the application and start it again :"Debug"->"Start Debuging".

Like this it starts just fine. The only problem is that V2005 needs to be open to run evc4.

It seems this is the only solution for some us, since XP is sometimes no longer an option.

I bought a new Laptop from ASUS, and they do not provide any drivers for XP, so I am forced to use VISTA.





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Todd Saylor

Very nice workaround, thanks! There's got to be just some small incompatibility there, as I've had eVC successfully running under Vista in the past. In fact, at one point it stopped working and I was able to get it running again by rolling back to an earlier save point (using the safe mode restore features). Since then it has broken again, presumably due to another update. If someone with the source code were willing to step into this crash, it seems like the problem may be fairly obvious. Oh well ... at least we have this workaround.





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Goran Mitrovic

I must say that I'm deeply disappointed by incompetant and generic Microsoft answers.

Tons of changes in Vista my ***.

It's enough just to disable UAC prior to SDK install. It can be done, for example, with msconfig utility.





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Marco Cocco

To run EVC 4 on Windows Vista select EVC.EXE, right click it and choose Properties. Now select the Compatibility tab, enable "Run this program in compatibility mode for", from the list choose "Windows 98" or "Windows 98/Window ME".

That's all.





Re: Smart Devices Native C++ Development MS eMbedded Visual C++ 4.0 on Vista

Todd Saylor

Great find! Thanks, this is working for me as well.