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. Negative values in resource.h

Negative values in resource.h

Scheduled Pinned Locked Moved C / C++ / MFC
2 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.
  • N Offline
    N Offline
    Nick Blumhardt
    wrote on last edited by
    #1

    Hi all. Has anyone else ever had a problem with the VC++ resource editor giving controls, strings etc. constants with negative values in resource.h? eg, I often get an assertion because the res ed has put something in like this: #define IDC_MYCTRL -63231 is it a known issue? is there a fix? pls excuse me if this is an old one :-O NB

    C 1 Reply Last reply
    0
    • N Nick Blumhardt

      Hi all. Has anyone else ever had a problem with the VC++ resource editor giving controls, strings etc. constants with negative values in resource.h? eg, I often get an assertion because the res ed has put something in like this: #define IDC_MYCTRL -63231 is it a known issue? is there a fix? pls excuse me if this is an old one :-O NB

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This has happened to me, only once. I have no idea why - I just made the value positive and that was it. I suspect it may have something to do with the 'next' values stored at the bottom, I don't know what the maximum value there is, but if it's not stored as an unsigned value, then it will roll over to a big negative number. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

      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