Search found 6 matches
- 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, (...
- 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
- 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...
- 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
- 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...
- 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 ...