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. HANDLE of a window

HANDLE of a window

Scheduled Pinned Locked Moved C / C++ / MFC
debugginghelptutorial
4 Posts 4 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.
  • R Offline
    R Offline
    RockyJames
    wrote on last edited by
    #1

    Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James

    I H J 3 Replies Last reply
    0
    • R RockyJames

      Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James

      I Offline
      I Offline
      includeh10
      wrote on last edited by
      #2

      maybe u change resource ID of the control? use class wizard to delete member of the CListBox then add it again. I just guess so.

      1 Reply Last reply
      0
      • R RockyJames

        Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #3

        If insert another combobox and declare a variable for it what happens?


        WhiteSky


        1 Reply Last reply
        0
        • R RockyJames

          Hi, I have placed a ComboBox in a formview.In OnInitialUpdate i am setting the ComboBox Current selection to Zero.When i run the application i am getting an ASSERTION.When i debug the application,i find the problem at SetCurSel funtion.I am getting the Handle of ComboBox as NULL.How to over come this problem. Thanks in before James

          J Offline
          J Offline
          James R Twine
          wrote on last edited by
          #4

          Make sure you are trying to use the combo box after the base class version of OnInitialUpdate(...) has been called, or your controls may not have been created or attached-to yet.    Peace!

          -=- James


          If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
          Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
          DeleteFXPFiles & CheckFavorites (Please rate this post!)

          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