Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Extract resources from a DLL
Message
De
01/02/2013 22:19:26
 
 
À
01/02/2013 10:48:07
Emerson Reed
Folhamatic Tecnologia Em Sistemas
Americana - São Paulo, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Application:
Desktop
Divers
Thread ID:
01564921
Message ID:
01564982
Vues:
79
This message has been marked as the solution to the initial question of the thread.
J'aime (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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform