You need to create a static instance, not a static reference.
ErrorH& ErrorH::Instance()
{
static ErrorH self;
return self;
}
CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
Search:Type: Posts; User: D_Drmmr Search: Search took 0.06 seconds.
Results 1 to 1 of 1
|
Click Here to Expand Forum to Full Width |