I am developping C++ application and use VB component as a server ,I import
VB server and create instance like this:
---------------------------------
#import "..\VBcomponent.dll"
VBcomponent::_CClassPtr pServer ;
HRESULT hr = pServer.CreateInstance(__uuidof(VBcomponent::_CClassPtr));
---------------------------------------------------

But this code throw error exception says that : Class not registered.
Can anybody tell me why this happen?

Regards.