Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
I made a basic application for XP in VB 2005. All it does is randomly flash the numbers 2 through 9, as well as A, J, Q, K. (cards in one suit of playing cards). It leaves one of the cards out, and the trick is to try and pick out the missing card quickly.
Anyway, it's a silly little game that I want to be able to take on the go, so I thought I would try and port it to Windows CE 5. I thought it should be easy. I started a Windows CE 5 project in VB 2005, and moved most of the code to it (and redesigned the form to fit on screen)
I can build and deploy without any errors... but, when I try to run the EXE that gets deployed to my device, I get a nasty error:
"Cannot find 'DeviceApplication1' (or one of its components). Make sure the path...."
No idea what's going on - and I've really tried everything before jumping on here for help.
My only clue, is that the same exe (found in the project's "bin" folder) actually runs fine in XP. I wouldn't have thought it should, since it should be compiled for CE 5, right?
Re: Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
I can't say I know what Pinvokes are - so I think probably not. Most of the code is pretty basic. If, Loop, For, etc.
I'm wondering if maybe there are some runtimes that I might need?
The device itself is Windows CE 5.0, but its a device that isn't meant to give access to the CE desktop (it's a GPS). It's quite possible that they only put a really basic bare-bones installation of Windows on it.
Are there runtime libraries, etc, that VB 2005 might rely upon?
Re: Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
Oh, this is interesting -
I tried a CE 5.0 emulator, and my EXE wouldn't run at all (though in this case it didn't give an error either - simply did nothing)
I starting to get increasingly suspicious that I may be deploying or building improperly. To mention this again - the bin EXE file, that in this case I find in:
"......\Projects\Cards CE\DeviceApplication1\DeviceApplication1\bin\Release"
Actually runs, native with no emulator, in Windows XP. Doesn't this indicate that it has simply been built for XP not for CE? If so, why?
Re: Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
Are you creating a cab file for installation on the portable? I don't know that you can simply take the exe from the bin folder, move it to the portable and run it. I've always created cabs....or actually, I always tested on the portable, so the program was already there, but whenever I wanted to re-install, I used a cab file.
Re: Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
Creating cabs is what I was used to when developing in Embedded Visual Basic. I don't seem to be able to find that method in VB 2005.
In EVB there was a "deploy" wizard, or something to that effect, that created the cab files. In VB 2005, it just seems to have build/deploy. Can't tell how to export a cab?
Re: Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
Hmmm, I can find it right now, either. I think it was on the Build menu, but I'd have to switch to a different computer to check it out. That won't happen for a few hours, hopefully someone else will have a solution for you before that.
Re: Porting a VB 2005 (XP) app to Win CE 5.0 is HARD! Help?
I had the same problem, also with a mobile C# application.
It seems to me that only the application .exe file is deployed and not the additonal .NET Compact Framework dll's for f. i. winforms support which is needed by an application dealing with forms.
I don't know, however sofar, why Visual Studio 2005 doen't deploy those additional libraries to the device. Maybe ask Microsoft ?
Before this I developed several professional barcode scanner aplications for Win CE 4.2 devices with Visual Studio 2003 and there the additional .NET CF dll's installed perfectly into the Windows directory onto the device, where they should be !