Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Help!

Help!

Scheduled Pinned Locked Moved C / C++ / MFC
help
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fynox
    wrote on last edited by
    #1

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

    D R 2 Replies Last reply
    0
    • F fynox

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

      D Offline
      D Offline
      Dominik Reichl
      wrote on last edited by
      #2

      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)

      1 Reply Last reply
      0
      • F fynox

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

        R Offline
        R Offline
        Roger Allen
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups