Patch for DC++ 0.242 to compile under VS.net 2003

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

Moderator: Moderators

Locked
Hydra
Posts: 4
Joined: 2003-04-20 16:10

Patch for DC++ 0.242 to compile under VS.net 2003

Post by Hydra » 2003-04-20 17:40

Use "patch -lp 1 < dcplusplus0.242-vs.net-2003-hydra.diff" to apply the diff, I used the "patch" tool from cygwin. (adjust the -p parameter depending on your current directory at time of calling patch program)

Grab the file here:

http://www.zenadsl5874.zen.co.uk/temp/d ... hydra.diff

Also, you'll need a fixed STL port 4.5.3, see this post I made earlier:

http://dcplusplus.sourceforge.net/forum ... php?t=2292

Please reply to this if you thought this post was useful.

harhar
Posts: 2
Joined: 2003-03-16 00:00

Post by harhar » 2003-04-21 17:40

mmm, how do I use the diff file?

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

Post by GargoyleMT » 2003-04-21 19:03

Get "patch". You can find it in cygwin, or you can find a native windows version: http://hp.vector.co.jp/authors/VA010446 ... x1/#difpat That's just the first link I found it on, and I bookmarked it. Patch, like diff, is command line.

harhar
Posts: 2
Joined: 2003-03-16 00:00

Post by harhar » 2003-04-21 20:03

yep, works well.

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-07-20 12:58

I have tried to use the patch and i dose not work at all for me. I just get errors, somthing like
!Only in DCPlusPlus-0.242/vsnet2003fixed/: DCPlusPlus.sln.old
!Only in DCPlusPlus-0.242/vsnet2003fixed/: DCPlusPlus.vcproj.old
!Only in DCPlusPlus-0.242/vsnet2003fixed/MakeDefs: MakeDefs.vcproj.old
!Only in DCPlusPlus-0.242/vsnet2003fixed/: app
!Only in DCPlusPlus-0.242/vsnet2003fixed/: bzip2.vcproj.old


and then i tries to locate the files manualla and patch them from this stage do I only get an error combined whit a message which says that I can find out put in filnamne.old.rej.

Why do I have this problem thit this .diff file?
( the one for STlport works perfectly and i´m using the cygwin patchtool)
Anyone please help!

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

Post by GargoyleMT » 2003-07-21 11:25

joakim_tosteberg wrote:I have tried to use the patch and i dose not work at all for me. I just get errors, somthing like
!Only in DCPlusPlus-0.242/vsnet2003fixed/: DCPlusPlus.sln.old
Those aren't errors, those are informative messages. You can remove them from the .diff file if you want.
and then i tries to locate the files manualla and patch them from this stage do I only get an error combined whit a message which says that I can find out put in filnamne.old.rej.
Well, your source is probably a different version from the one that the patch was created against. Mismatches are to be expected. You can use a command line option to force it to search with a greater fuzz. Otherwise, open the .rej file and the source file and manually move the different lines over.

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2003-07-26 02:01

mine still didn't compile after the patch. I had to change

class DirectoryListingFrame : public MDITabChildWindowImpl<DirectoryListingFrame, RGB(255, 0, 255)>, CSplitterImpl<DirectoryListingFrame>
to
class DirectoryListingFrame : public MDITabChildWindowImpl<DirectoryListingFrame, RGB(255, 0, 255)>, public CSplitterImpl<DirectoryListingFrame>

in DirectoryListingFrm.h

joakim_tosteberg
Forum Moderator
Posts: 587
Joined: 2003-05-07 02:38
Location: Sweden, Linkoping

Post by joakim_tosteberg » 2003-07-26 04:52

Tahts probably because the patch fails to patch that file, it tries to use this:

***************
*** 33,39 ****

#define STATUS_MESSAGE_MAP 9

