Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!rpi!clarkson!PKSMRVM.vnet.ibm.com!KENKAHN From: kenkahn@pksmrvm.vnet.ibm.com (Kenneth A. Kahn) Newsgroups: comp.os.os2.programmer Subject: Starting a (PM) program Message-ID: <9105231034.AA07438@grape.ecs.clarkson.edu> Date: 23 May 91 10:47:53 GMT Lines: 10 For one thing the define for your file is incorrect. It should be: #define START_PROGRAM "c:\\bin\\pmview.exe" Note the use of double slashes "\\" which are required by C. Another thing to consider is the type of the program making the DosExecPgm call. This API can be used only to start a program of the same type as yours; i.e. you can only start a PM program from another PM program, a Full Screen program from a Full Screen program, etc.. If you want to start a PM program from a Full Screen or VIO Window program you need to use DosStartSession.