Re: IDC_STATIC definition missing in resource.h

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




"Mitch Gallant" <jensigner@xxxxxxxxxxxxxxxx> wrote in message news:eqD3oVwfJHA.3668@xxxxxxxxxxxxxxxxxxxxxxx
OK thanks. I'm asking this after reading some of Petzold's "Programming Windows" 5th Edn. 1999. In the samples there he states that
# define IDC_STATIC -1
is automatically included in the resource.h header.
In my code (and Petzold's) the only header includes are windows.h and resource.h.
Does windows.h reference either Afxres.h or winres.h?
Is so has that changed since DevStudio of 1999?

Thanks,
- Mitch


You might find another #include in your .rc file

Petzold was written many versions of Visual Studio ago. Things might have changed.

--
Scott McPhillips [VC++ MVP]

.



Relevant Pages

  • Re: Automatically generate variables
    ... Must be C by your definition since crapit might possibly be a header that makes it C. ... I knew it was *the* windows windows.h header because the ... Given certain assumptions the C code was valid C code, however from what I remember it certainly was not a C program solving the problem since it not only relied on non-C APIs but also relied on external programs that in general are *not* installed on machine. ... You, on the other hand, just said that it might be C even if it goes beyond what the standard defined and gave no outer limit on what could be considered C. ...
    (comp.lang.c)
  • Re: File size increases
    ... format that will work on Windows. ... Are you SURE your header and footer is required to be a graphic? ... graphic is the logo. ...
    (microsoft.public.mac.office.word)
  • Trojan: Noptify.exe?
    ... OS: Windows XP Home w/SP1 ... I have always run software firewalls and am currently running Sygate ... Ethernet II (Packet Length: 62) ... Header checksum: 0x80c ...
    (comp.security.firewalls)
  • Re: How to change the up/down sort icon on list headers
    ... the width of the columns in Details view is controlled by the length of the longest entry in a folder. ... Click and Drag a header divider to change the width of a column. ... How to Change Column Settings in Windows Explorer ... header control away form using owner-draw and onto XP themes.... ...
    (microsoft.public.windowsxp.customize)
  • Re: error C2061
    ... That looks suspiciously like a windows header. ... Try a group that deals with Microsoft or Windows. ... I never in any post suggested that winuser.h was mentioned in the C standard, or that experts in Windows C programming hang out here. ... It is a common problem for inexpert C programmers, no matter what headers or what implementation they might use. ...
    (comp.lang.c)