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. listview & Win98

listview & Win98

Scheduled Pinned Locked Moved C / C++ / MFC
questionc++help
4 Posts 2 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.
  • M Offline
    M Offline
    Maurizio Pisano
    wrote on last edited by
    #1

    ok, I'm working in win32 here, no MFC, when trying to create a listview control in a class I get the following err: First-chance exception in pool.exe (COMCTL32.DLL): 0xC0000005: Access Violation. Now, this err is on Win98 with IE 5.01 the code works fine on WinXP with IE6 it errs right on CreateWindowEx(). I tried just starting a new win32 app and cutting n pasting the code to create the listview n it works fine on that Win98. So my question is what could be the problem, is it the class? :wtf:

    N M 2 Replies Last reply
    0
    • M Maurizio Pisano

      ok, I'm working in win32 here, no MFC, when trying to create a listview control in a class I get the following err: First-chance exception in pool.exe (COMCTL32.DLL): 0xC0000005: Access Violation. Now, this err is on Win98 with IE 5.01 the code works fine on WinXP with IE6 it errs right on CreateWindowEx(). I tried just starting a new win32 app and cutting n pasting the code to create the listview n it works fine on that Win98. So my question is what could be the problem, is it the class? :wtf:

      N Offline
      N Offline
      Nish Nishant
      wrote on last edited by
      #2

      Try calling InitCommonControlsEx first


      Author of the romantic comedy Summer Love and Some more Cricket [New Win]

      M 1 Reply Last reply
      0
      • N Nish Nishant

        Try calling InitCommonControlsEx first


        Author of the romantic comedy Summer Love and Some more Cricket [New Win]

        M Offline
        M Offline
        Maurizio Pisano
        wrote on last edited by
        #3

        I do call InitCommonControlsEx already, thats why it works when I try it outside of the class and why I don't get why it'd be causing that err.

        1 Reply Last reply
        0
        • M Maurizio Pisano

          ok, I'm working in win32 here, no MFC, when trying to create a listview control in a class I get the following err: First-chance exception in pool.exe (COMCTL32.DLL): 0xC0000005: Access Violation. Now, this err is on Win98 with IE 5.01 the code works fine on WinXP with IE6 it errs right on CreateWindowEx(). I tried just starting a new win32 app and cutting n pasting the code to create the listview n it works fine on that Win98. So my question is what could be the problem, is it the class? :wtf:

          M Offline
          M Offline
          Maurizio Pisano
          wrote on last edited by
          #4

          does anyone code on Win98 anymore? after hours trying to pinpoint the problem I found this: if I set the handle of the parent in CreateWindowEx() to that of a window created in a class it fails, setting the handle of a global parent works ok, so is this a known problem on 98? CreateWindowEx(....., CWinA::hWnd,...) fails CreateWindowEx(....., ghWnd,...) is ok and yes, CwinA::hWnd is a static public member of the class, so I'm at a loss as to the problem, I'm looking for any ideas here ppl :)

          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