need help with building DLL
This is just one of the functions im making for a 3rd party DLL for a different language.
Code:
#ifndef EXPORT
#define EXPORT __declspec (dllexport)
#endif
// MESSAGE BOX OK ////////////////////////////////////////////
EXPORT void XSDKMESSAGEBOX_OK(LPSTR smessage, LPSTR stitle)
{
if(smessage != "")
{
MessageBox(NULL,smessage,stitle,MB_OK);
}
else if(smessage == "")
{
MessageBox(NULL, "Error Code MBO162: \"LPSTR smessage\" is invalid.",
"XSDK Error", MB_OK | MB_ICONSTOP);
}
}
Now everything compiles just fine, but when I go to use it, and i enter "" for the message, it is still displaying the normal box and now the error box. Is something wrong with my logic, or something else.