Re: Debugging a simple executable on WinCE



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;
}



.