PDA

Click to See Complete Forum and Search --> : build and work with a dll


bybruno
Jun 11th, 2006, 11:34 AM
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

k1ll3rdr4g0n
Jun 11th, 2006, 11:23 PM
Well, you would need a...(in the DLL)
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