Download <[url removed, login to view]> . Open project in Visual Studio .NET 2003. Project is a classic, unmanaged C DLL meant to run as a plug-in for QuickSoft's SMTP Express Pro. (available at : <[url removed, login to view]> , includes *.chm documentation of functions contained in above DLL)
1) Open the plug-in C DLL in [url removed, login to view] 2003 IDE, the DLL will compile and work as-is.
2) Create a [url removed, login to view] class library project within the solution with a Function that can be called from the unmanaged C DLL within the DLL event:
long SMTPExpressPlugin_Event(PSZ szMsg, PSZ szText, long nCode,long Status, long nPort, PSZ szInfo)
The called [url removed, login to view] Function needs to be passed all of the above parameters, and the function needs to block, that is code that is executed in the [url removed, login to view] function must complete before returning control to the unamanaged DLL. The [url removed, login to view] function simply returns an integer of 0 to the DLL when it is done.
3) modify the unamanged C plug-in DLL to call the [url removed, login to view] function within the SMTPExpressPlugin_Event, passing it all of the above parameters.
I realize this is likely a 15 minute project for .NET pros out there, my problem is I have zero experience in calling managed code from unmanaged code, and do not have time to teach myself at this point.
1) Complete Visual Studio .NET 2003 Solution with LogPlugin and ClassLibrary1 Projects. Test that it works.
2) Complete ownership and distribution copyrights to all work purchased.
Visual Studio .NET 2003 IDE, with [url removed, login to view] and Visual C++.NET