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;
}