Dear all,
I have devloped a small Windows standalone application in which I have a custom installer and a Windows form.
I am importing the MAPI DLL in the form as below:
<DllImport("MAPI32.DLL")> _
Private Shared Function MAPISendMail(ByVal sess As IntPtr, ByVal hwnd As IntPtr, ByVal message As MapiMessage, ByVal flg As Integer, ByVal rsv As Integer) As Integer
End Function
It works fine when I compile it, but while doing a setup, it throws an error.
Should I register the DLL in the custom installer?
Note: If I remove the custom installer, the installtion works fine.
To avoid the error, how do I register the DLL in the custom installer class? Or, is there any other way to do this?
Please help me with this.
Thanks!