Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

problems with ActiveX/Com element and automation server list

Hello,
 
thanks for your fast response. Now I can choose an automation server, select an object class and "create new". 
I have written an automation server with ATL Wizard. In this server exists a function that reacts on WM_CREATE message.  If the WM_CREATE message is receive the function opens a message box. I tried to implement this in the teststep and start the execution, but nothing happens.
Now I explain a little deeper how I create this automation server:
  1. file > new
  2. ATL-COM Wizard
  3. Server type > dll
  4. MFC enabled
  5. new ATL object
  6. controls > full controls
  7. attribute
    1. threading model: apartment
    2. interface: dual
    3. aggregation: yes
    4. ISupportErrorInfo enabled
    5. IConnectionPointContainerImpl enabled
    6. m_bWindowOnly = TRUE;
  8. Create message WM_CREATE :
    BEGIN_MSG_MAP(Caat1)
     CHAIN_MSG_MAP(CComControl<Caat1>
     DEFAULT_REFLECTION_HANDLER()
     MESSAGE_HANDLER(WM_CREATE, OnCreate)
    END_MSG_MAP()

    LRESULT OnCreate(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
     {
      MessageBox("Start");
      return 0;
     }
Can anybody send me an example code (VC++ 6) for this function, that helps me to understand how I must implement the activex server in my VC++ code.
 
thankyou
 
 
Schwede
0 Kudos
Message 1 of 1
(3,222 Views)