Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hell DLL or DLL hell
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00701522
Message ID:
00701747
Vues:
23
>I have been trying to implement a set of API function calls. All the other calls work just fine but this one fires VFP error #1230 (Too many arguments).
>
>declare integer ls_getRecord in (lcDll) ;
>	long lsHndle,long nRecno,int nFmtCode,string @ cRecord,int nRecordLength
>
>NlEN = ls_getRecord(lnStru,i,6,@cRecord,nBufflen)
>
>
>the same call in C## is
>DLLIMP int  CALLX ls_getRecord(char *h,
>		long recNum /* 1 origin physical rec# */,
>		int fmtCode, char *recbuf, int recbuflen);
>
>nRv = ls_getRecord(h,rn,rqCode,sFmtBuf,sFmtBufLen);
>
>
>Does anyone have any suggestions, recommendations, straight jackets?
>
>Glenn

Maybe something like this?
declare integer ls_getRecord in (lcDll) ;
        string @ h, ;
        long recNum, ;
        int fmtCode, ;
        string @ recBuf, ;
        int recbuflen

h = " "
recBuf = " "
NlEN = ls_getRecord(@h, i, 6, @recBuf, recbuflen)
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform