From: <no...@so...> - 2002-04-02 07:54:09
|
Patches item #537517, was opened at 2002-03-31 23:05 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=302435&aid=537517&group_id=2435 Category: w32api Group: None Status: Open Resolution: None Priority: 5 Submitted By: Pat Thoyts (patthoyts) Assigned to: Nobody/Anonymous (nobody) Summary: IRunningObjectTable Errors and Fixes Initial Comment: I've been compiling COM code that uses the Running Object Table and the interface description in objidl.h is incorrect and fails to link properly. Attached is a patch file to correct the interface definition. Also attached is a patch to wtypes.h to add in the flags that are needed for registering objects with the Running Object Table. ---------------------------------------------------------------------- >Comment By: Pat Thoyts (patthoyts) Date: 2002-04-02 08:54 Message: Logged In: YES user_id=202636 From the MSDN for IRunningObjectTable::Register at http://msdn.microsoft.com//library/en-us/wcedcom/htm/cerefIRunningObjectTableRegister.asp "The grfFlags parameter accepts two flag settings: ROTFLAGS_REGISTRATIONKEEPSALIVE. When set, indicates a strong registration for the object. ROTFLAGS_ALLOWANYCLIENT. When set, any client can connect to the running object through its entry in the ROT. When not set, only clients in the window station that registered the object can connect to it. When an object is registered, the ROT always calls AddRef on the object. For a weak registration (ROTFLAGS_REGISTRATIONKEEPSALIVE not set), the ROT will release the object whenever the last strong reference to the object is released. For a strong registration (ROTFLAGS_REGISTRATIONKEEPSALIVE set), the ROT prevents the object from being destroyed until the objects registration is explicitly revoked. " I can't find anything for the values themselves. I don't know if you have a standard method for finding #define values without requiring the use of microsoft headers (if this is necessary). ---------------------------------------------------------------------- Comment By: Danny Smith (dannysmith) Date: 2002-04-01 09:09 Message: Logged In: YES user_id=11494 I've found documentaion to justify the objidl.h patch but am unable to find any on the ROT* flags in wtypes.h. Can you help. Danny ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=302435&aid=537517&group_id=2435 |