Advertisement

how to execute an *.exe

Started by April 14, 2003 12:55 PM
13 comments, last by biotech 21 years, 10 months ago
LMAO! Just create a windowed OpenGL project and then do your menu stuff in OpenGL. Geeze, was that so hard?

Dustin Davis
Owner / CEO
Programmers Unlimited
www.Programmers-Unlimited.com
Dustin DavisOwner / CEOProgrammers Unlimitedwww.Programmers-Unlimited.com
quote:


what should i do to start an *.exe(like in autorun apps)?




for our collective sanity''s sake, could everyone please try to be more discriptive when asking questions.

thanks.


(this isn''t really directed at biotech, more just as a general request)
Advertisement

Have a look at the ''exec'' functions in the standard C libraries.
These functions replace the current process by a new one.

e.g.: execlp("blah.exe",NULL)

Hope this helps.
ok thanx anonymus&others i will try to do that.

belgrade-yu
belgrade-yu
This will also do the trick...

#include "stdafx.h"
#include <shellapi.h>

int APIENTRY WinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
ShellExecute(NULL,"open","filename.ext","","",SW_SHOW);
return 0;
}

This topic is closed to new replies.

Advertisement