build and work with a dll
build and work with a dll
hi,
i want creat and use a dll in vb6
so i created this in vb6 in a Activex Dll Project
Public Function DLLMain(ByVal A As Long, ByVal B As Long, ByVal c As Long) As Long
DLLMain = 1
End Function
and in a standard exe i have this:
Private Declare Function teste Lib "testDLL.DLL" (ByVal A As Double, ByVal B As Double) As Double
but when i run the project they result this error:
can“t find dll entry point teste in testedll.dll
why this dont work?
thanks for the help
Re: build and work with a dll
Well, you would need a...(in the DLL)
VB Code:
Public Function teste(ByVal A As Long, ByVal B As Long, ByVal c As Long) As Long
'your code here
End Function
'In your program...
Private Declare Function teste Lib "testDLL.DLL" (ByVal A As Long, ByVal B As Long, ByVal c As Long) As Long
DLLMain is a C/C++ thing no?....Yup.
Anyways check out this thread: http://www.vbforums.com/showthread.php?t=408511