HIMETRIC_INCH undeclared??! wth?
-
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 --------------------------------------------
-
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 --------------------------------------------
"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! ;-)
-
"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! ;-)
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 --------------------------------------------
-
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 --------------------------------------------
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!
-
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 --------------------------------------------
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
-
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
-
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 --------------------------------------------
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
-
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