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. Error CXX0052: Member function not found

Error CXX0052: Member function not found

Scheduled Pinned Locked Moved C / C++ / MFC
help
4 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.
  • A Offline
    A Offline
    AmbiguousName
    wrote on last edited by
    #1

    hello guys... I have a listbox on my dialog. I am debugging my program and getting this error. Here is what I am trying

    if(ListBox.GetCount() >= 1)
    //then do some stuff

    Now when I select ListCtrl.GetCount() and select Add Watch, it shows me the said error. Now although the problem is solved using following technique but what if I don't want to add unnecessary variables.

    int count = ListBox.GetCount();
    if(count >= 1)
    //then do some stuff

    This world is going to explode due to international politics, SOON.

    B L 3 Replies Last reply
    0
    • A AmbiguousName

      hello guys... I have a listbox on my dialog. I am debugging my program and getting this error. Here is what I am trying

      if(ListBox.GetCount() >= 1)
      //then do some stuff

      Now when I select ListCtrl.GetCount() and select Add Watch, it shows me the said error. Now although the problem is solved using following technique but what if I don't want to add unnecessary variables.

      int count = ListBox.GetCount();
      if(count >= 1)
      //then do some stuff

      This world is going to explode due to international politics, SOON.

      B Offline
      B Offline
      Binu MD
      wrote on last edited by
      #2

      Please set your complier optimization option to “Disabled” and try

      1 Reply Last reply
      0
      • A AmbiguousName

        hello guys... I have a listbox on my dialog. I am debugging my program and getting this error. Here is what I am trying

        if(ListBox.GetCount() >= 1)
        //then do some stuff

        Now when I select ListCtrl.GetCount() and select Add Watch, it shows me the said error. Now although the problem is solved using following technique but what if I don't want to add unnecessary variables.

        int count = ListBox.GetCount();
        if(count >= 1)
        //then do some stuff

        This world is going to explode due to international politics, SOON.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        See here[^]; if the code is inlined then no function exists in the compiled version.

        speaking as ...

        1 Reply Last reply
        0
        • A AmbiguousName

          hello guys... I have a listbox on my dialog. I am debugging my program and getting this error. Here is what I am trying

          if(ListBox.GetCount() >= 1)
          //then do some stuff

          Now when I select ListCtrl.GetCount() and select Add Watch, it shows me the said error. Now although the problem is solved using following technique but what if I don't want to add unnecessary variables.

          int count = ListBox.GetCount();
          if(count >= 1)
          //then do some stuff

          This world is going to explode due to international politics, SOON.

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          That variable would get optimised out in a release build anyway so dont worry about it.

          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