Syntax error - compiling old version

Problems compiling? Don't understand the source code? Don't know how to code your feature? Post here.

Moderator: Moderators

clueless
Posts: 2
Joined: 2003-05-03 16:14

Syntax error - compiling old version

Post by clueless » 2003-05-05 18:35

First of all, i'm a complete newbie to programing c++.
Just trying to compile an old version of DC++ and work from there.

Anyway, i can't understand why i get this syntax error?
Are the other errors coming because of the syntax error?



--------------------Configuration: DCPlusPlus - Win3Debug--------------------
Compiling...
stdafx.cpp
d:\programing\vc\vs\include\atlframe.h(274) : error C2146: syntax error : missing ';' before identifier 'lpnm'
d:\programing\vc\vs\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
d:\programing\vc\vs\include\atlframe.h(274) : error C2501: 'LPNMREBARCHEVRON' : missing storage-class or type specifiers
d:\programing\vc\vs\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
d:\programing\vc\vs\include\atlframe.h(274) : error C2501: 'lpnm' : missing storage-class or type specifiers
d:\programing\vc\vs\include\atlframe.h(905) : see reference to class template instantiation 'WTL::CFrameWindowImplBase<TBase,TWinTraits>' being compiled
Error executing cl.exe.

DCPlusPlus.exe - 3 error(s), 0 warning(s)



-----The file------------
#if (_WIN32_IE >= 0x0500)
struct _ChevronMenuInfo
{
HMENU hMenu;
LPNMREBARCHEVRON lpnm;
bool bCmdBar;
};
#endif //(_WIN32_IE >= 0x0500)

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

Post by GargoyleMT » 2003-05-06 00:29

According to my VS.NET, LPNMREBARCHEVRON is defined in a file in the Platform SDK. Update yours from the Microsoft site and see if you get the same error.

clueless
Posts: 2
Joined: 2003-05-03 16:14

Post by clueless » 2003-05-07 19:40

Tried updating to the latest SDK.
Still got the same errors.

I haven't installed VS.net, but didn't think i had to install that?

GargoyleMT
DC++ Contributor
Posts: 3212
Joined: 2003-01-08 02:46
Location: .pa.us

ok

Post by GargoyleMT » 2003-05-11 23:16

I haven't updated a Platform SDK myself, but did you point it to the proper include directories? It doesn't seem to install over top of the Platform SDK included in your Visual Studio directory...

Who is online

Users browsing this forum: Google [Bot] and 0 guests