How to execute this
-
hi i have the string as str1 and then concatenated in str2 and now i have to execute it str1="\"c:\Program Files\Demo\xyz.dll\"" ; str1="regsvr32.exe /u " + str1; how can i execute this programatically. Itried with ShellExecute and system but it does not work waiting for reply Best Regards
-
hi i have the string as str1 and then concatenated in str2 and now i have to execute it str1="\"c:\Program Files\Demo\xyz.dll\"" ; str1="regsvr32.exe /u " + str1; how can i execute this programatically. Itried with ShellExecute and system but it does not work waiting for reply Best Regards
Try this string sFile(_T("regsvr32")); string sParam(_T("/u \"F:\\Data\\MAPIProp\\mapiprop.dll\"")); ::ShellExecute(NULL,_T("open"),sFile.c_str(),sParam.c_str(),0,SW_SHOW);
-
hi i have the string as str1 and then concatenated in str2 and now i have to execute it str1="\"c:\Program Files\Demo\xyz.dll\"" ; str1="regsvr32.exe /u " + str1; how can i execute this programatically. Itried with ShellExecute and system but it does not work waiting for reply Best Regards
u can find source code of regsvr32.exe in VC++ samples, which is just a few of lines. add the few lines inside ur app, things will be much easier and better - then you do not need regsvr32.exe again. includeh10