
PLEASE HELP ! : Calling DLL in 32bit VB4.0
--------------AFD3EE49CDC6055D6B7E70E5
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I'm having problems calling a function in a C++ DLL. The DLL is found by
the VB app, but gives an error ("Run-time error '453': Specified DLL
function not found). This is how I have the DLL declared in the projects
module file :
Declare Function TestFunction Lib "test.dll" (ByVal word1 As String,
ByVal word2 As String, ByVal word3 As String, ByVal word4 As String)
And this is how I call the Function :
returnVal = TestFunction(ByVal word1, ByVal word2, ByVal word3, ByVal
word4)
The DLL is built with Visual C++ version 4.1, and I have the
source-code. The function takes 4 parameters - all pointers to strings.
WHAT AM I DOING WRONG ???
Thanks in advance !
Mark.
--------------AFD3EE49CDC6055D6B7E70E5
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<HTML>
I'm having problems calling a function in a C++ DLL. The DLL is found by
the VB app, but gives an error ("Run-time error '453': Specified DLL function
not found). This is how I have the DLL declared in the projects module
file :
<BR>?
<P><B>Declare Function TestFunction Lib "test.dll" (ByVal word1 As String,
ByVal word2 As String, ByVal word3 As String, ByVal word4 As String)</B>
<P>And this is how I call the Function :
<P><B>returnVal = TestFunction(ByVal word1, ByVal word2, ByVal word3, ByVal
word4)</B><B></B>
<P>The DLL is built with Visual C++ version 4.1, and I have the source-code.
The function takes 4 parameters - all pointers to strings.
<BR>?
<P>WHAT AM I DOING WRONG ???
<BR>Thanks in advance !
<P>Mark.
<BR>?
<BR>?</HTML>
--------------AFD3EE49CDC6055D6B7E70E5--