I've been tasked with writing a new interface to a legacy C++ DLL I don't have the source code for, which - for reasons beyond me - accesses a global class in the legacy application directly.
From the application, it's something like:
extern Interface *App;
...
Interface App*; // A pointer to our interface class.
Then, from the legacy DLL:
if( App->GetStatus() ) return false;
The Interface class that App refers to is quite trivial to rewrite in C#, but how can I make it the equivalent of extern
so that the legacy C++ DLL can access it?
Thanks!