Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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:

VB
<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!
Posted
Updated 12-May-10 0:26am
v2

1 solution

how do i register this dll in the custom installer?

urgent help required.

thanks
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900