Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
HPA DLL
Message
De
30/11/1999 10:35:08
 
 
À
30/11/1999 10:28:59
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Divers
Thread ID:
00296825
Message ID:
00296866
Vues:
35
>Hi George,
>
>I very much appreciate the help. I MUST get back to my VB course on ZDU. VB code follows:
>
>
>Private Sub CMD_GRAPH_Click()
> Dim ABC As HPA32N.DLLClass
> Set ABC = HPA32N.DLLClass
> Dim GSTR2 As String * 1040
> GSTR2 = ABC.GRAPHPTS
> Load FRM_LIST
> FRM_LIST.LST_LIST.Clear
> For I = 0 To 79
> CYM$ = Mid$(GSTR2, I * 6 + 1, 6)
> PRC$ = Mid$(GSTR2, I * 7 + 481, 7)
> FRM_LIST.LST_LIST.AddItem CYM$ + PRC$
> Next I
> Set ABC = Nothing
> FRM_LIST.Show
>End Sub
>

Chandler, this is accessed as an automation server, not as a C-style .DLL - you'll have to install it, and then create an object within VFP based on it.

oHPA32N = CREATEOBJ('HPA32N.DLLClass')

Be aware that under some circumstances, ActiveX Controls and automation servers that work under VB will not work under VFP, or may require you to change how VFP handles binding the ActiveX server instance.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform