My account: Login | Sign Up
Loading... 

Lvalue Issue @ctransferwnd::showqueuecount | Thread profile

Thread profile page for "Lvalue Issue @ctransferwnd::showqueuecount" on http://forum.emule-project.net. This report page is a snippet summary view from a single thread "Lvalue Issue @ctransferwnd::showqueuecount", located on the Message Board at http://forum.emule-project.net. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: Lvalue Issue @ctransferwnd::showqueuecount
Site: Official eMule-Board (Powered by Invision Power Board)  Official eMule-Board (Powered by Invision Power Board) - site profile
Forum: Bug Reports  Bug Reports - forum profile
Total authors: 4 authors
Total thread posts: 13 posts
Thread activity: no new posts during last week
Domain info for: emule-project.net

Thread posts in Lvalue Issue @ctransferwnd::showqueuecount:

1. 
Started 3 months, 3 weeks ago (2008-06-24 07:19:00)  by taz-me
I'm not an expert however the below seems very bad : CODE _sntprintf(buffer, _countof(buffer), _T("%u (%u ") + GetResString(IDS_BANNED) .MakeLower() + _T(")"), number, theApp.clientlist->GetBannedCount()); I've changed to : CODE // By Taz - fix CString temp; temp = GetResString(IDS_BANNED); _sntprintf(buffer, _countof(buffer), _T("%u (%u ") + temp .MakeLower()...
Size: 1,350 bytes
Customize:  Customize "Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
2. 
Started 3 months, 3 weeks ago (2008-06-24 09:52:00)  by tHeWiZaRdOfDoS
? And why do you think that this is an issue?
Size: 168 bytes
Customize:  Customize "<b>Reply 1</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
3. 
Started 3 months, 3 weeks ago (2008-06-24 10:00:00)  by taz-me
Shouldn't Makelower() be invoked on "regular" stack based var and not on intermediate pointer returned by GetResString ?
Size: 257 bytes
Customize:  Customize "<b>Reply 2</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
4. 
Started 3 months, 3 weeks ago (2008-06-24 10:09:00)  by the Doctor
CString != char * --------------------
Size: 303 bytes
Customize:  Customize "<b>Reply 3</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
5. 
Started 3 months, 3 weeks ago (2008-06-24 10:31:00)  by taz-me
QUOTE(the Doctor @ Jun 24 2008, 12:09 PM) CString != char * and if so ... If there's another GetResString(same IDS) elsewhere the compiler will identify both as "same" thus possibly produce only one ("optimization"). The Makelower in such a case will affect the other usage of the GetResString call as well ... This post has been edited by taz-me : Jun 24 2008, 10:32...
Size: 1,047 bytes
Customize:  Customize "<b>Reply 4</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
6. 
Started 3 months, 3 weeks ago (2008-06-24 10:59:00)  by the Doctor
The CString assign operator is different form a char pointer assign operator. Create a ATL console application and check: CODE #include "stdafx.h" #include <iostream> #include <atlstr.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char * lpzStart = "StringNUMBER1"; CString strStart = lpzStart; cout << "strStart="<< strStart.MakeLower() << endl; cout ...
Size: 1,284 bytes
Customize:  Customize "<b>Reply 5</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
7. 
Started 3 months, 3 weeks ago (2008-06-24 11:43:00)  by taz-me
QUOTE(the Doctor @ Jun 24 2008, 12:59 PM) The CString assign operator is different form a char pointer assign operator. Create a ATL console application and check: CODE #include "stdafx.h" #include <iostream> #include <atlstr.h> using namespace std; int _tmain(int argc, _TCHAR* argv[]) { char * lpzStart = "StringNUMBER1"; CString strStart = lpzStart ; cout << "strStart...
Size: 2,201 bytes
Customize:  Customize "<b>Reply 6</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
8. 
Started 3 months, 3 weeks ago (2008-06-24 11:47:00)  by tHeWiZaRdOfDoS
No you are wrong, it would have to be: CString a(L"Kuku"); CString b(L"Kuku").MakeLower(); GetResString returns a CString object and the above code is correct... I wonder how you found this to be a possible "bug"!? Don't you think IF this were some kind of issue then it'd been found years ago?
Size: 491 bytes
Customize:  Customize "<b>Reply 7</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
9. 
Started 3 months, 3 weeks ago (2008-06-24 11:53:00)  by the Doctor
Since an example does not convince you look carefully at the Borg archives: Basic CString operations In this case "Basic" point to simple, not the ancient computer language. --------------------
Size: 446 bytes
Customize:  Customize "<b>Reply 8</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
10. 
Started 3 months, 3 weeks ago (2008-06-24 12:47:00)  by taz-me
QUOTE(tHeWiZaRdOfDoS @ Jun 24 2008, 01:47 PM) No you are wrong, it would have to be: CString a(L"Kuku"); CString b(L"Kuku").MakeLower(); GetResString returns a CString object and the above code is correct... I'm not that sure since in the example you show MakeLower would be invoked on "b" which is obviously stored on different location then "a". On original (official) code...
Size: 1,886 bytes
Customize:  Customize "<b>Reply 9</b>: Lvalue Issue @ctransferwnd::showqueuecount :: Bug Reports :: Official eMule-Board (Powered by Invision Power Bo..."
 

Top contributing authors for Lvalue Issue @ctransferwnd::showqueuecount

Name Posts
taz-me 6
tHeWiZaRdOfDoS 3
the Doctor 3
fox88 1