Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Visual C++ Zna li neko gde gresim?

[es] :: C/C++ programiranje :: Visual C++ Zna li neko gde gresim?

[ Pregleda: 2500 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

mzsmomic
Momic Zoran
Beograd

Član broj: 77694
Poruke: 16
..njuel-bg.customer.sbb.co.yu.



Profil

icon Visual C++ Zna li neko gde gresim?26.01.2006. u 15:52 - pre 221 meseci
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!
 
Odgovor na temu

[es] :: C/C++ programiranje :: Visual C++ Zna li neko gde gresim?

[ Pregleda: 2500 | Odgovora: 0 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.