COM/VBA , COM COM- .
Rubberduck.ParserState, STA. VBA WithEvents , COM-. , COM- COM , .
, (#) (VBA) , ( , ). ++ ( , , , ), , VBA .NET COM interop, , , , , . , ! , , , .
, , , , , , VBA. null, , - ( ..). , COM, , , ..). , , .
: # XLS, , (Subversion/Trac).
Initialize:
public void Initialize()
{
if (OnReady != null)
OnReady();
}
Private Sub Worksheet_Activate()
If state Is Nothing Then Set state = New ComEvents01.ParserState
' Initialize below will have C# raise an event we'd receive state_OnReady
state.Initialize
End Sub
Private Sub state_OnReady()
' We do reach here from Initialize and Worksheet_Activate
End Sub