Click here to Skip to main content
15,914,368 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: preemption for 16ms Pin
Randor 25-May-07 4:27
professional Randor 25-May-07 4:27 
GeneralRe: preemption for 16ms Pin
Roger Stoltz27-May-07 12:16
Roger Stoltz27-May-07 12:16 
QuestionAnyone know how I can install this addin? Pin
Stick^24-May-07 1:23
Stick^24-May-07 1:23 
AnswerRe: Anyone know how I can install this addin? Pin
David Crow24-May-07 3:12
David Crow24-May-07 3:12 
Questionlstrlen problem Pin
si_6924-May-07 0:36
si_6924-May-07 0:36 
AnswerRe: lstrlen problem Pin
James R. Twine24-May-07 0:49
James R. Twine24-May-07 0:49 
GeneralRe: lstrlen problem Pin
si_6924-May-07 0:52
si_6924-May-07 0:52 
GeneralRe: lstrlen problem Pin
James R. Twine24-May-07 1:00
James R. Twine24-May-07 1:00 
   If it is a CString, use m_message.GetLength() instead - generally, if an object has a method for some function, you should use it because it may be optimized for that particular object.

   Mismanagement of the CString object can also lead to corruption of its data - for example, if you have a reference to that CString someplace that is getting messed around with.

   You can also ovverun/underrun heap memory (which the string object uses) by not being too careful with them.  If you have any code that casts a CString object into a non-const pointer, that is a good place to start.

   Peace!

-=- James
Please rate this message - let me know if I helped or not!<HR>If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
See DeleteFXPFiles

GeneralRe: lstrlen problem Pin
Naveen24-May-07 1:01
Naveen24-May-07 1:01 
QuestionIs my approach feasible? C++ Pin
C_Zealot24-May-07 0:26
C_Zealot24-May-07 0:26 
AnswerRe: Is my approach feasible? C++ Pin
Christian Graus24-May-07 0:50
protectorChristian Graus24-May-07 0:50 
AnswerRe: Is my approach feasible? C++ Pin
James R. Twine24-May-07 0:51
James R. Twine24-May-07 0:51 
GeneralRe: Is my approach feasible? C++ Pin
C_Zealot24-May-07 0:52
C_Zealot24-May-07 0:52 
GeneralRe: Is my approach feasible? C++ Pin
James R. Twine24-May-07 0:57
James R. Twine24-May-07 0:57 
GeneralRe: Is my approach feasible? C++ Pin
C_Zealot24-May-07 1:24
C_Zealot24-May-07 1:24 
GeneralRe: Is my approach feasible? C++ Pin
James R. Twine24-May-07 2:12
James R. Twine24-May-07 2:12 
GeneralRe: Is my approach feasible? C++ Pin
David Crow24-May-07 3:49
David Crow24-May-07 3:49 
GeneralRe: Is my approach feasible? C++ Pin
Michael Sadlon24-May-07 13:10
Michael Sadlon24-May-07 13:10 
QuestionHow to Get Selected Item Position In CListControl Pin
jannathali24-May-07 0:20
jannathali24-May-07 0:20 
AnswerRe: How to Get Selected Item Position In CListControl Pin
Hamid_RT24-May-07 0:31
Hamid_RT24-May-07 0:31 
GeneralRe: How to Get Selected Item Position In CListControl Pin
jannathali24-May-07 2:39
jannathali24-May-07 2:39 
GeneralRe: How to Get Selected Item Position In CListControl Pin
Hamid_RT24-May-07 10:31
Hamid_RT24-May-07 10:31 
AnswerRe: How to Get Selected Item Position In CListControl Pin
James R. Twine24-May-07 0:53
James R. Twine24-May-07 0:53 
GeneralRe: How to Get Selected Item Position In CListControl Pin
jannathali24-May-07 1:08
jannathali24-May-07 1:08 
GeneralRe: How to Get Selected Item Position In CListControl Pin
James R. Twine24-May-07 2:13
James R. Twine24-May-07 2:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.