Re: marshalling
 
"ajk" <anders43@gmail.com> wrote in message
news:d671ec05-d209-4e25-92e5-28edfe61ff97@v46g2000hsv.googlegroups.com
On Jan 29, 1:40 pm, "Igor Tandetnik" <itandet...@mvps.org> wrote:
CComPtr<IAfwObjectManager> m_pObjManager;
This cannot possibly be true. CComPtr doesn't have Create method.
How is m_pObjManager really declared?
Are you, by any chance, implementing IAfwObjectManager yourself, on
the client side?
ah bummer sorry wrong info, here is the correct decl:
  /// ppa connection
  CAfwObjectManager m_pObjManager;
the class wraps the interface as follows:
class CAfwObjectManager :
public CComPtr<IAfwObjectManager>
...
HRESULT Create(
const AfwSystemContextId* pSysCtxId = NULL,
const AfwKeyId* pDataMode = NULL,
BOOL displayDlg = TRUE,
BOOL localThread = FALSE);
So what's inside Create() ? Does it use CoCreateInstance to create a COM 
object implementing IAfwObjectManager? Does it create any threads (I 
wonder what localThread parameter is for)?
-- 
With best wishes,
    Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not 
necessarily a good idea. It is hard to be sure where they are going to 
land, and it could be dangerous sitting under them as they fly 
overhead. -- RFC 1925