On 5/15/06, Roderick Colenbrander thunderbird2k@gmx.net wrote:
Yes, that's the reason. I forgot that I still need to send the patch for
the
registry settings. Basicly what you need to add is this:
What about bf798030-483a-4da2-aa99-5d64ed369700?
trace:ole:DllMain 0x7f3b0000 0x1 0x1 trace:ole:DllMain 0x7f3b0000 0x2 (nil) trace:dinput:DirectInput8Create hInst (0x400000), dwVersion: 2048, riid ({bf798030-483a-4da2-aa99-5d64ed369700}), punkOuter ((nil))) trace:ole:CoCreateInstance (rclsid={25e609e4-b259-11cf-bfc7-444553540000}, pUnkOuter=(nil), dwClsContext=00000001, riid={bf798030-483a-4da2-aa99-5d64ed369700}, ppv=0x1d546f0) err:ole:CoCreateInstance apartment not initialised err:dinput:DirectInput8Create CoCreateInstance failed with hr = -2147221008
I think the issue is that CoInitialize isn't called from DirectInput8Create main. I think I missed this because my test app did this for me. Try to add a CoInitialize(NULL); and see if it helps. (and a CoUninitialize)
Regards, Roderick Colenbrander