Re: New to VS2008 AND Windows CE
- From: Tony Hedge <tonyatbenthicsciencesdotcodotuk>
- Date: Thu, 12 Mar 2009 12:24:12 +0000
OK, I'll have a go at (3)!
Not sure if it will work on Vista, but under Xp the easiest way to debug a CE5.0 app from VS2008 (if you cannot get ActiveSync going) is to use CoreCon connectivity. There is an article in the Microsoft CE blogs on it, or try searching on here under CoreCon. The Microsoft article by Mike Hall is:
http://blogs.msdn.com/mikehall/archive/2006/10/03/CE-6.0_3A00_-Writing-a-managed-application-using-VS-2005_2E00_.aspx
Don't be put off by the fact that the title suggests it's irrelevant - I know you want to debug a native code app under CE5 from VS2008 - the CoreCon part is exactly the same.
Some pitfalls - you may find that your CE5.0 device has some CoreCon components built into the image, but they are obsolete and incompatible with VS2008. In which case you need to find some way of transferring the new ones from your host to your target. You say you have FTP running, so you should be able to use that.
Don't be surprised that you are struggling - getting host tools to connect to the target is actually astoundingly difficult in CE, because of the number of technologies Microsoft have been through. But once you succeed, you'll start making progress!
Good luck
Tony
AliSmith wrote:
Hi, I'm really struggling here. I've worked with VS2003 aqnd VS2005 before, though not a lot. I've now started a new project which involves developing an application using VS2008 (C++) under Vista to run on a Windows CE 5.0 device. I've managred to build a (very) simple app in VS2008 just to show a Message Box:.
#include <windows.h>
int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPWSTR lpCmdLine, int nCmdShow) {
MessageBox (NULL, TEXT ("Hello World"), TEXT ("Hello"), MB_OK);
return 0;
}
After I've built it I FTP the exe over to my CE device (since it seems Vista and CE 5.0 are not compatible for ActiveSync or Mobile Device Centre). But when I run the exe, I get the error 'Cannot find <file> (or one of its components)...' etc. So presumably I'm missing DLLs or something. I have three queries really:
1) How can I tell what I'm missing?
2) Can I build using static libraries in VS2008? I can;t see how to do that if it's possible.
3) Is there any way of debugging on the target device form VS2008?
Thanks
Ali Smith
- Follow-Ups:
- Re: New to VS2008 AND Windows CE
- From: AliSmith
- Re: New to VS2008 AND Windows CE
- References:
- New to VS2008 AND Windows CE
- From: AliSmith
- New to VS2008 AND Windows CE
- Prev by Date: Re: New to VS2008 AND Windows CE
- Next by Date: Re: How to communicate between PC(XP or vista) and device with Wince by USB ?
- Previous by thread: Re: New to VS2008 AND Windows CE
- Next by thread: Re: New to VS2008 AND Windows CE
- Index(es):
Relevant Pages
|