Re: New to VS2008 AND Windows CE



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
.



Relevant Pages

  • Re: Nick and DevCo, plz see
    ... is to be able to debug the app while it is running on Vista. ... I suppose that would be a motivation. ...
    (borland.public.delphi.non-technical)
  • Re: Porting BHO to Vista
    ... I have read about IE under Vista being run in a protected mode that is very restrictive, so I ran it this morning "As Administrator" and found that the communication suddenly started working. ... I was able to send messages to my interactive app and in one test, I believe I was able to send messages the other way as well, but I need to verify that. ... I have not found that I can write data to a log file yet, but I have found that when dealing with hooks and the BHO, there are times that setting breakpoints and stepping through the code doesn't work well, so logging is sometimes the only way to see what is going on. ... how can I debug into this module? ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: Deployment under Vista
    ... combination of a special path designated by Windows and the current ... Consequently, under Vista CSIDLs were changed into KNOWNFOLDERIDs, ... Let's call my app Fred.exe and it uses say two random access files, ... The Install suggests that the app is placed in C:\Programs. ...
    (microsoft.public.vb.general.discussion)
  • Re: Deployment under Vista
    ... Outlook apparently does not easily allow me step ... this app works perfectly under XP Home. ... The Install suggests putting the app where you set it to. ... you're breaking the Vista rules by putting data in a Program ...
    (microsoft.public.vb.general.discussion)
  • Re: Deployment under Vista
    ... combination of a special path designated by Windows and the current ... Consequently, under Vista CSIDLs were changed into KNOWNFOLDERIDs, ... Let's call my app Fred.exe and it uses say two random access files, ... The Install suggests that the app is placed in C:\Programs. ...
    (microsoft.public.vb.general.discussion)