Help Me Can't Compile DC++ With VS.NET2003 +STL4.62 +WTL7

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

Moderator: Moderators

Locked
141233
Posts: 5
Joined: 2005-10-13 01:09

Help Me Can't Compile DC++ With VS.NET2003 +STL4.62 +WTL7

Post by 141233 » 2005-10-13 01:45

I followed Compile.exe step by step ,but there is a error:
stdafx.cpp
windows\stdafx.cpp(29) : fatal error C1189: #error : WTL not correctly installed, read compile.txt

why?

I already setted the path in vs.net

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

Post by GargoyleMT » 2005-10-13 02:35

WTL 7? You need 7.5 for recent DC++ versions. The versions of WTL and STLPort vary with the DC++ version, so you'll need to provide that if you want specific help.

141233
Posts: 5
Joined: 2005-10-13 01:09

thanks

Post by 141233 » 2005-10-13 03:09

thanks for your reply i have changed wtl7.0 to wtl7.5 but i got another error:
f:\DCPlusPlus-0.674-src\windows\FlatTabCtrl.h(328) : error C2001: there are newline symbol in constant
f:\DCPlusPlus-0.674-src\windows\FlatTabCtrl.h(328) : fatal error C1057:

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

Post by GargoyleMT » 2005-10-13 03:14

Since you're from .cn (guessing), your editor is playing with the character set of the file, which is causing the character in that code ('»') to get mangled. Fix it.

141233
Posts: 5
Joined: 2005-10-13 01:09

thanks again

Post by 141233 » 2005-10-13 03:53

can you tell me how?
it showd
FlatTabCtrl.h(328) where the error take place
i found it line 328 chevron.SetWindowText(_T("?));

Sulan.
Posts: 2
Joined: 2005-10-06 08:12

Post by Sulan. » 2005-10-13 07:24

You are missing a "

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

Post by GargoyleMT » 2005-10-13 15:44

Rather, the chevron (hex 0x0BB in ASCII) is being mis-interpreted by your computer/editor as a multi-byte character. It is not. You need to fix it by pasting what I have above (or somewhere) in to replace the quoted character constant.
It is supposed to be:

Code: Select all

chevron.SetWindowText(_T("»"));
but your editor shows:

Code: Select all

chevron.SetWindowText(_T("?));
I hope you can see the difference.

Locked