- class DirectoryListingFrame : public MDITabChildWindowImpl<DirectoryListingFrame>, CSplitterImpl<DirectoryListingFrame>
{
public:
enum {


--- 33,39 ----

#define STATUS_MESSAGE_MAP 9

+ class DirectoryListingFrame : public MDITabChildWindowImpl<DirectoryListingFrame>, public CSplitterImpl<DirectoryListingFrame>
{
public:
enum {


but in the latest dc version the RGB(255, 0, 255) have been added and you´ll have to change tagh manuall 8 thats my guess anyway).
Myself I had to do all patching of the dcplusplus files manually.

Sedulus
Forum Moderator
Posts: 687
Joined: 2003-01-04 09:32
Contact:

Post by Sedulus » 2003-10-11 05:30

ah, no problems with 0263 either.. unstickifying
http://dc.selwerd.nl/hublist.xml.bz2
http://www.b.ali.btinternet.co.uk/DCPlusPlus/index.html (TheParanoidOne's DC++ Guide)
http://www.dslreports.com/faq/dc (BSOD2600's Direct Connect FAQ)

Gratch06
Posts: 141
Joined: 2003-05-25 01:48
Location: USA

Post by Gratch06 » 2004-01-23 22:19

Just upgraded to VS.net 2003, and still working with an older version of DC++ (pre .263). Does anyone have the diff mentioned up at the top of this post available? If so, a link would be nice, or I can provide an e-mail address in Private Message if you'd prefer.

Twink
Posts: 436
Joined: 2003-03-31 23:31
Location: New Zealand

Post by Twink » 2004-01-23 22:54

dcplusplus0.242-vs.net-2003-hydra.diff

Code: Select all

Only in DCPlusPlus-0.242/vsnet2003fixed/: DCPlusPlus.sln.old
Only in DCPlusPlus-0.242/vsnet2003fixed/: DCPlusPlus.vcproj.old
Only in DCPlusPlus-0.242/vsnet2003fixed/MakeDefs: MakeDefs.vcproj.old
Only in DCPlusPlus-0.242/vsnet2003fixed/: app
Only in DCPlusPlus-0.242/vsnet2003fixed/: bzip2.vcproj.old
diff -buar -X makediff.dat DCPlusPlus-0.242/clean/client/config.h DCPlusPlus-0.242/vsnet2003fixed/client/config.h
--- DCPlusPlus-0.242/clean/client/config.h	2003-04-15 12:14:00.000000000 +0100
+++ DCPlusPlus-0.242/vsnet2003fixed/client/config.h	2003-04-20 23:31:04.000000000 +0100
@@ -67,7 +67,7 @@
 #endif
 
 // These are defined by the C99 standard, but vc 6.0/7.0 doesn't understand them
-#if _MSC_VER == 1200 || _MSC_VER == 1300
+#if _MSC_VER == 1200 || _MSC_VER == 1300 || _MSC_VER == 1310
 typedef signed char int8_t;
 typedef signed short int16_t;
 typedef signed long int32_t;
Only in DCPlusPlus-0.242/vsnet2003fixed/: client.vcproj.old
Only in DCPlusPlus-0.242/vsnet2003fixed/: vc7
diff -buar -X makediff.dat DCPlusPlus-0.242/clean/windows/DirectoryListingFrm.h DCPlusPlus-0.242/vsnet2003fixed/windows/DirectoryListingFrm.h
--- DCPlusPlus-0.242/clean/windows/DirectoryListingFrm.h	2003-04-15 12:14:00.000000000 +0100
+++ DCPlusPlus-0.242/vsnet2003fixed/windows/DirectoryListingFrm.h	2003-04-20 23:34:55.000000000 +0100
@@ -33,7 +33,7 @@
 
 #define STATUS_MESSAGE_MAP 9
 
-class DirectoryListingFrame : public MDITabChildWindowImpl<DirectoryListingFrame>, CSplitterImpl<DirectoryListingFrame>
+class DirectoryListingFrame : public MDITabChildWindowImpl<DirectoryListingFrame>, public CSplitterImpl<DirectoryListingFrame>
 {
 public:
 	enum {
diff -buar -X makediff.dat DCPlusPlus-0.242/clean/windows/FlatTabCtrl.h DCPlusPlus-0.242/vsnet2003fixed/windows/FlatTabCtrl.h
--- DCPlusPlus-0.242/clean/windows/FlatTabCtrl.h	2003-04-15 12:14:02.000000000 +0100
+++ DCPlusPlus-0.242/vsnet2003fixed/windows/FlatTabCtrl.h	2003-04-20 23:33:40.000000000 +0100
@@ -330,7 +330,7 @@
 	public:
 
 		typedef vector<TabInfo*> List;
-		typedef List::iterator ListIter;
+		typedef typename List::iterator ListIter;
 
 		enum { MAX_LENGTH = 20 };
 
diff -buar -X makediff.dat DCPlusPlus-0.242/clean/windows/main.cpp DCPlusPlus-0.242/vsnet2003fixed/windows/main.cpp
--- DCPlusPlus-0.242/clean/windows/main.cpp	2003-04-15 12:14:06.000000000 +0100
+++ DCPlusPlus-0.242/vsnet2003fixed/windows/main.cpp	2003-04-21 00:08:57.000000000 +0100
@@ -49,7 +49,7 @@
 #ifndef _DEBUG
 #if _MSC_VER == 1200
 	__pfnDliFailureHook = FailHook;
-#elif _MSC_VER == 1300
+#elif _MSC_VER == 1300 || _MSC_VER == 1310
 	__pfnDliFailureHook2 = FailHook;
 #else
 #error Unknown Compiler version
Only in DCPlusPlus-0.242/vsnet2003fixed/: zlib.vcproj.old

Gratch06
Posts: 141
Joined: 2003-05-25 01:48
Location: USA

Post by Gratch06 » 2004-01-24 14:26

Thanks Twink! That worked out great for me. Compiled perfectly after those changes (And a couple other unrelated minor ones).

Locked