Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with MessageBoxIndirect API
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01070654
Message ID:
01071143
Vues:
31
Carlos,

> BTW I wonder what they use GlobalAlloc, GlobalFree, GlobalSize for?

As I said, the MSGBOXPARAMS structure must contain not strings but pointers to strings. So for each LPCTSTR member you allocate memory (GlobalAlloc or LocalAlloc whatever), copy some text to this memory (CopyMemory) and pass the address to the structure. @ can not be used, as it is used in API declarations. In the end, this allocated memory must be freed (GlobalFree) to prevent memory leak.

The rAPIdStructure class you mentioned, probably does the same on the background, uses Alloc and Free API calls.

* * *
When you attach icons to your VFP project as "Other Files" and compile the project, the resulting executable includes them as icon resources. So I think, the VFP executable can be used instead of a resource-only DLL.

Small inconvenience is that the resource ids are initially unknown. In other words, a draft executable has to be build first.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform