ActiveX control Initialization
-
Hi, i've just created an ATL dll which houses a full control for activeX support. Basically it's working ok. However i need to run some code once the control has been installed successfully. (after Register server) This control is windowless. In an MFC based control i could use something like OnCreate() but i don't have a clue where to start here. I basically need an event that gets called once the control is installed. Please Help Thanks in advance!!! Carl
-
Hi, i've just created an ATL dll which houses a full control for activeX support. Basically it's working ok. However i need to run some code once the control has been installed successfully. (after Register server) This control is windowless. In an MFC based control i could use something like OnCreate() but i don't have a clue where to start here. I basically need an event that gets called once the control is installed. Please Help Thanks in advance!!! Carl
Why you won't use DllRegsidterServer of you module class for this purpose???
-
Why you won't use DllRegsidterServer of you module class for this purpose???
Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister. Carl
-
Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister. Carl
Why don't you add a key to "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" that will execute a function in your DLL, like: rundll32.exe yourdllpath.dll,YourFunc_RunDLL YourFunc_RunDLL must be declared in your DLL like this: int YourFunc_RunDLL(HWND parent, HINSTANCE hinst, LPCTSTR params) { return 0; } My homepage is down cos' I violated their Terms and Conditions.
-
Because i need to physically attach to the file in 'Downloaded Program Files' to copy a resource from inside the control onto the user machine. The control does not appear until after the return of DllRegister. Carl
Why don't you add a key to "HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce" that will execute a function in your DLL, like: rundll32.exe yourdllpath.dll,YourFunc_RunDLL YourFunc_RunDLL must be declared in your DLL like this: int YourFunc_RunDLL(HWND parent, HINSTANCE hinst, LPCTSTR params) { return 0; } You may need to tell the user to restart his computer for this to work. I know there is a system function you can call to make the OS execute the RunOnce entries, but don't have that in my mind right now! My homepage is down cos' I violated their Terms and Conditions.