I down a demo project from codeproject, but failed to pass compilation.
Here is some code:

<code>
int retId = TrackPopupMenu( hPopup , TPM_LEFTALIGN | TPM_LEFTBUTTON |
TPM_RETURNCMD |TPM_HORNEGANIMATION
, pt.x , pt.y , 0 , this -> m_hWnd , NULL );

... ...


NOTIFYICONDATA tnd;
switch (message)
{
case NIM_ADD:
case NIM_MODIFY:
tnd.dwState = NIS_HIDDEN; //here compile failed !
tnd.uFlags = NIF_MESSAGE | NIF_ICON | NIF_TIP;
break;
case NIM_DELETE:
tnd.uFlags = 0;
break;

}
</code>

And some error message:
MFConfigurationDlg.cpp
E:\vcProject\exexise\Desktop_Switcher_demo\MFConfigurationDlg.cpp(362) :
error C2065: 'TPM_HORNEGANIMATION' : undeclared identifier
MFDeskTopHelper.cpp
E:\vcProject\exexise\Desktop_Switcher_demo\MFDeskTopHelper.cpp(664) : error
C2039: 'dwState' : is not a member of '_NOTIFYICONDATAA'
d:\program files\microsoft visual
studio\vc98\include\shellapi.h(500) : see declaration of '_NOTIFYICONDATAA'
E:\vcProject\exexise\Desktop_Switcher_demo\MFDeskTopHelper.cpp(664) : error
C2065: 'NIS_HIDDEN' : undeclared identifier




My developing enviroment: win2k+sp4 + VC6+sp5 + IE6 (install before VC6).

Is that my SDK need updated ?


Your Sincerely!
youhua wang

Re: How to solve compile error C2065 like this? by Frank

Frank
Sun May 08 23:57:14 CDT 2005

"youhua.wang" <youhua.wang@asiacontrol.com.cn> wrote in message
news:%23zSww3DVFHA.928@TK2MSFTNGP15.phx.gbl...

<snip>

> My developing enviroment: win2k+sp4 + VC6+sp5 + IE6 (install before VC6).
>
> Is that my SDK need updated ?
>
>
> Your Sincerely!
> youhua wang
>

Yes, in order to make use of the code you downloaded using VC6, you will
need to download the Microsoft Platform SDK from Microsoft although you may
be hard pressed finding one that supports VC6 now.

--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.



Re: How to solve compile error C2065 like this? by youhua

youhua
Mon May 09 05:12:00 CDT 2005

Thanks, Frank!

Yes, it it a little hard , I even have no experience with update SDK.
But i will try to do it.


"Frank Hickman [MVP]" <fhickman_NOSP@M_noblesoft.com> wrote in message
news:egma3SFVFHA.3920@TK2MSFTNGP10.phx.gbl...
> "youhua.wang" <youhua.wang@asiacontrol.com.cn> wrote in message
> news:%23zSww3DVFHA.928@TK2MSFTNGP15.phx.gbl...
>
> <snip>
>
> > My developing enviroment: win2k+sp4 + VC6+sp5 + IE6 (install before
VC6).
> >
> > Is that my SDK need updated ?
> >
> >
> > Your Sincerely!
> > youhua wang
> >
>
> Yes, in order to make use of the code you downloaded using VC6, you will
> need to download the Microsoft Platform SDK from Microsoft although you
may
> be hard pressed finding one that supports VC6 now.
>
> --
> ============
> Frank Hickman
> Microsoft MVP
> NobleSoft, Inc.
> ============
> Replace the _nosp@m_ with @ to reply.
>
>