Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HPA DLL
Message
De
30/11/1999 12:46:16
 
 
À
30/11/1999 10:35:08
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00296825
Message ID:
00296969
Vues:
35
Hi Ed,

Thanks for the response. I have installed the .dll. I have 'Declare'd the functions. VFP recognizes them. Display Status lists the functions. I have not used third party .dll's with VFP - yet. The documentation shows this example for the Initialize function:

erromsg = ABC.InitializeDLL ( where ABC is the Object ID)
(Returns the following data, comma delimited)
Error code
Module that returned the error
Filename

Set properties

40 HPAPATH
20 Profile
8 Password


Get Properties

14 Settings
6 DBDate
5 Version


How do I translate this to VFP 6?

I've created objects for word and excel:

oWordDoc = CreateObject("Word.Application")

The tech support for the third party dll (knows VB but not VFP) states that I should just translate the following to VFP:

erromsg = ABC.InitializeDLL ( where ABC is the Object ID)

I'm using examples in the book Visual FoxPro 6, Enterprise Development, Chapter 7: Using the Windows API. Based upon that, the above example and what you have provided:

How do I define what goes into 'ABC' I'm Declared'ing the functions in the .dll OK. But how to define the Set Properties and Get Properties and pass them?

I have greated a .prg containing the following:

lcHPAPath = 'D:\HPA32C'
lcProfile = ' 1'
lcPassword = Space(8)
*
Declare Integer HPAINITIALIZE IN HPA32N.DLL String @lcHPAPath, String @lcProfile, String @lcPassword

I get no errors. The Display Status lists the HPINITIALIZE.dll. Executing ? ErroMsg returns Erromsg not found.

I appreciate you help.

Regards,

Paige



But this doesn't do me any good. I need to know how to define/setup whatever for 'ABC'. I believe it needs the Set/Get properties - right? How to create an object for that?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform