Re: exe error, works on some pcs but doesnt on others
- From: Giovanni Dicanio <giovanniDOTdicanio@xxxxxxxxxxxxxxxxx>
- Date: Mon, 07 Sep 2009 11:05:23 +0200
Aegis Delacour ha scritto:
Hi..i have a problem where my code when compiled works only on some
PCs for a reason i dont really know. it gives me this error.
this application has failed to start because the application
configuration is incorrect. reinstalling the application may fix the
problem..
here is my code, if it is a compiler error on my part..could someone
compile it and send me the exe please
as i dont have access to visual studio anymore and i need to get this
fixed.
The only compiler error I get is a complain about this line:
HDC hdcScreen = CreateDC("DISPLAY", NULL, NULL, NULL);
when I compiled the code in Unicode mode (the default of VC++2008).
Putting an L before "DISPLAY" fixes that.
The error you mentioned may be caused by a manifest problem, or by lack of VC++ runtime libraries on the machine where you tried to run your app.
I would suggest you to use static linking of CRT to make your life and deployment process easier in this simple case.
You could build the exe yourself from your source code, with the freely available Visual C++ Express 2008:
http://www.microsoft.com/express/vc/
In fact, it seems to me that yours is a pure Win32 C++ project, you are neither using MFC nor ATL, so VC++2008 Express is just fine for building that code.
HTH,
Giovanni
.
- Follow-Ups:
- Re: exe error, works on some pcs but doesnt on others
- From: Joseph M . Newcomer
- Re: exe error, works on some pcs but doesnt on others
- References:
- exe error, works on some pcs but doesnt on others
- From: Aegis Delacour
- exe error, works on some pcs but doesnt on others
- Prev by Date: Re: How to serialize Mfc template dialog class ?
- Next by Date: Re: Strange MFCMaskedEdit behaviour
- Previous by thread: Re: exe error, works on some pcs but doesnt on others
- Next by thread: Re: exe error, works on some pcs but doesnt on others
- Index(es):
Relevant Pages
|