Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
LPCTSTR data type
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01038898
Message ID:
01038952
Vues:
22
This message has been marked as the solution to the initial question of the thread.
Carl,

A LPCTSTR is a long pointer to a constant string (ie the routine isn't going to change the string). If it was an API style DLL you'd declare it as STRING in VFP. Since it's an ActiveX you should be ok passing a plain old VFP string, but it's a fairly safe bet that the C/C++ code in the ActiveX is relying on a chr(0) to tell it where the end of the string is, so you'll have to concatenate that to the end of each string.

>I need to be able to view scanned images using my form.
>I have an active x control on the form that has a method "OpenFile".
>The documentation for calling the method is as follows:
>
>BOOL OpenFile(LPCTSTR FileName, LPCTSTR DocID, long PageNumber,
>long DisplayPages, LPCTSTR AnnotationName,
>BOOL DisplayAnnotation, BOOL EditAnnotation)
>
>I don't now how to send a datatype 'LPCTSTR' can i convert my character fields to LPCTSTR using strconv() or is their another way?
>
>my code is as follows:
>
>
>lcfilename = v_opti_claims.doc_name
>lcdocid = v_opti_claims.doc_id
>lcannotation = v_opti_claims.doc_annotation
>lnpagenumber = 1
>
>
>ll_opened = ThisForm.oimagecontrol.openfile(lcfilename, lcdocid, lnpagenumber, 0, lcannotation, .f., .f.)
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform