Run-Time Error '453' Visual Basic

Bailey

Junior Member
Jan 20, 2001
1
0
0
Here is my current problem, hopefully someone will know how to fix it because I searched for an answer and apparantly many people have the same problem, unfortunately there were no answers.

I am trying to communicate between my Visual Basic program and a C++ program. The C++ program can access the dll fine, but when I call the dll from VB, it gives the run-time error '453' "Cannot find entry point." My code is

'in the declarations
Private Declare Sub CComm Lib "pathname" (ByValue msg As String)

'In Command1_Click()
Call CComm(msg)

'In the dll
Public Function CComm(msg As String) As Integer
MsgBox msg
End Function

Thanks for any response to my question.
:confused: