Search found 6 matches

by incredible_uk
Fri Jun 01, 2007 2:21 am
Forum: Developer's Forum for Windows
Topic: QueryInterface() throws Exception in version 3.3.6
Replies: 11
Views: 24047

Ok - I finally managed the version 3.3.6 to work in Borland C++ Builder. I replaced the Borland function CreateComObject() by the Windows function CoCreateInstance: //m_pDev = CreateComObject(CLSID_Device); CoCreateInstance(CLSID_Device, 0, CLSCTX_INPROC_SERVER | CLSCTX_LOCAL_SERVER, IID_IUnknown, (...
by incredible_uk
Fri Jun 01, 2007 1:43 am
Forum: Developer's Forum for Windows
Topic: QueryInterface() throws Exception in version 3.3.6
Replies: 11
Views: 24047

Hello, yes, I verify the device pointer before using it. If I would release the device pointer it also would be invalid in version 3.2.2 - but in this version it works. This is the source: m_pDev = CreateComObject(CLSID_Device); if (!m_pDev) { return false; } hr = m_pDev->QueryInterface(&m_pSimp...
by incredible_uk
Wed May 30, 2007 6:40 am
Forum: Developer's Forum for Windows
Topic: QueryInterface() throws Exception in version 3.3.6
Replies: 11
Views: 24047

Hello, you can download the application here: http://www.cetoni.de/test_3dxware.exe It runs fine with driver version 3.2.2 and crashes with version 3.3.6. The problem is the QueryInterface() call - the creation of the COM object works fine also in version 3.3.6 - the debugger shows two new threads t...
by incredible_uk
Wed May 30, 2007 4:12 am
Forum: Developer's Forum for Windows
Topic: QueryInterface() throws Exception in version 3.3.6
Replies: 11
Views: 24047

Hello,

I've compiled the SDK demo CubePolling and it works fine but the application compiled with C++ Builder still produces an exception (version 3.3.6) - strange. I have to investigate further.
by incredible_uk
Wed May 30, 2007 3:51 am
Forum: Developer's Forum for Windows
Topic: QueryInterface() throws Exception in version 3.3.6
Replies: 11
Views: 24047

Hello, I instantiate the COM object in the main thread of the application. It is a real windows application (no console application) so I think the main thread should have a message pump. With version 3.2.2 I can also receive and handle sensor input events. There is also no splash banner that gets c...
by incredible_uk
Wed May 30, 2007 1:33 am
Forum: Developer's Forum for Windows
Topic: QueryInterface() throws Exception in version 3.3.6
Replies: 11
Views: 24047

QueryInterface() throws Exception in version 3.3.6

Hello, I use the 3DxInput COM API in Borland C++ Builder 2006. I imported the type library und use the following code to connect to device: IUnknown *m_pDev; ISimpleDevice *m_pSimpleDev; m_pDev = CreateComObject(CLSID_Device); m_pDev->QueryInterface(&m_pSimpleDev); m_pSimpleDev->Connect(); This ...