Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

structs defined in wingdi.h

Status
Not open for further replies.

peterworth

Programmer
Aug 18, 2004
80
GB
when i declare a struct which is defined in this header there are no compiler errors, but when i step through the code the variable does not seem to exist after it is declared. for example:
Code:
BITMAPINFOHEADER bmih;
bmih.biSize = sizeof(BITMAPINFOHEADER);
at the second line (and beyond), the debugger says the symbol bmih is not found.
does anyone know why this might be? i've tried explicitly including wingdi.h just to make sure..
 
are you including the header file in your code? (I mean the right path etc)

is the bmih definition inside a pair of braces?

K
 
yes its definately finding the header otherwise there would be a compile error right? also, i dont think there can be anything wrong with the actual definition because its a standard windows header.
 
>the debugger says the symbol bmih is not found

The debugger might fail to find a lot of things, but that doesn't mean they doesn't exist.

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top