Quote:
Originally Posted by rajeswaridvssnr
Create a Named Mutex.
HANDLE hMutex=CreateMutex(TRUE,_T(“NamedMutex”))
delcare the structure function as private

create a static instance as private

a static function return the point to the instance

like

class MyClass
{
public:
~MyClass();

static MyClass* GetInstance(){static MyClass instance; return &instance}

private:
MyClass();

};