CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Apr 1999
    Posts
    4

    Determine if app is 16-bit

    I need a way to determine if an application I'm about to do a createprocess on is a 16-bit or 32-bit application

    Thanks


  2. #2
    Join Date
    May 1999
    Posts
    17

    Re: Determine if app is 16-bit

    Perhaps you could look at the .exe's header. It would require you study the header of each type, or have some exe header info. There might be an easier way, but I don't know what it is.


  3. #3
    Join Date
    Apr 1999
    Posts
    4

    Re: Determine if app is 16-bit

    Actually, we can do a right click on the executable, select QuickView, and see in the header information that the application is 16-bit. But we need a way to do this in a Visual C++ application. If I new how QuickView get's it's info, that would be helpful.

    Thanks


  4. #4
    Join Date
    May 1999
    Location
    Oregon, USA
    Posts
    302

    Re: Determine if app is 16-bit

    Have a look at an MSDN sample called YAHU which stands for Yet Another
    Header Utility. It has code that analyzes the header of executables.
    It should be available on-line and on the CDROMs.




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

Featured