[ mzsmomic @ 26.01.2006. 15:52 ] @
Pravim neku glupost(tj.vezbam)u visual C++-u,ovaj kod bi trebalo da pokrene program koji je naveden u combo box-u ali se to ne desava, zna li neko zasto? //MY CODE STARTS HERE //Get the curent value from the screen UpdateData(TRUE); //Declare a local variable for holding the program name CString strPgmName; //Make the program name all uppercase strPgmName.MakeUpper(); //Did the user select to run the Paint program? if(strPgmName=="PAINT") //Yes,run the Paint program WinExec("pbrush.exe",SW_SHOW); //Did the user select to run the Notepad program? if(strPgmName=="NOTEPAD") //Yes,run the Notepad program WinExec("notepad.exe",SW_SHOW); //Did the user select to run the Solitaire program? if(strPgmName=="SOLITAIRE") //Yes,run the Solitaire program WinExec("sol.exe",SW_SHOW); //MY CODE ENDS HERE ovo je inace iz knjige! |