D
DarkOrion_2
Guest
I am trying to develop a C++ application in VS2019 that needs to load an external COM object. I create a class CReport as follows:
class CReport : public IDispEventSimpleImpl<0, CReport, & DIID__IBrokerEvents>
I define two _ATL_FUNC_INFO, define the SINK_MAP inside the class and link with the __stdcall functions. Now, I apply DispEventAdvise and I get only a few messages and then my program terminates... If however I send the DispEventAdvise message twice, I get the stream of messages that I want but with a Debug Assertion Failure, with the message being __atl_condVal. The terminal shows however the full stream of data. If I hit ignore once or twice, then the program crashes...
Continue reading...
class CReport : public IDispEventSimpleImpl<0, CReport, & DIID__IBrokerEvents>
I define two _ATL_FUNC_INFO, define the SINK_MAP inside the class and link with the __stdcall functions. Now, I apply DispEventAdvise and I get only a few messages and then my program terminates... If however I send the DispEventAdvise message twice, I get the stream of messages that I want but with a Debug Assertion Failure, with the message being __atl_condVal. The terminal shows however the full stream of data. If I hit ignore once or twice, then the program crashes...
Continue reading...