How to resolve error "Run-Time Check Failure #3"?
Posted
by karikari
on Stack Overflow
See other posts from Stack Overflow
or by karikari
Published on 2010-05-30T10:37:12Z
Indexed on
2010/05/30
10:42 UTC
Read the original article
Hit count: 225
visual-c++
I am working on MS Visual Studio. I keep on getting this error:
"Run-Time Check Failure #3 - The variable 'test' is being used without being initialized."
I don't have any idea how to solve this. Here is the code that I'm currently tries to modify:
STDMETHODIMP CButtonDemoBHO::Exec(const GUID*, DWORD nCmdID, DWORD d, VARIANTARG*, VARIANTARG* pvaOut)
{
CRebarHandler *test;
switch (nCmdID){
case BUTTON_PRESSED:
MessageBox(m_hWnd, L"You have pressed the button", L"Button Pressed", MB_OK);
test->findButton(m_hWnd);
test->setmenu();
break;
case MENU_ITEM_SELECT:
MessageBox(m_hWnd, L"You have simulated a button press with the menu ", L"Menu Pressed", MB_OK);
break;
}
return S_OK; }
© Stack Overflow or respective owner