General information
Category:
COM/DCOM and OLE Automation
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only