Hi,
I have a project that is a com dll plugin to a host application.
The maker of the host application lets us get pointers to various data stucts
such as the UIContext structure like this.
ISonarUIContext3* m_pSonarUIContext3;
From which I can get the current UI Context running in the Host app:
m_pSonarUIContext3->GetUIContextEx( SurfaceIDs[0], &uiContainer );
Cool.
But I need to now check the UI context from a hook proc.
So I tried to use a static instance of my plugin class as I do with variables.
StaticCBCRMaster->m_pSonarUIContext3->GetUIContextEx( SurfaceIDs[0], &uiContainer );
Which compiles, but can't link because the stuct in the host app is protected and not static.
I'm not going to be able to ever call GetUIContextEx() from a hook proc am I.
:Ron