The problem is in using the tlb created. Try using . It works with me.

//------------------Implementation Method1----------------------------

IHardwareCheckP tr pIDotnetObj;
pIDotnetObj = CreateComObject (CLSID_Hardware Check);
pIDotnetObj->ShowDialog() ;

//--------------------Implementation Method2---------------------------


...