MFC中如何调用一个纯SDK的程序呢,比如调用一个函数,然后就会出来这个SDK程序的运行效果

MFC中怎么调用一个纯SDK的程序呢,比如调用一个函数,然后就会出来这个SDK程序的运行效果
RT

------解决方案--------------------
ShellExecute 

CreateProcess
------解决方案--------------------
C/C++ code
        STARTUPINFO si;
        PROCESS_INFORMATION pi;

        ZeroMemory( &si, sizeof(si) );
        si.cb = sizeof(si);
        si.dwFlags |= STARTF_USESHOWWINDOW;
        si.wShowWindow = SW_SHOWMAXIMIZED;
        ZeroMemory( &pi, sizeof( pi ) );

        strcat( exe, g____space );
        strcat( exe, filename );
        // Start the child process. 
        if( !CreateProcess( NULL, // No module name (use command line). 
            exe, // Command line. 
            NULL,             // Process handle not inheritable. 
            NULL,             // Thread handle not inheritable. 
            FALSE,            // Set handle inheritance to FALSE. 
            0,                // No creation flags. 
            NULL,             // Use parent's environment block. 
            NULL,             // Use parent's starting directory. 
            &si,              // Pointer to STARTUPINFO structure.
            &pi )             // Pointer to PROCESS_INFORMATION structure.
        ) 
        {
            AfxMessageBox( "CreateProcess failed." );
        }

------解决方案--------------------
WinExec("NOTEPAD.EXE atdata.txt",SW_SHOW);