Now, i want to merge client percentage into offcial source from MorphXT 11.3, then compile it
The first step is upload window.
I declare what should be declared in "updownclient.h"
Quote
...
void DrawCompletedPercent(CDC* dc, RECT* cur_rec) const; //Fafner: client percentage - 080325
...
//MORPH START - Added by SiRoB, Optimization requpfile
CKnownFile* CheckAndGetReqUpFile() const;
//MORPH END - Added by SiRoB, Optimization requpfile
...
void DrawCompletedPercent(CDC* dc, RECT* cur_rec) const; //Fafner: client percentage - 080325
...
//MORPH START - Added by SiRoB, Optimization requpfile
CKnownFile* CheckAndGetReqUpFile() const;
//MORPH END - Added by SiRoB, Optimization requpfile
...
then copy the source code, as blow, to official "UploadListCtrl.cpp"
Quote
// MORPH START
// Stullemon: I don't actually like this...
//MORPH START - Adde by SiRoB, Optimization requpfile
/*
const CKnownFile *file = theApp.sharedfiles->GetFileByID(client->GetUploadFileID());
*/
const CKnownFile* file = client->CheckAndGetReqUpFile();
//MORPH END - Adde by SiRoB, Optimization requpfile
if (file) // protect against deleted file
client->DrawCompletedPercent(dc,&cur_rec); //Fafner: client percentage - 080325
// MORPH END
// Stullemon: I don't actually like this...
//MORPH START - Adde by SiRoB, Optimization requpfile
/*
const CKnownFile *file = theApp.sharedfiles->GetFileByID(client->GetUploadFileID());
*/
const CKnownFile* file = client->CheckAndGetReqUpFile();
//MORPH END - Adde by SiRoB, Optimization requpfile
if (file) // protect against deleted file
client->DrawCompletedPercent(dc,&cur_rec); //Fafner: client percentage - 080325
// MORPH END
while linking, errors appear:
Quote
8>Linking...
8>UploadListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall CUpDownClient::DrawCompletedPercent(class CDC *,struct tagRECT *)const " (?DrawCompletedPercent@CUpDownClient@@QBEXPAVCDC@@PAUtagRECT@@@Z) referenced in function "protected: virtual void __thiscall CUploadListCtrl::DrawItem(struct tagDRAWITEMSTRUCT *)" (?DrawItem@CUploadListCtrl@@MAEXPAUtagDRAWITEMSTRUCT@@@Z)
8>UploadListCtrl.obj : error LNK2019: unresolved external symbol "public: class CKnownFile * __thiscall CUpDownClient::CheckAndGetReqUpFile(void)const " (?CheckAndGetReqUpFile@CUpDownClient@@QBEPAVCKnownFile@@XZ) referenced in function "protected: virtual void __thiscall CUploadListCtrl::DrawItem(struct tagDRAWITEMSTRUCT *)" (?DrawItem@CUploadListCtrl@@MAEXPAUtagDRAWITEMSTRUCT@@@Z)
8>Release_vc9\emule.exe : fatal error LNK1120: 2 unresolved externals
8>UploadListCtrl.obj : error LNK2019: unresolved external symbol "public: void __thiscall CUpDownClient::DrawCompletedPercent(class CDC *,struct tagRECT *)const " (?DrawCompletedPercent@CUpDownClient@@QBEXPAVCDC@@PAUtagRECT@@@Z) referenced in function "protected: virtual void __thiscall CUploadListCtrl::DrawItem(struct tagDRAWITEMSTRUCT *)" (?DrawItem@CUploadListCtrl@@MAEXPAUtagDRAWITEMSTRUCT@@@Z)
8>UploadListCtrl.obj : error LNK2019: unresolved external symbol "public: class CKnownFile * __thiscall CUpDownClient::CheckAndGetReqUpFile(void)const " (?CheckAndGetReqUpFile@CUpDownClient@@QBEPAVCKnownFile@@XZ) referenced in function "protected: virtual void __thiscall CUploadListCtrl::DrawItem(struct tagDRAWITEMSTRUCT *)" (?DrawItem@CUploadListCtrl@@MAEXPAUtagDRAWITEMSTRUCT@@@Z)
8>Release_vc9\emule.exe : fatal error LNK1120: 2 unresolved externals
I donn't know what to do next.
This post has been edited by once375ml: 25 April 2009 - 07:55 PM