Skip to content

COM

COM discussions

This category can be followed from the open social web via the handle com-ba4ced8e@forum.codeproject.com

4.8k Topics 11.7k Posts
  • 2 instances of a singelton..@?!?!?@

    sysadmin question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • ATL3.0 - Stock Property Pages - Fonts

    design docker testing tools question
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • update COM components over the internet

    com tutorial question announcement
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • COM+ and MTS

    c++ com tutorial question
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • C++

    c++ help question
    2
    0 Votes
    2 Posts
    6 Views
    K
    Make Class B the friend of class A
  • About ActiveX control !

    com docker
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Know when object advise

    c++
    2
    0 Votes
    2 Posts
    7 Views
    T
    OK,I found a very simple solution... template class CAdviSeNotify: public IConnectionPointImpl { public: typedef IConnectionPointImpl baseClass; CAdviSeNotify(){}; virtual ~CAdviSeNotify(){}; STDMETHOD(Advise)(IUnknown* pUnkSink, DWORD* pdwCookie) { T* pT = static_cast(this); pT->OnClientAdvise(pUnkSink,piid); return baseClass::Advise(pUnkSink,pdwCookie); } STDMETHOD(Unadvise)(DWORD dwCookie) { T* pT = static_cast(this); return baseClass::Unadvise(dwCookie); } };
  • COM Server Debugging

    com sysadmin debugging question
    2
    0 Votes
    2 Posts
    6 Views
    I
    Check the Debugging Application book by John Robbins, chapter 10 Debugging Windows 2000 Services and DLLs That Load into Services. Igor
  • ICommandWithParameters implementation code

    help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • ActiveX in a MFC Dll

    com help question c++
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • com

    c++ com sysadmin
    2
    0 Votes
    2 Posts
    8 Views
    A
    Hi, Information about registered COM objects is stored in the registry. You can try the CLSIDFromProgID function to check if specified ProgID is registered. You can also create an instance of the object and then release it, to be 100% sure that all pieces in place. Regards, Alex Gorev, Dundas Software.
  • ATL Object Wizard

    question c++
    2
    0 Votes
    2 Posts
    6 Views
    N
    Select Tools/Customize, then select "Insert" from the "Category" combobox on the "Commands" tab. Drag the icon for the "New ATL Object" command over the "Insert" menu, and drop it into place. Thats it! Regards, Nick Hodapp
  • Two questions(webbrowser)

    question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • c++ class relationships

    question c++ com
    3
    0 Votes
    3 Posts
    10 Views
    V
    In simple terms aggregration means that the COM Component has an Internal Interface which is doing all your work though you are talking to front interface which redirects your job to its internal interface. As far as containment is correctly interpreted by me refers to the interface by which COM is exposing the rest of the interface contained inside it.
  • ATL Controls

    c++ tutorial
    1
    0 Votes
    1 Posts
    3 Views
    No one has replied
  • Webbrowser repaint

    5
    0 Votes
    5 Posts
    14 Views
    D
    Thank you for your reply.
  • com

    question com
    2
    0 Votes
    2 Posts
    7 Views
    A
    Hi, COM object can be stored in the DLL or EXE file. When a COM object is stored in the DLL the only difference with the usual DLL file, is that the COM DLL must have several COM related methods: DllGetClassObject DllRegisterServer DllUnregisterServer DllCanUnloadNow See description of these functions in MSDN for more details... Regards, Alex Gorev, Dundas Software.
  • 0 Votes
    3 Posts
    10 Views
    B
    Call CoGetClassObject() and test to see if it fails with the REGDB_E_CLASSNOTREG error: IClassFactory* pCF = NULL; HRESULT hResult = CoGetClassObject(CLSID_TheObject, NULL, CLSCTX_WHATEVER_YOU_WANT_TO_USE, (void**)&pCF); if (FAILED(hResult)) { if (hResult == REGDB_E_CLASSNOTREG) { // the server's not registered properly... } }
  • HTML help viewer

    html help
    2
    0 Votes
    2 Posts
    6 Views
    B
    A GUI comes with Windows which is like MSDN! :)
  • DCOM Tutorial Announcement

    c++ sysadmin visual-studio com beta-testing
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied