1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
HINSTANCE dll_instance = LoadLibrary("Lawmansolution.dll");
if (dll_instance != NULL)
{
SendMail sendmail;
try
{
sendmail = (SendMail)GetProcAddress(dll_instance, "SendAsEmail");
}
catch (...)
{
MessageBox(HWND_DESKTOP, "That's not good, I'm not happy.", "Send", MB_OK);
}
if (sendmail != NULL)
{
MessageBox(HWND_DESKTOP, "Found SendAsEmail", "Send", MB_OK);
sendmail(sfullpath);
}
else
{
MessageBox(HWND_DESKTOP, "Can't find SendAsEmail", "Send", MB_OK);
}
}
else
{
MessageBox(HWND_DESKTOP, "Can't find DLL", "Send", MB_OK);
}
|