How to unload dlls
-
HI I am getting an application path from file. and i have all the dll in the folder named component. for eg, C:\Program Files\Demo\Components and i am retreiving dll one by one and formed the new string for eg. str="regsvr32 /u " +"C:\Program Files\Demo\Components\demo.dll"; and i am passing it to ShellExecute but it does not work what should i do or which function should i use. Cheers
-
HI I am getting an application path from file. and i have all the dll in the folder named component. for eg, C:\Program Files\Demo\Components and i am retreiving dll one by one and formed the new string for eg. str="regsvr32 /u " +"C:\Program Files\Demo\Components\demo.dll"; and i am passing it to ShellExecute but it does not work what should i do or which function should i use. Cheers
To load and unload libraries use LoadLibrary and FreeLibrary functions.
-
To load and unload libraries use LoadLibrary and FreeLibrary functions.
-
HI I am getting an application path from file. and i have all the dll in the folder named component. for eg, C:\Program Files\Demo\Components and i am retreiving dll one by one and formed the new string for eg. str="regsvr32 /u " +"C:\Program Files\Demo\Components\demo.dll"; and i am passing it to ShellExecute but it does not work what should i do or which function should i use. Cheers
Anonymous wrote: str="regsvr32 /u " +"C:\Program Files\Demo\Components\demo.dll"; make is something like this
CString str="regsvr32 /u " +"C:\\Program Files\\Demo\\Components\\demo.dll";
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta
-
HI I am getting an application path from file. and i have all the dll in the folder named component. for eg, C:\Program Files\Demo\Components and i am retreiving dll one by one and formed the new string for eg. str="regsvr32 /u " +"C:\Program Files\Demo\Components\demo.dll"; and i am passing it to ShellExecute but it does not work what should i do or which function should i use. Cheers
Anonymous wrote: for eg. str="regsvr32 /u " +"C:\Program Files\Demo\Components\demo.dll"; There are few problems with the code. 1. You are trying to pass the parameter along with the exe name, which is not suggested. so make two strings like : string sFile(_T("regsvr32")); string sParam(_T("/u \"C:\\Program Files\\Demo\\Components\\demo.dll\"")); 2. Also note the dll path wrapped with double quote above. Now call ::ShellExecute(hWnd,_T("open"),sFile.c_str(),sParam.c_str(),0,SW_SHOW);
suhredayan
There is no spoon.