3DxInput API in a windows service

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
Fennec27
Posts: 2
Joined: Thu Mar 04, 2010 1:15 am
Location: Switzerland

3DxInput API in a windows service

Post by Fennec27 »

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
Post Reply