Search found 6 matches

by PiotreX
Tue Mar 18, 2008 5:55 am
Forum: Developer's Forum for Windows
Topic: C++ Builder: a few problems
Replies: 14
Views: 30469

Finished

So I changed a bit of the code, but I got everything in working order. From my last recollection, points 1-3 stay the same. Here's the rest: 4. Initializing and Deinitializing the mouse and it's basic objects: void __fastcall TForm1::FormCreate(TObject *Sender) { HRESULT hr; Mysz = CoDevice::Create(...
by PiotreX
Fri Mar 14, 2008 8:54 am
Forum: Developer's Forum for Windows
Topic: C++ Builder: a few problems
Replies: 14
Views: 30469

What are the fundamentals for getting info from the Navigator? Do I need to be in a loop with a timer? Because all I seem to get is 0 and 0. in debugger mode when I preview the Vector3D object I get something like: {X:???; Y:???; Z:???; Length:??? ...} with just Intf:01116F20 and the rest of the pro...
by PiotreX
Fri Mar 14, 2008 8:00 am
Forum: Developer's Forum for Windows
Topic: C++ Builder: a few problems
Replies: 14
Views: 30469

Eureka!

I'll start from the top. For the Space Navigator to work in C++ Builder I suggest the following: 1. Project->Import Type Library->TDxinput.dll and copy the created files to your program dir. include TDxInput_TLB.h 2. Add the SN objects via New->ActiveX->Com Object. Add SimpleDevice, Keyboard, Sensor...
by PiotreX
Thu Mar 13, 2008 8:56 am
Forum: Developer's Forum for Windows
Topic: C++ Builder: a few problems
Replies: 14
Views: 30469

Thanks a lot. I'll look into it tomorrow and come back with more problems ;-)

Cheers!
by PiotreX
Thu Mar 13, 2008 7:26 am
Forum: Developer's Forum for Windows
Topic: C++ Builder: a few problems
Replies: 14
Views: 30469

I have imported the Type Library. Builder made some files from the original dll and I have these included in the project. I've done something like this: Variant Server = Server.CreateObject("TDxInput.Device"); and it seems to have been successful, but i have no idea where to take this next...
by PiotreX
Tue Mar 11, 2008 5:56 am
Forum: Developer's Forum for Windows
Topic: C++ Builder: a few problems
Replies: 14
Views: 30469

C++ Builder: a few problems

Hi there! I'm trying to implement the code used in your SDK Visual C++ files into my program in Borland C++ Builder 6 to communicate with a Space Navigator. I've been on it for a week now. I'll write about the problems I've encountered and maybe you can help me out. The first try was using the new S...