TCHAR   szCmdLine[_MAX_PATH]   =   TEXT("C://Documents and Settings//gaorudai//My Documents//My Projects//player2//Debug//ffplay.exe ");
        _tcscat(szCmdLine,strPath);
    
        if(   !CreateProcess(NULL,    
                  szCmdLine,    
                  NULL,      
                  NULL,      
                  FALSE,      
                  0, 
                  NULL,      
                  NULL,      
                  &si,   
                  &pi   )  
          )     
          {   
          }        
           
          WaitForSingleObject(   pi.hProcess,   INFINITE   );  以上是程序的部分代码,已知这个程序编译后可执行文件和ffplay.exe在一个文件夹里面。
想把这个绝对路径“C://Documents and Settings//gaorudai//My Documents//My Projects//player2//Debug//ffplay.exe”用相对路径替换掉,使得这个程序的可执行文件和ffplay.exe同时在任意文件夹里面时能够像现在这样成功调用ffplay.exe。
似乎是很菜的问题~~呵呵~~望各位高手指教