Registering a custom CodeInsight manager to C++Builder without initialization/finalization sections
问题 I'm trying to register a custom CodeInsight manager into C++Builder 10.1.2 Berlin. Because there's nothing like Objects Pascal 's initialization and finalization sections in C++, e.g. var codeManagerIndex: Integer; {...} initialization codeManagerIndex := (BorlandIDEServices as IOTACodeInsightServices).AddCodeInsightManager(TMyCodeInsightManager.Create); finalization (borlandIDEServices as IOTACodeInsightServices).RemoveCodeInsightManager(codeManagerIndex); end. I tried reproducing their