I have no idea why Str is null. I get the message saying Str is blank. I am using Dev C++ Plugin Template BTW.
Function:
DLLCMDC DWORD Test(LPSTR Str)
{
if (Str == NULL)
{
MessageBox(NULL, "Str is blank", "Error", MB_OK);
return dbpstring("");
}
return dbpstring(Str);
}
RC:
11 "FS Test[%SS%Test" // DLLCMDC DWORD Test(LPSTR Str)
If I change the resource to this and output Str in a message box it is NOT Null:
11 "FS Test%S%Test" // DLLCMDC DWORD Test(LPSTR Str)
DBP Code:
Message FS Test("Hello World")
Help me fix this problem and I will have a plugin released very soon.
Thanks,
DigitalFury