Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to Stop a DLL and Unload it
Message
 
To
04/11/2003 12:49:35
Donald Lowrey
Data Technology Corporation
Las Vegas, Nevada, United States
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00846082
Message ID:
00846083
Views:
18
Well, I run most of my vfp dlls from IIS and I can run the following automatically when I recompile from a project hook:
DirObj=GetObject("IIS://LocalHost/W3SVC/1/Root/"+JustStem(cOutputName))
DirObj.AppUnload
where 'JustStem(cOutputName)' is the name of the virtual directory. This is just ADSI code, I believe, so maybe you can do something similar with your non/iis mtdll.
Any Microsoft people know anything about this??

>I would like to find a way to programatically Stop a running dll, unload it and replace it with a newer version.
>
>Otherwise, our team will have to manually copy the dll, start Windows in DOS mode (if we can catch the F8) and from the command prompt unload the dll, etc. All would have to be done by our customers/users during a tech support phone call (Ugh).
>
>It seems to me that the dll should be able to be stopped, unloaded and then replaced with a newer file using WSH or an API function. Any suggestions would be welcome.
>
>Thanks
>
>Don Lowrey
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform