Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Extract resources from a DLL
Message
From
01/02/2013 22:19:26
 
 
To
01/02/2013 10:48:07
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brazil
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Application:
Desktop
Miscellaneous
Thread ID:
01564921
Message ID:
01564982
Views:
80
This message has been marked as the solution to the initial question of the thread.
Likes (1)
>Hi Rick.
>
>>> I'm not aware of a function which lets you do this directly. In the past, I've had to lock the resources to get a pointer to their starting location in memory, and then using their length, write the data at that pointer to my target disk file.
>
>How can I do this in VFP?


Here is a project I built which will do this for you. It uses the sample.dll file, and only extracts the two resources I put in it. Zip is named resourcex.zip. Unzip to some directory, and go to resourcex\vfp9\ and "do resourcex.prg" or "modi comm resourcex.prg". You can see how it works, and modify it to suit your needs. I have only tested it on numbered resources, and only on Windows Server 2003.

Note: Attachment in upper-right.

Official repository on GitHub (with FLOSS license):
https://github.com/RickCHodgin/resourcex
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform