Re: Windows c programing

From: CBFalconer (cbfalconer_at_yahoo.com)
Date: 11/16/03


Date: Sun, 16 Nov 2003 19:50:30 GMT

Glen wrote:
>
> Can some one explain me why below example work
>
> LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM
> lParam)
> {
> HDC hdc;
> PAINTSTRUCT ps;
> RECT rect;
> DCB dcb;
> HANDLE hCom;
> BOOL fSuccess, fGet, fSet;
> char *pcCommPort = "COM1";
> DWORD errnum;

It doesn't. So far no identifiers have been defined. The commas
and parentheses might suggest, to a C programmer, that some sort
of function is being defined.

You might try some newsgroup where this collection of
nomenclatures has some meaning. c.l.c is not one.

I take it back. The identifier "char" has meaning, as does the
phrase following it.

-- 
Chuck F (cbfalconer@yahoo.com) (cbfalconer@worldnet.att.net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


Relevant Pages

  • RE: Member call removes display of text????
    ... LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM ... HDC hdc; ... RECT rect; ...
    (microsoft.public.vc.language)
  • Re: Windows c programing
    ... > LRESULT CALLBACK WndProc (HWND hwnd, UINT iMsg, WPARAM wParam, LPARAM ...
    (comp.lang.c)
  • Re: Shutdown hook
    ... > LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM ... Alessio. ...
    (microsoft.public.win32.programmer.kernel)
  • Re: In the need for some advice!
    ... LRESULT CALLBACK CW1_WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM ...
    (microsoft.public.vc.language)
  • Re: Shutdown hook
    ... >> LRESULT CALLBACK WindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM ...
    (microsoft.public.win32.programmer.kernel)