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:
- file > new
- ATL-COM Wizard
- Server type > dll
- MFC enabled
- new ATL object
- controls > full controls
- attribute
- threading model: apartment
- interface: dual
- aggregation: yes
- ISupportErrorInfo enabled
- IConnectionPointContainerImpl enabled
- m_bWindowOnly = TRUE;
- 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