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. HIMETRIC_INCH undeclared??! wth?

HIMETRIC_INCH undeclared??! wth?

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiocomquestion
8 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.
  • K Offline
    K Offline
    Kuniva
    wrote on last edited by
    #1

    I was trying to display a jpeg picture in a window so i tried the Ole approach, but in all functions they use a constant HIMETRIC_INCH, which is apparently not declared in my header files.. which I think is very odd seeings i never saw anyone else complain about it in the comments.. I have Visual Studio 6.0 and I also have an up-to-date SDK installation. What's going on? Kuniva --------------------------------------------

    A J J 3 Replies Last reply
    0
    • K Kuniva

      I was trying to display a jpeg picture in a window so i tried the Ole approach, but in all functions they use a constant HIMETRIC_INCH, which is apparently not declared in my header files.. which I think is very odd seeings i never saw anyone else complain about it in the comments.. I have Visual Studio 6.0 and I also have an up-to-date SDK installation. What's going on? Kuniva --------------------------------------------

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      "Search Results for HIMETRIC_INCH - 0 topics found" - Are you sure this constant does exist as normal windows constant? Don't try it, just do it! ;-)

      K 1 Reply Last reply
      0
      • A Alexander M

        "Search Results for HIMETRIC_INCH - 0 topics found" - Are you sure this constant does exist as normal windows constant? Don't try it, just do it! ;-)

        K Offline
        K Offline
        Kuniva
        wrote on last edited by
        #3

        Well i got the functions from http://www.codeproject.com/bitmap/render.asp[^]. But i've also seen it used in various other articles that use the Ole way to load pictures. So yea.. it probably exists.. but seeings it's just a constant, maybe someone could just supply me with the value? Kuniva --------------------------------------------

        1 Reply Last reply
        0
        • K Kuniva

          I was trying to display a jpeg picture in a window so i tried the Ole approach, but in all functions they use a constant HIMETRIC_INCH, which is apparently not declared in my header files.. which I think is very odd seeings i never saw anyone else complain about it in the comments.. I have Visual Studio 6.0 and I also have an up-to-date SDK installation. What's going on? Kuniva --------------------------------------------

          J Offline
          J Offline
          Jack Puppy
          wrote on last edited by
          #4

          HIMETRIC = 1/100th of a millimeter 25.4mm per inch #define HIMETRIC_INCH 2540

          :cool: Pssst. You see that little light on your monitor? That's actually a government installed spy camera. Smile and wave to big brother!

          1 Reply Last reply
          0
          • K Kuniva

            I was trying to display a jpeg picture in a window so i tried the Ole approach, but in all functions they use a constant HIMETRIC_INCH, which is apparently not declared in my header files.. which I think is very odd seeings i never saw anyone else complain about it in the comments.. I have Visual Studio 6.0 and I also have an up-to-date SDK installation. What's going on? Kuniva --------------------------------------------

            J Offline
            J Offline
            John R Shaw
            wrote on last edited by
            #5

            Jack Rabbit is correct! I recommend you get a copy of 'Agent Ransack' and use it to search "C:\Program Files\Microsoft Visual Studio\VC98\", when ever you cann't find something you believe is there. Sometimes you need to do that just to find the correct header files, when MSDN fails to specify them. I did that just incase it was and found: #define HIMETRIC_INCH 2540 // HIMETRIC units per inch defined internaly in the file "WINGDIX.CPP". INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

            K 1 Reply Last reply
            0
            • J John R Shaw

              Jack Rabbit is correct! I recommend you get a copy of 'Agent Ransack' and use it to search "C:\Program Files\Microsoft Visual Studio\VC98\", when ever you cann't find something you believe is there. Sometimes you need to do that just to find the correct header files, when MSDN fails to specify them. I did that just incase it was and found: #define HIMETRIC_INCH 2540 // HIMETRIC units per inch defined internaly in the file "WINGDIX.CPP". INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

              K Offline
              K Offline
              Kuniva
              wrote on last edited by
              #6

              How odd :wtf: I don't have a file WinGDIX.h... neither in my vc6 include directory, nor my ms sdk include directory.. weird.. guess it's update time. But thank you both for the replies :) Kuniva --------------------------------------------

              J 1 Reply Last reply
              0
              • K Kuniva

                How odd :wtf: I don't have a file WinGDIX.h... neither in my vc6 include directory, nor my ms sdk include directory.. weird.. guess it's update time. But thank you both for the replies :) Kuniva --------------------------------------------

                J Offline
                J Offline
                John R Shaw
                wrote on last edited by
                #7

                Who said anything about WinGDIX.h? I said it was internaly define in WinGDIX.cpp, which is a supplemental file supplied with VC6. "\VC98\MFC\SRC\WINGDIX.CPP" It is not something you can include in your projects, but it did give the correct value for HIMETRIC_INCH. The simple search also showed that it was not defined in a header file, and therefor must be defined by the programmer. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

                K 1 Reply Last reply
                0
                • J John R Shaw

                  Who said anything about WinGDIX.h? I said it was internaly define in WinGDIX.cpp, which is a supplemental file supplied with VC6. "\VC98\MFC\SRC\WINGDIX.CPP" It is not something you can include in your projects, but it did give the correct value for HIMETRIC_INCH. The simple search also showed that it was not defined in a header file, and therefor must be defined by the programmer. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen

                  K Offline
                  K Offline
                  Kuniva
                  wrote on last edited by
                  #8

                  Oh.. Sorry about that.. mm odd, I did a search using the windows find utility, guess that doesn't work right.. Thx for the program. Kuniva --------------------------------------------

                  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