visual studio - RegisterActiveObject returns succeed on server but GetObject is not working on any clients? -
I have been working 2 days a simple exe COM server, I have tested in the web, but still do not work Are doing! I create a simple object with ATL and register the interface with ATL Register Class objects and RegisterActive Object, it succeeds, but no customer can use the GetObject method to get the object, but CreateObject works.
Here is my project file:
Can someone help me? I need it, this is a part of my project thanks.
Finally I solved my problem with this code: (CoRegisterClassObject still does not work!) < / P>
hrsll bell; CYourObject * Your = new CComObject & lt; CYourObject & gt; (); Zero * p = null; Your-> QueryInterface (IID_IUnknown, & amp; P); IUnknown * var = (IUnknown *) p; DWORD pdwRegister; IRunningObjectTable * PROT; Imonicer * Pamon; LPOLESTR monikaranam; Hour = GetRunningObjectTable (tap, and PRT); Hr = stringfremccslsid (clsid_arial object, and monikarname); LPOLER Delim = L "!"; // Monique delimiter (always set) hour = Createitemaker (Delim, Moniker, Name, and PM); HR = PRT-> Register (ROTFALGSEGRSSESSIEE, Veer, PMON, and PDW registrar); CLSID ID; Hour = CLSIDFromProgID (L "MyAtlProject.YourObject", & amp; ID);
Comments
Post a Comment