View Full Version : Could not enable input device(s)
Ron
October 13th, 2002, 12:55 PM
__declspec(dllexport) bool start_device()
Start device returns a bool...
Are some of the documents in err on this subject ? If so let me know where.
<font size=-1>[ This Message was edited by: RonB on 2001-12-19 12:28 ]</font>
Ron
October 13th, 2002, 12:55 PM
return TRUE when plugin started succesfully, return FALSE when plugin didn't start succesfully.
simonjo
October 13th, 2002, 12:55 PM
I'm creating a new plugin to send/receive SMS via a mobile phone.
When pressing F9, Girder shows a yellow LED and says 'Initialising input devices', this can take a while. In the meantime my plugin is called via 'start_device' which calls to open a COM port session with the GSM (async, takes a while) and initiates a command to it.
After a few seconds Girder shows a red LED and 'Could not enable input device(s)' and my plugin is called via 'stop_device'.
Although, after a second the initiated command to the GSM finishes and a resulting event is sent to Girder correctly, Girder then shows a blue LED.
Ron, can you explain how you determine whether enabling has failed/succeeded as 'start_device' returns nothing (void) !!!
simonjo
October 13th, 2002, 12:55 PM
Well the V32 documentation indeed states the BOOL return value, however you do NOT specify what should be returned.
For following functions the documentation is not sufficient:
1) h_support_functions: it does not say Girder first calls it with a NULL pointer to obtain the version of the HW support functions. Then calls it with a valid pointer from which you have to copy the referred structure into the plugin.
2) start_device/stop_device: it does not say what to return. Can you pls clarify this!?
I must say that my other plugins DO work, even with the void declaration!?!?!?
Powered by vBulletin® Version 4.1.8 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.