您的位置:首页 > 编程语言

调用opengl程序代码

2012-09-20 11:10 239 查看
// Test_of_callexe.cpp : Defines the entry point for the console application.
//
#include<stdafx.h>
#include <windows.h>
#include <stdio.h>
#include <conio.h>

int main(int argc, char * argv[]) {
STARTUPINFO si = {0};
si.cb = sizeof(si);
PROCESS_INFORMATION pi = {0};

CreateProcess(NULL, "NeNe_lesson2.exe", NULL, NULL, TRUE , 0, NULL, 0, &si, &pi);
CloseHandle(pi.hThread);

WaitForSingleObject(pi.hProcess, -1);

int nExitCode = 0;
::GetExitCodeProcess(pi.hProcess, (LPDWORD)&nExitCode);
CloseHandle(pi.hProcess);

// printf("press any key to continue...\n");

//getchar();
return nExitCode;
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: