I'm using Visual C++ 2008 Express Edition, still trying to get my head round everything, but I don't understand these points:
1) globStruct.h gives access to a lot of the core data, but what do the variables actually mean? Some are obvious (like bWindowsMouseVisible or iWindowsMouseX), but others such as pWindowsTextEntry or dwAppDisplayModeUsing are a mystery to me - what do they all mean?
2) The globstruct.h file uses DWORD datatypes, yet I have to define "unsigned int" instead - how come the name DWord isn't recognised in VC++, and where is it defined so that globstruct recognises it?
3) How can I make my plugin trigger an error message in DBPro at line xxxx if an invalid input is passed?
4) I want to use strings as part of data types, i.e:
struct DG_TextboxData
{
LPSTR FontString;
LPSTR TxtString;
};
static std::vector < DG_TextboxData > Txt;
Why do I have to use "LPSTR" and not "string" (with the generic C++ string library included)? And what exactly is LPSTR? I'm only trying using strings internally at the moment, but I will want to return them to DBPro at some point.
5) How do I call DBPro functions from within my dll? I've been following forum examples
here and
here, but my code refuses to compile at the moment - I've attached the whole project as it currently stands. Any ideas what I'm doing wrong? (I suspect I may have missed a function pointer declaration out, but I'm not sure)
6) Bitmap Exist occurs twice in "DBProBitmapDebug.dll" (as do some of the other functions). Is this because specifying negative bmp numbers gives access to the camera target, and if so, which undecorated function name should I use?
Any advice would be gratefully appreciated!
We spend our lives chasing dreams. Dark Basic lets us catch some of them.