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. Anyoune knows differences with custom controls in NT and W98???

Anyoune knows differences with custom controls in NT and W98???

Scheduled Pinned Locked Moved C / C++ / MFC
learningcsshelpquestion
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
    M Vo
    wrote on last edited by
    #1

    Hi, I am stuck... We use a custom control (yes, THE Grid Control ;-) in a big project . With NT4 everything is running fine, but now someone dared to run it with Win98 and W2k. The Result: every dialog with the grid in it refused to open!!! The samples provided with the grid run fine on the same machine, so it is nothing with the grid. When I setl the custom control in the resource editor to the classname EDIT, the dialog starts (but it looks terrible, of course ;-). So: what can be wrong in this project? ANY hints? Martin

    P M 2 Replies Last reply
    0
    • M M Vo

      Hi, I am stuck... We use a custom control (yes, THE Grid Control ;-) in a big project . With NT4 everything is running fine, but now someone dared to run it with Win98 and W2k. The Result: every dialog with the grid in it refused to open!!! The samples provided with the grid run fine on the same machine, so it is nothing with the grid. When I setl the custom control in the resource editor to the classname EDIT, the dialog starts (but it looks terrible, of course ;-). So: what can be wrong in this project? ANY hints? Martin

      P Offline
      P Offline
      pba_
      wrote on last edited by
      #2

      Did you try to recompile the code under w98 ? I have experienced some similar problems - I can't run the programm compiled in NT under 98 , but the programm compiled under 98 it works fine on both NT & 98.I think some links aren't good ....

      M 1 Reply Last reply
      0
      • P pba_

        Did you try to recompile the code under w98 ? I have experienced some similar problems - I can't run the programm compiled in NT under 98 , but the programm compiled under 98 it works fine on both NT & 98.I think some links aren't good ....

        M Offline
        M Offline
        M Vo
        wrote on last edited by
        #3

        Yes, I tried it, but with no success. In the meantime I got another hint: The dialogs don't load when I put the ressources into an external DLL (as it is the case in this project)! Is there a way to tell the application, that it has to run with such an external DLL AND custom controls? Did I miss something important to do? Every other dialog works just fine, only the dialogs with custom controls in it refuse to load... Martin

        1 Reply Last reply
        0
        • M M Vo

          Hi, I am stuck... We use a custom control (yes, THE Grid Control ;-) in a big project . With NT4 everything is running fine, but now someone dared to run it with Win98 and W2k. The Result: every dialog with the grid in it refused to open!!! The samples provided with the grid run fine on the same machine, so it is nothing with the grid. When I setl the custom control in the resource editor to the classname EDIT, the dialog starts (but it looks terrible, of course ;-). So: what can be wrong in this project? ANY hints? Martin

          M Offline
          M Offline
          M Vo
          wrote on last edited by
          #4

          Hi, I've got it!!! When using an external DLL, you have to register the window class for THAT DLL! So you have to set the hInst of the WNDCLASS-structure via AfxGetResourceHandle() instead of AfxGetInstanceHandle() as it is done most of the time... Happy greetings, Martin

          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