Re: Debugging a simple executable on WinCE
- From: "jamestheDork" <jamesevangelos@xxxxxxxxx>
- Date: Fri, 29 Apr 2005 10:51:07 -0400
I want to compile in Platform Builder 4.2 and run the following code. I
don't know how to do this in Platform Builder. If anyone can provide some
details on how this is done, I would greatly appreciate it.
#include "stdafx.h"
int WINAPI WinMain( HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPTSTR lpCmdLine,
int nCmdShow)
{
HANDLE hOutDevice;
SetLastError(0);
//COM0: returns the most promising results. -- 0 ERROR_SUCCESS
//TRC1: -- error 55 ERROR_DEV_NOT_EXIST
//GEN1: returns 0, ERROR_SUCCESS as well !
hOutDevice = CreateFile(
TEXT("TRC1:"),
GENERIC_WRITE | GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
0,
NULL);
int iVal = GetLastError();
return 0;
}
.
- Follow-Ups:
- Re: Debugging a simple executable on WinCE
- From: Steve Maillet \(eMVP\)
- Re: Debugging a simple executable on WinCE
- References:
- Debugging a simple executable on WinCE
- From: jamestheDork
- Re: Debugging a simple executable on WinCE
- From: jamestheDork
- Debugging a simple executable on WinCE
- Prev by Date: ActiiveSync double transmission
- Next by Date: Re: Debugging a simple executable on WinCE
- Previous by thread: Re: Debugging a simple executable on WinCE
- Next by thread: Re: Debugging a simple executable on WinCE
- Index(es):