Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to pass Array binary data to a DLL procedure from VF
Message
De
27/03/2001 19:11:50
 
 
À
27/03/2001 02:01:42
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00488830
Message ID:
00489237
Vues:
7
>Hi Erik,
>
>Yes the first thing I did was try to send it as a string and the API Function caused a VFP General Falut and crashed.
>
>There are several function calls that I am using with-in the API. All seem to work except this one which caused VFP General Fault. When using a STRING.
>
>Here is a small portion of the code were I have created a long string containing fields and control character. As required by the vendor.
>
>***********************************************************
>
>Here is the declare statement for the API:
>declare INTEGER compress_ANSI_StringBuildAll IN "C:\TEMP\COMRESS.DLL" String,String
>
>
>This is the input string for the function as you can tell it has control codes embeded and seems to not be the problem.
>
>l_ansistr = "[)>01960277700008400151Z00001014UPSN1235550841/125NSWANSEAMA0520L21L22L23L"
>
>l_maxwork = space(10000) && Define work space for API this is the problem!
>

You might try:

l_maxwork = REPLICATE(CHR(0), 1000)

Beyond that, I'm not sure what the problem could be.
Erik Moore
Clientelligence
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform