|
|
|
Re: Problem creating External Event Handler [message #1829792 is a reply to message #1829769] |
Fri, 10 July 2020 15:12 |
|
May I ask what changes you need in the FDSelecthandler? Is it something that we should also do in the public version?
If it is just because of the CComCallback I want to point out that C++ allows multiple inheritence and you can inherit your FB from CEvenSourceFB and CComCallback. To be more specific the CComCallback was introduced for such use cases.
Cheers,
Alois
|
|
|
|
|
|
Re: Problem creating External Event Handler [message #1830349 is a reply to message #1830314] |
Thu, 23 July 2020 19:25 |
|
Hi,
mhmh. in addition inheriting from CBaseCommFB is not a good idea. Can you try changing the virtual CBaseCommFB *getCommFB() to CEventSourceFB*...
Which should fix the compilation problem. But the real problem behind the error message is that you havent set the CEventChainExectuioThread in your event souce FB. The simplest way to do this is to take the CEventchainExectionTrhead from the resource your FB is located in. you can have a look in CBaseCommFB for this.
BR,
Alois
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04383 seconds