Hi, i am using ShellExecute to open an image. The image is opened using Windows Picture and Fax Viewer. Now, I have a button, in my dialog(the UI). I want to close the Windows Picture and Fax Viewer, got any idea? here's my code... please help. its kinda urgent... been stuck on this for 3 days... googled it, but nopthing relevant came out.
// TODO: Add your control notification handler code here
NOPE... IT DOESNT... i get the following errors
c:\documents and settings\user\my documents\visual studio 2005\projects\design\designdlg.cpp(242) : error C2065: 'GetProcessID' : undeclared identifier
c:\documents and settings\user\my documents\visual studio 2005\projects\design\designdlg.cpp(245) : error C2065: 'KillProcess' : undeclared identifier
WM_CLOSE to window.. for example? I tried, but keep getting different error, went to the library of SHELLEXECUTE, all said is optional for hwnd... so i cannot get any example... yup. i do have the proper includes...
When i run the application on a japanese XP/Vista the GetACP() gave me 932 whichi is correct.
Than i changed the code page to 437 thru MOD CON CODEPAGE SELECT=437 command. after this command also GetACP() function returns 932 in both XP and Vista machines. Yes i am running the application in same console in which i have changed the code page.. Can you please suggest whre i am doing wrong..?
Following CLI resurns me a correct argc as 5 (1 name of exe and 4 parameters)
-targetpath "C:\tmp" -targetserver vm-w23-btk02\sql2k5
but if i add \ after tmp , argc is 3
-targetpath "C:\tmp\" -targetserver vm-w23-btk02\sql2k5
so main function ignores all the parameters after "C:\tmp\" and return always 3
but if i put a escape character as "C:\tmp\\" then argc is correct as 5
but since these command is entered by user on command prompt , it is not advisable to ask user to put escape character at the end so what is a soluation to get correct number of count.
Why \ at then end of c:\tmp ignores rest of the parameters ?
Without putting a escape character as "C:\tmp\\" , How can i get correct argc ?
Also if i removed double quotes , then its returns correct argc , Only if a path include quotes and ends with \ then argc is incorrect.
int cMyclass::Main(int argc, char **argv)