Results 1 to 2 of 2

Thread: How to get the COM+ component status with VB6

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2009
    Posts
    1

    How to get the COM+ component status with VB6

    I want to get the COM+ component status, such as "In Call", "Call Time(ms)". with VB6 in windows 2000.
    I try to use COMSVCSLib to get the status, and I think IGetAppData interface can do it. But I do not know how to use IGetAppData in VB6.
    Example, I want to use the "GetApps" method.
    HRESULT _stdcall GetApps(
    [out] unsigned long* nApps,
    [out] appData** aAppData);
    But I do not know how to Dim the appData parameter. "Dim a as appData" and "Dim a as CAppData" both exception.

    Please help me and tell me how to get the component status in VB6, it is better to give me an example.

    Thanks a lot!

  2. #2
    New Member
    Join Date
    Jan 2009
    Posts
    1

    Re: How to get the COM+ component status with VB6

    You cannot access this interface directly from VB 6.0.

    You can use this free component from VB 6.0 to get the data: http://www.egilh.com/blog/articles/ComTracker.aspx

    The page links to C++ source code if you prefer to compile the code yourself.

    Cheers,
    egilh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width