shashidharkr
August 17th, 2001, 01:45 AM
I have created an ActiveX dll, in VB. Purpose of this dll is to confirm the exit, when user ends the application. I have put a single line of code with message box asking the user to confirm the exit, as follows.
If MsgBox("Are you sure?", vbQuestion + vbYesNo) = vbYes Then Unload Me
With this, I have compiled the dll.
Then, I created a sample project and added this dll into project, using project references. Function of dll is declared privately as follows in the general declarations section.
Private Declare Sub ExitApln Lib "qApln.dll" Alias "ExitAplnA" ()
This dll is called in click event of command button. Thus, when button is clieked, user should get the message box, asking for confirmation.
But I am getting an error as follows:
'Can't find entry point ExitApln in qApln.dll'.
Can anybody help in resolving this problem?
Thanks in advance.
If MsgBox("Are you sure?", vbQuestion + vbYesNo) = vbYes Then Unload Me
With this, I have compiled the dll.
Then, I created a sample project and added this dll into project, using project references. Function of dll is declared privately as follows in the general declarations section.
Private Declare Sub ExitApln Lib "qApln.dll" Alias "ExitAplnA" ()
This dll is called in click event of command button. Thus, when button is clieked, user should get the message box, asking for confirmation.
But I am getting an error as follows:
'Can't find entry point ExitApln in qApln.dll'.
Can anybody help in resolving this problem?
Thanks in advance.