First of all I would like to say that DC++ is a one of a kind p2p client.
Having that said, I feel I could add just 2 or 3 features to make it perfect
Now, the problem is, that I am a newbie C++ programmer.
I have been into PHP, ASP and CGI so I am not completly blind
So, after a few tries, I managed to compile DC++ v403.
My first reaction was more like : because of the bit amount of files.
But after a I had seen the source code, I't really was not that bad, and when It all was made so systematic I could actually understand a bit
Therefore I started to try on my own, but began to fail and fail and fail.
I searched the forums for help, but could not find anything interesting for my purpose.
What I tried to do, was adding a command at the TransferView.cpp with this line :
Code: Select all
transferMenu.AppendMenu(MF_STRING, IDC_OPEN, CSTRING(OPEN_FILE));
Code: Select all
COMMAND_ID_HANDLER(IDC_OPEN, onRemove) // Im not skilled enough to make my own function yet
So, only idea I got, is to find the ResourceManager.h file and try to add the OPEN_FILE "thing" . But there, ofcourse, I cant find nothing to do with TransferView.cpp (I'm Sure it is a combinding, but I can not see it).c:\DC Source\windows\TransferView.cpp(74) : error C2039: 'OPEN_FILE' : is not a member of 'ResourceManager'
c:\DC Source\client\ResourceManager.h(28) : see declaration of 'ResourceManager'
But then I notice the :
Code: Select all
#include "StringDefs.h"
Then, I add OPEN_FILE but STILL I get a compile error.
Only change is now the ResourceManager.h error is gone, and I got :
Code: Select all
c:\DC Source\windows\TransferView.h(61) : error C2059: syntax error : '=='
c:\DC Source\windows\TransferView.h(61) : error C2143: syntax error : missing ';' before '{'
c:\DC Source\windows\TransferView.cpp(74) : error C2059: syntax error : ','