Results 1 to 6 of 6

Thread: Running a C++ exe on WinXPe

  1. #1

    Thread Starter
    Hyperactive Member Sneeden's Avatar
    Join Date
    Oct 2001
    Location
    Sneedville
    Posts
    258

    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
    balls deep in bad code

  2. #2
    Junior Member
    Join Date
    Sep 2006
    Posts
    28

    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.

  3. #3

    Thread Starter
    Hyperactive Member Sneeden's Avatar
    Join Date
    Oct 2001
    Location
    Sneedville
    Posts
    258

    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?
    balls deep in bad code

  4. #4
    Junior Member
    Join Date
    Sep 2006
    Posts
    28

    Re: Running a C++ exe on WinXPe

    Is your program written in just C++ or C++ .NET or MFC or what?

  5. #5

    Thread Starter
    Hyperactive Member Sneeden's Avatar
    Join Date
    Oct 2001
    Location
    Sneedville
    Posts
    258

    Re: Running a C++ exe on WinXPe

    I was written with VC7 as a console application. No .net anything involved.
    balls deep in bad code

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594

    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.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width