Hi,
I'm using the 3DxInput API in a windows application to get data from the space navigator. I'm working with Borland c++ builder v6.0. Here is a short example of what I'm doing : (I'm using the poll method)
long type;
double xPos;
TOLEBOOL success;
success = Device1->IsConnected;
if (!bool(success)) {
Device1->Connect();
}
type = Device1->Type;
xPos = Device1->Sensor->Translation->X;
Edit1->Text = type;
Label1->Caption = xPos;
This example is working well. I tried to implement this code in a win32 service application. In this case the example did not work. The method "Type()" returns always 0 even the device is connected or not.
My question is: Is there a limitation or things that I don't understood using this API in a windows service ?
Thank you for your help
3DxInput API in a windows service
Moderator: Moderators