Help!
-
Hi... I'm not sure why the error - 'OnSelchangeLUCOMPTop' : local function definitions are illegal, comes out...how shd i ammend this...thanks. void CComp::OnSelchangeLUCOMPTop() { UpdateData(TRUE); Tselection1 = "Selection Changed"; CMain::uc_top = m_uc_ts.GetCurSel(); m_uc_epo.EnableWindow(TRUE); m_uc_epp.EnableWindow(TRUE); }
-
Hi... I'm not sure why the error - 'OnSelchangeLUCOMPTop' : local function definitions are illegal, comes out...how shd i ammend this...thanks. void CComp::OnSelchangeLUCOMPTop() { UpdateData(TRUE); Tselection1 = "Selection Changed"; CMain::uc_top = m_uc_ts.GetCurSel(); m_uc_epo.EnableWindow(TRUE); m_uc_epp.EnableWindow(TRUE); }
fynox wrote: CMain::uc_top That's illegal. I assume you somewhere have declared a pointer to the CMain class in your CComp class:
CMain *pParent
. For example declare in your header file:CMain *pParent
and initialize it from your main class:CComp dlg; dlg.pParent = this;
. Then use this:pParent->uc_top = m_uc_ts.GetCurSel();
. Hope that helps :) Dominik
_outp(0x64, 0xAD);
and__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do?? ;) (doesn't work on NT) -
Hi... I'm not sure why the error - 'OnSelchangeLUCOMPTop' : local function definitions are illegal, comes out...how shd i ammend this...thanks. void CComp::OnSelchangeLUCOMPTop() { UpdateData(TRUE); Tselection1 = "Selection Changed"; CMain::uc_top = m_uc_ts.GetCurSel(); m_uc_epo.EnableWindow(TRUE); m_uc_epp.EnableWindow(TRUE); }
Sounds like you have failed to add a closing brace for a function preceeding this one in the same file.
void CComp::SomeFunction()
{void CComp::OnSelchangeLUCOMPTop()
{UpdateData(TRUE);
Tselection1 = "Selection Changed";
CMain::uc_top = m_uc_ts.GetCurSel();
m_uc_epo.EnableWindow(TRUE);
m_uc_epp.EnableWindow(TRUE);}
Roger Allen Sonork 100.10016 Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003