Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Creating a simple DLL
Message
From
17/10/2001 01:37:35
Ashish Patel
Hindustan Petroleum
Mumbai, India
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00568925
Message ID:
00569408
Views:
20
Hi Peter

Thanks for the code.

It works fine in Fox.
I have tested it.

Can you pl. tell me weather I can use this DLL (Created in Foxpro) in VB ?
If yes what is the method ?

I did the following things.

I have declared the following thing in "general" section.
Private Declare Function getname Lib "akp.dll" (ByVal custno As String) As Boolean

(Do I have to pass custno as String or something else and since it is reurning .t. or .f. I have used boolean is it correct ?)

and on a click event I tried the following code

custid = "600016"
t1 = getname(custid)
If t1 = True Then
MsgBox ("found")
Else
MsgBox ("Not found")
End If

Then I am getting the erroe message
"File not Foun akp.dll" I have saved the project of VB in the same directory where akp.dll is present.

Then someone told me that I have to copy the dll in C:\windows\system directory
So I copied akp.dll in c:\windows\system directory

Then after rynning the form I got the error message
can't find DLL entry point getname in akp.dll

How can I solve this problem.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform