Hi, I want to pass a window handle from my MDI application to one of my active X control's function. I tried doing it , but I recieve a error in my mdi application which is as follows. "cannot convert parameter 3 from 'struct HWND__ *' to 'struct _RemotableHandle *'". The idl in the active X control has the following declaration. "[id(1), helpstring("method Init")] HRESULT Init(LPTSTR lpstrCmdLine, int nCmdShow,HWND hwnd);" Upon compiling the idl I get the following warning "warning MIDL2039 : interface does not conform to [oleautomation] attribute : [ Parameter 'hwnd' of Procedure 'Init' ( Interface 'IIWzIDE' ) ]" Please tell me how I can pass the window handle to my active X control. Thanks a ton in advance belankaar
S
Sunil1221
@Sunil1221
Posts
-
Passing HWND from a MDI app to a activeX control -
Message Reflection In WTLHow do we use REFLECTED_COMMAND_CODE_HANDLER_EX(code, func) to reflect messages in WTL. A sample for the same will be greatly appreciated. Thanks in advance for the help