Patch for DC++ 0.242 to compile under VS.net 2003
Moderator: Moderators
Patch for DC++ 0.242 to compile under VS.net 2003
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.
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.
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
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.
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
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!
!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!
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Those aren't errors, those are informative messages. You can remove them from the .diff file if you want.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
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.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.
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
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
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
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.
***************
*** 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.
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)
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)
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