Problems wth 3D and VS 2008 - CLR, windows forms application

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

Moderator: Moderators

Problems wth 3D and VS 2008 - CLR, windows forms application

Postby Mathias » Sat Sep 05, 2009 3:00 pm

Hey there

I have this beautiful SpaceNavigator here and now I'm trying to integrate it to the software we are developing at our university as part of my bachelor thesis.

Unfortunately I have problems to even get it startet. I'm working under Windows Xp using the Microsoft Visual Studio 2008 and I'd like to work with a CLR windows forms application.

What I did is adding the line

Code: Select all
#import "progid:TDxInput.Device" embedded_idl no_namespace


to the stdafx.h header file, just as described in the manual. But whenever I compile, I get the following error:

Code: Select all
Compiler Error C2812: #import is not supported with /clr:pure and /clr:safe


What am I doing wrong?

Thanks a lot for helping
- Mathias
Mathias
 
Posts: 11
Joined: Sat Sep 05, 2009 2:48 pm

Return to Developer's Forum for Windows

Who is online

Users browsing this forum: No registered users and 0 guests