Hey Guys I'm trying to fix a program for work and I've found where the problem is, but I do not have enough Visual C++ background to solve it. So see if you guys can.
Declaration:
CTimerEvents m_TimerEngine;
Creation:
HRESULT hr = m_TimerEngine.CoCreateInstance(__uuidof(TimerEngine));
if (SUCCEEDED(hr)) {
do something...
} else {
do something...
}
hr always has the value of 0x8004154 = -2147221164 which means about the class not being registered. Whoever can solve this for me I owe them. Thanks
Declaration:
CTimerEvents m_TimerEngine;
Creation:
HRESULT hr = m_TimerEngine.CoCreateInstance(__uuidof(TimerEngine));
if (SUCCEEDED(hr)) {
do something...
} else {
do something...
}
hr always has the value of 0x8004154 = -2147221164 which means about the class not being registered. Whoever can solve this for me I owe them. Thanks