Running a C++ exe on WinXPe
Help yall (cornered bee, Mr. Pro)
I have written a small exe file that changes a couple or registry settings, then restarts explorer.exe. This program takes mandatory command line parameters. If not given, syntax info is given on stdout.
The testing:
When compiled and run on command line on my dev machine, all works as expected. If params are not given, the syntax info is printed. If all params are present, the reg settings are changed, explorer restarted..... it works fine.
The problem:
This was written to run on a XP embedded system. This system is somewhat stripped down from a standard XP install. When this app is run from command line, and no params given, it just goes straight back to the command prompt. No syntax info is printed. Furthermore, if the params are entered, the program does nothing. Registry is not touched.
I would imagine if some support libraries or dlls needed to be present that the program would crash, or windows would complain.
Does anyone have any idea why it is acting this way? I am about to monitor it with filemon and regmon to see if I can identify anything weird going on.
Will post if I find anything.
thx
Re: Running a C++ exe on WinXPe
Have you tried debugging your application to see what line(s) aren't working? That may help to find the rough source of your problem.
Re: Running a C++ exe on WinXPe
well, the thing is that it works on my Dev machine. It doesn't on the target machine (the ones that it will be run on).
After some inspection with Filemon, it is reading from the .net framework even though I didn't use any of it. I used strict WIN32 API. Is there some compiler options that I can change to either compile in what it needs, or compile in a way that it won't use it?
Re: Running a C++ exe on WinXPe
Is your program written in just C++ or C++ .NET or MFC or what?
Re: Running a C++ exe on WinXPe
I was written with VC7 as a console application. No .net anything involved.
Re: Running a C++ exe on WinXPe
I don't have any experience with XPe whatsoever, but does it even have a console?
I.e. see if a simple Hello, World! console app shows anything.