Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copying To And From a User Type
Message
Information générale
Forum:
Visual Basic
Catégorie:
Autre
Divers
Thread ID:
00138152
Message ID:
00138519
Vues:
14
You can one data structure to another using the API RTLMemory function. This is typically declared as CopyMemory as follows:

Public Declare Sub CopyMemory Lib "kernel32" Alias "RtlMoveMemory" (Destination As Any, Source As Any, ByVal Length As Long)

In your case the destination is the pointer to the string obtained using strptr and the source is the UDT obtained using varptr. Remember to use LenB function to obtain the length of data to be copied.

HTH,
SUN.
SUN
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform