4.Tl, I want to trigger an incident in the work thread. What should I do?
Here you introduce the easiest way:
CXXXATL is the class of ATL
CWork for work class
Static int CWORK :: Workthread (void * p) is a work thread function
First, let CXXXATL and CWORK reference each other, that is, CLASS CXXXATL before the CWORK class.
Add member pointer cxxxatl * PATL to CWORK;
Add a work class in the CXXXATL class: m_work;
Add m_work.patl = this in the cxxxatl constructor;
CWORK is incorporated into the THIS pointer when calling Workthread;
You can pass (CWORK *) P) in Workthread -> PATL.FIRE_XXX ()
trigger event
5. Why do I define the interface parameters of the BOOL type but can't choose the value of TRUE / FALSE in VB?
Because BOOL is actually the definition of int type, you should use a variant_bool type
6. Why is Debug mode compiled correctly, but the Release mode cannot be compiled correctly, prompting:
Creating Library ReleaseMindendency / agent.lib and object transleaseMindependency / agent.exp
Libcmt.lib (CRT0.Obj): Error LNK2001: Unresolved External Symbol_main
ReleaseMindependency / Agent.dll: Fatal Error LNK1120: 1 Unresolved Externals
Error Executing Link.exe.
Open the project settings, remove _atl_min_crt in ProProcess Definitions in the C / C page