HAL you must setup DarkBasic Pro with all of the structures you will need for developing the menu system and setup fucntions to be able to take those structures types and then populate the format data for you ...
for you example you're going to have to set the data type, in this case DWORD as that is the wParam's value cast... but also you should be setting the export value
DWORD Menu( void )
{
MSG msg;
GetMessage(&msg,NULL, 0, 0);
DispatchMessage(&msg);
return msg.wParam;
}
its all about know what the structured data your passing is and howto use it.
if you wanna take this data and pass it back then it'd be
DWORD Menu( void )
{
MSG msg;
GetMessage(&msg,NULL, 0, 0);
DispatchMessage(&msg);
return (DWORD*)msg.wParam;
}
the pointer sets confuse my a little when doing them but that should return the pointer to the data
and remember if you want to actually be able to use that function outside of the DLL you'll need to add in the header
#define COMMAND __declspec ( dllexport )
extern "C"
{
COMMAND DWORD Menu( void )
}
Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?