Problem with InvokeHelper method in CWnd class
-
Hi, In my code i am having some dlls which i downloaded from a site. But while executing the code that dll is calling InvokeHelper method in CWnd class. But in InvokeHelper method i am getting some assertion failed error at file: winocc.cpp and line: 345. I am unable to understand what to do. Please help me......... :)
-
Hi, In my code i am having some dlls which i downloaded from a site. But while executing the code that dll is calling InvokeHelper method in CWnd class. But in InvokeHelper method i am getting some assertion failed error at file: winocc.cpp and line: 345. I am unable to understand what to do. Please help me......... :)
You have to state your problem more, like why you are using that Dll, which method of that Dll you are calling. InvokeHelper is called when there is a COM object which gets or set some properties. In this case may be you are calling some method which expects parameters guided to COM parameter passing. :laugh:
-
You have to state your problem more, like why you are using that Dll, which method of that Dll you are calling. InvokeHelper is called when there is a COM object which gets or set some properties. In this case may be you are calling some method which expects parameters guided to COM parameter passing. :laugh:
hi, Actually i am tring to connect my system to a handheld device with rs232 port. So, to check the connection between the device and my computer i have to use one control object dll according to OPOS standards. In my control object file i have one method for opening the port. If i call that open method, this method internally calling InvokeHelper method. In the invokeHelper method i am getting assertion failed error. This InvokeHelper method is having one pointer to a class COleControlSite this pointer is showing null. I dont know why it became null, why it is causing the error. Please help me.............
-
hi, Actually i am tring to connect my system to a handheld device with rs232 port. So, to check the connection between the device and my computer i have to use one control object dll according to OPOS standards. In my control object file i have one method for opening the port. If i call that open method, this method internally calling InvokeHelper method. In the invokeHelper method i am getting assertion failed error. This InvokeHelper method is having one pointer to a class COleControlSite this pointer is showing null. I dont know why it became null, why it is causing the error. Please help me.............
So you are using onemethod of that Dll which expect a parameter as COleControlSite. Now this class is related to embedded control, in simple word when you have a container & you want to display a compound object or something like, :laugh: this class plays an important role. So in your case I suppose this Dll is not the suitable option to open a port. Why do not you use various Open, CreateFile APIs?