Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing a DLL in VFP
Message
De
08/10/1999 12:40:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
08/10/1999 12:34:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00274318
Message ID:
00274321
Vues:
31
>I have a dll that a VB programmer wrote for me and I am having trouble getting in running in VFP.
>
>The following is the code that he used to access and test it in VB:
>
>Option Explicit
>Dim x As New vsConvert
>Private Sub Command1_Click()
>Dim y As Long
>
>y = x.StartConversion("c:\InnPall\")
>End Sub
>
>The following is the code that I have in VFP to (try) to access the dll:
>
>Public y
>y = 0
>DECLARE INTEGER StartConversion IN ToAvail.DLL
>y = StartConversion(m.workdir)
>
>When I run this I get the error 'Can not find entry point StartConversion in the DLL.'
>
>Any input on solving this would be much appreciated.


declare integer StartConversion in ToAvail.DLL string @lcDir
Should it be. OTOH wouldn't you use it like this :
oX = createobject("DLLNAme.vsConvert")
y = oX.StartConversion("c:\InnPall\")
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform