C# | cant receive correct messages

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

Moderator: Moderators

Post Reply
eyalmaoz
Posts: 6
Joined: Wed Jul 04, 2018 5:35 am

C# | cant receive correct messages

Post by eyalmaoz » Mon Jul 30, 2018 3:48 am

Hello,
I want to add the SpaceNavigator into a windows form application.
I already created a small example project with bunch of user control and a specific one with a CROSS painted in it which moves with the SpaceNavigator (with no connection to the mouse). Works Great!
Now, i added the exact same thing to the application (very big) and in the function "WndProc(ref Message msg)" the messages that arrives are not correct. it doesn't matter what movement i do with the joystick, the Msg.msg is "522" thus i cant monitor up/down/left/right...
im realy stuck with this and have no idea why is this happening...
any ideas please? :roll:

Thank you! :D

jwick
Moderator
Moderator
Posts: 2563
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: C# | cant receive correct messages

Post by jwick » Tue Jul 31, 2018 2:16 am

Hover over the 3Dx systray icon when your application is in focus.
It should say which cfg file is being used for your application.
I suspect it is a different cfg for each of your two applications (small vs big).

Tell me which cfgs are being used.

Thanks.

eyalmaoz
Posts: 6
Joined: Wed Jul 04, 2018 5:35 am

Re: C# | cant receive correct messages

Post by eyalmaoz » Tue Jul 31, 2018 8:29 am

i copied the right cfg file,changed its name and it worked.
Thank you very much!!

jwick
Moderator
Moderator
Posts: 2563
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: C# | cant receive correct messages

Post by jwick » Tue Jul 31, 2018 8:40 am

That's good.
Sorry for the problems.
We are trying to eliminate the need to play with cfg files.

Post Reply