I am trying to use an OCX control in a console application and I have been doing some reading from the following post
In the following statement
HRESULT hr = CoCreateInstance(CLSID_Registration, 0, CLSCTX_ALL, IID__Registration, reinterpret_cast<void**>(&preg));
hr has the value Class is not licensed for use.
I tried registering the ocx and I still have the issue. How do i overcome this problem?