evc4

"A duplicate insert block exists for class xx in the source files"

Anyone seen this? If so, would you know how to fix it? In Embedded Visual studios 4. I'm attempting to add a class though the class wizard. Because the file existed already, the first attempt failed. So I deleted the file and attempted to add the class again. Now I get the error message in the subject, and I can't figure out what to...

Normal main to WinCE main

I'm porting an existing (mostly) cross-platform application to WinCE 4.2. The current entry point for the function is int main(int argc, char *argv[]){} I would like to keep this part as-is, and have the WinCE entry point simply call it. I believe something like the following should work: int WINAPI WinMain( HINSTANCE hInstance, ...

Making VS 2008 play nice with eVC 4.0 projects

I would like to contribute to an open-source Windows Mobile project, but it's being developed in eVC 4.0, which flat-out does not work on Vista (feel free to correct me!), and I would prefer to avoid having to dual-boot or remote into my only remaining XP box. I have VS 2008 installed on my main development machine, and got all the SDKs...

ferror(file) == 32

Sometimes, when I open the a file like so: FILE *file = fopen(fname, "wb"); if(!file) printf("Error code: %d\n",ferror(file)); I get a result of 32. What does this mean? Specifically, for eMbedded Visual C++ 4.0 Also, it seems like eVC does not support perror/errno :( Final Update: it seems like the underlying problem was with a la...

Can StandardSDK 4.0 under EVC++ be used to debug on a remote device?

I'm running Embedded Visual C++ 4 with service pack 4, to develop an application for a device running CE 5.0. I'm using the CE 5.0 SDK for this purpose, which works fine except for the fact that while it will target my device (i.e. an SH4 based PDA), it will not let me select anything other than the StandardSDK emulator for debugging. ...

Preventing Debug Spam in eVC4

I have an application that I need to debug on a target system. All the relevant TRACE macros are in place to send messages to the debug window, however, I'm having difficulties in finding a way to prevent the spam there. You see, this application is regularly creating & terminating threads, so I am getting a large amount of "The thread...

How do I find a source code position from an address given by a crash in Window CE

I have a Windows mobile 4.0 application, written using EVC++ 4.0 SP4 with MFC, that is exhibiting a random occasional crash in the field. e.g. Exception ox800000002 at 00112584. It does not happen under various emulators and simulators, hence is very difficult to trace using a debugger. The crash throws up and address and exception t...

Possible to develop "Windows Mobile 6.1" appl. with EVC4 (Embedded Visual C)?

Is it possible to develop "Windows Mobile 6.1" appl. with EVC4 (Embedded Visual C++)? ...

How to use WINAPI from newer SDK but still using the old SDK in WindowsMobile.

Specifically, I want to use Point-to-point Message Queue but because I am still using legacy codes in eVC++ 4 and it only support until PocketPC 2003SE SDK, I cannot find CreateMsgQueue and friends in the headers (the port to newer VisualStudio is still in progess) I am using the Message Queue to do IPC with apps developed with WM-6.5-D...