|
//UnsafeB.cpp
#include "UnsafeB.h"
#include "UnsafeA.h"
//Pull in instance of CUnsafeA
extern CUnsafeA s_UnsafeA;
//Unsafe Static instance initialisation
CUnsafeB s_UnsafeB;
//CUnsafeB default constructor depends on s_UnsafeA
//This dependency could be much more complex and
//difficult to determine in a real aplication
CUnsafeB::CUnsafeB()
{
OutputDebugString( _T("s_UnsafeB has now been constructed\n" ) );
s_UnsafeA.Squawk();
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I'm a UK based software engineering contractor, CEO of Querysoft Ltd, a candidate and activist for the UK Independence Party and occasionally I get time look at Code Project.