Sharesize conflict
Moderator: Moderators
-
- Posts: 3
- Joined: 2004-04-26 10:27
Sharesize conflict
hello everyone,
i have a problem with DC++,
I compiled the code myself... and I have problem with the share size that is reported in my DcLst.
I searched for the functions that do that and all i found is GetSize in File.h.
Can anyone help me???
i have a problem with DC++,
I compiled the code myself... and I have problem with the share size that is reported in my DcLst.
I searched for the functions that do that and all i found is GetSize in File.h.
Can anyone help me???
Know
-
- Posts: 3
- Joined: 2004-04-26 10:27
try this one in windows/DirectoryListingFrm.cpp
;))
Code: Select all
string tmp2 = STRING(SIZE) + ": " + Util::formatBytes(total);
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)
Perhaps something like
Could work too? I don't do much C++ thou...
Code: Select all
do
{
sharesize += 1;
}
while(coder=lame);
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping
-
- Posts: 3
- Joined: 2004-04-26 10:27
Some problems with code....
a. there is an error with the while condition (coder=lame) ? (coder==lame???)
b. another error: coder==lame ---> coder == "lame"
c. this condition is always FALSE so the while expression never get to be done...
d. If the only thing I wanted was to change the reported SHARESIZE,
I woudn't need any of your help (Because getSize() will do that... (File.h). But because my problem is :
Then I need the help of some of the guys that have no life... and that computer is their only friend and they spend their time writing DC++(that is really cool, I hope in some year I will reach this level... )
So please help me find my feet on the code please.
b. another error: coder==lame ---> coder == "lame"
c. this condition is always FALSE so the while expression never get to be done...
d. If the only thing I wanted was to change the reported SHARESIZE,
I woudn't need any of your help (Because getSize() will do that... (File.h). But because my problem is :
Code: Select all
(DcLst share size != ShareSize) && !(I wrote DC++)
So please help me find my feet on the code please.
Know
Oh right.. like i said, i don't do much c++ =) how about
?
Code: Select all
int fakesharesize
int coder* = &between_keyboard_and_chair
do
{
fakesharesize += 1;
}
while(coder=="lame");
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Re: Some problems with code....
Finished jerking off yet?ExpertDUKE wrote:Then I need the help of some of the guys that have no life... and that computer is their only friend and they spend their time writing DC++(that is really cool, I hope in some year I will reach this level...
Now, explain what you're trying to do and where you get stuck.
The file list size can be out of sync with DC++'s reported share size for a couple reasons. But the share in the list is always bigger.
-
- Forum Moderator
- Posts: 587
- Joined: 2003-05-07 02:38
- Location: Sweden, Linkoping