Search found 12 matches

by neobond
Tue Jul 10, 2007 1:52 pm
Forum: Developer's Forum for Windows
Topic: CoInitialize Problem
Replies: 10
Views: 22455

SOLVED

Hello ngomes we solved the problem. Maybe anyone is interested... Visual Studio was telling us all the time what it needed!!!! Coinitialize :) So we simply inserted mHR::CoInitialize(......) before mHR = mDevice.CoCreateInstance(__uuidof(Device)); and see it works! But one curiosity is up to stay......
by neobond
Tue Jul 10, 2007 7:36 am
Forum: Developer's Forum for Windows
Topic: CoInitialize Problem
Replies: 10
Views: 22455

Hi ngomes we try to get the spacenavigator initialized within the constructor SpaceNavigator::SpaceNavigator(){ //for global referencing if SpaceNavigator has been found! deviceFound = false; #ifdef __USE_SPACENAV__ //initializing input values from sensor x_trans = 0.0, y_trans = 0.0, z_trans = 0.0;...
by neobond
Tue Jul 10, 2007 7:04 am
Forum: Developer's Forum for Windows
Topic: CoInitialize Problem
Replies: 10
Views: 22455

More exactly: it throws the error-message in here hr = CoCreateInstance(rclsid, pOuter, dwClsContext, __uuidof(IUnknown), reinterpret_cast<void>(&pIUnknown)); inside HRESULT CreateInstance(const CLSID& rclsid, IUnknown* pOuter = NULL, DWORD dwClsContext = CLSCTX_ALL) throw() in comip.h Greet...
by neobond
Tue Jul 10, 2007 6:17 am
Forum: Developer's Forum for Windows
Topic: CoInitialize Problem
Replies: 10
Views: 22455

Hello ngomes, I am not against using CoInitialize :), but it's not in my scope?! mHR = mPDevice.CreateInstance(__uuidof(Device)); is handling this, or not... and is telling me that it doesn't call CoInitialize... I tried also the InitializeCOM()-example from ATL3DCube, same result... (not in the exa...
by neobond
Tue Jul 10, 2007 5:00 am
Forum: Developer's Forum for Windows
Topic: CoInitialize Problem
Replies: 10
Views: 22455

CoInitialize Problem

Hello... Now I have to port my SpaceNavigator implementation to the same Framework, simply an older version (but still VS2005) It is the same machine, same user etc... BUT: once it works and in the other framework it complains about hr 0x800401f0 CoInitialize wurde nicht aufgerufen. HRESULT CoInitia...
by neobond
Thu Jul 05, 2007 7:00 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] Lnk1169 - circular dependencies??
Replies: 6
Views: 17298

SOLVED!!!!

Great: IT WORKS!!!! it now starts in Debug AND Release Mode. And also the Compile Errors vanished ( and I also understood why :D ) One last question from an ATL newbie: what is [module(name="EventReceiver")]; exactly for???? what would be the advantage of [module(type=dll, name="Event...
by neobond
Thu Jul 05, 2007 6:08 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] crashes when starting in release mode
Replies: 3
Views: 12046

Also to mention

Maybe related?? in Release Mode I cannot compile using [module(name="EventReceiver")]; Anyway [module(type=unspecified, name="EventReceiver", uuid="9217D439-8DFE-4C2E-9329-7D95B5FCD5DC")]; works, but not with type=exe,dll... Same runtime crashing as mentioned above Gree...
by neobond
Thu Jul 05, 2007 6:02 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] crashes when starting in release mode
Replies: 3
Views: 12046

Hello Markus, I defined the following Pointers in SpaceNavigator.h: IUnknownPtr mDevice; ISimpleDevicePtr mPDevice; ISensorPtr mP3DSensor; IKeyboardPtr mP3DKeyboard; ITDxInfoPtr mP3DInfo; I also tries using things like CComPtr<...> same result (also concerning the linker problem) I did compile with ...
by neobond
Thu Jul 05, 2007 5:48 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] Lnk1169 - circular dependencies??
Replies: 6
Views: 17298

Hello Markus, here is what he says when 1)Clean Solution 2) Build Solution Linking... GLWidget.obj : error LNK2005: _DllGetClassObject@12 already defined in HardwareManager.obj GLWidget.obj : error LNK2005: _DllRegisterServer@0 already defined in HardwareManager.obj GLWidget.obj : error LNK2005: _Dl...
by neobond
Wed Jul 04, 2007 10:41 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] crashes when starting in release mode
Replies: 3
Views: 12046

[ATL/COM] crashes when starting in release mode

Hello, me again with another Problem driving me to hell!!!! same framework: see codesnippets here [ http://www.3dconnexion.com/forum/viewtopic.php?p=4920#4920 ] In DEBUG-Mode (VS2005) everything works fine! In Release Mode, the application compiles, but when starting, it crashes when initializing Sp...
by neobond
Wed Jul 04, 2007 10:24 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] Lnk1169 - circular dependencies??
Replies: 6
Views: 17298

Some Code

It might be useful to see some code snippets.... HardwareManager.cpp HardwareManager::HardwareManager(void){ //TODO: integrate, test Phantom #ifdef USE_SPACENAV mSpaceNavigator = new SpaceNavigator(); #endif } SpaceNavigator.h #ifdef USE_SPACENAV #define _ATL_ATTRIBUTES #include <atlbase> #include <...
by neobond
Wed Jul 04, 2007 10:20 am
Forum: Developer's Forum for Windows
Topic: [ATL/COM] Lnk1169 - circular dependencies??
Replies: 6
Views: 17298

[ATL/COM] Lnk1169 - circular dependencies??

Hello... in conjunction to my university project, I integrated the SpaceNavigator into our existing framework (C++, Qt-based, QTOpenGL) for Medical Volume Data Analysis and Segmentation (and further more). And what to say, I like the SpaceNavigator, it is the right thing to augment working!!! But no...