Dinput8: DirectInput8Create rewrite

Roderick Colenbrander thunderbird2k at gmx.net
Mon May 15 13:07:29 CDT 2006


> On 5/15/06, Roderick Colenbrander <thunderbird2k at 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

-- 
Echte DSL-Flatrate dauerhaft für 0,- Euro*!
"Feel free" mit GMX DSL! http://www.gmx.net/de/go/dsl



More information about the wine-devel mailing list