execute a binary resource without first saving it to disk
-
Hi there, I am trying to execute a resource embedded in my application, but I dont want to first save it to disk. I know how to do it if I do save it first, using LockResource()/WriteFile()/CreatePocess() etc, but I don't want the user to be able to access the embedded resource without going via my app (i know they could DevStudio/ResourceHacker to extract it manually, but thats not a problem). I have seen http://www.codeproject.com/useritems/launching\_program\_from\_resources.asp on code project, which would seem to be doing what I want, but the link is dead. Thanks
-
Hi there, I am trying to execute a resource embedded in my application, but I dont want to first save it to disk. I know how to do it if I do save it first, using LockResource()/WriteFile()/CreatePocess() etc, but I don't want the user to be able to access the embedded resource without going via my app (i know they could DevStudio/ResourceHacker to extract it manually, but thats not a problem). I have seen http://www.codeproject.com/useritems/launching\_program\_from\_resources.asp on code project, which would seem to be doing what I want, but the link is dead. Thanks
-
You can write file to disk and the open it view CreateFile(). Lock it so the user cannot access it. Kuphryn