Re: mscoree: Implement DllGetClassObject (try 3)

2012-01-13 Thread Vincent Povirk
+HRESULT create_monodata(REFIID riid, LPVOID *ppObj ) ... +IID iid; You mean clsid here, not riid, right? Otherwise, looks good to me.

Re: mscoree: Implement DllGetClassObject (try 2)

2012-01-12 Thread Vincent Povirk
You're still using a single static class object, and I'm not convinced GetIDispatchForObject is a good idea. On Wed, Jan 11, 2012 at 5:02 AM, Alistair Leslie-Hughes wrote: > Hi, > Use RegGetValueW for the class. > > Changelog: >     mscoree: Implement DllGetClass

Re: mscoree: Implement DllGetClassObject

2012-01-11 Thread Vincent Povirk
> I found if you used GetIUnknownForObject and then queried for the IDispatch > interface, mono returned E_NOINTERFACE. Maybe this is a bug with mono. If that's true, using IDispatch instead of IUnknown is probably not an acceptable work-around, as we don't know how that works when a class explici

Re: mscoree: Implement DllGetClassObject

2012-01-11 Thread Alistair Leslie-Hughes
Hi Vincent, On 11/01/2012 5:13 PM, Vincent Povirk wrote: You can't just use a static class factory for all the classes. There's no need for GetIDispatchForObject when we already have GetIUnknownForObject (and all you use is QueryInterface). I found if you used GetIUnknownForObject and then quer

Re: mscoree: Implement DllGetClassObject

2012-01-10 Thread Vincent Povirk
You can't just use a static class factory for all the classes. There's no need for GetIDispatchForObject when we already have GetIUnknownForObject (and all you use is QueryInterface). +res = RegGetValueA( key, NULL, "Class", RRF_RT_REG_SZ, NULL, classname, &dwBufLen); We should probably use a