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

C / C++ / MFC

 
GeneralWho know CHM help file format Pin
inforix22-Jul-01 20:37
inforix22-Jul-01 20:37 
GeneralRe: Who know CHM help file format Pin
Reid23-Jul-01 13:46
Reid23-Jul-01 13:46 
Generallearn visual c++ Pin
22-Jul-01 20:22
suss22-Jul-01 20:22 
GeneralRe: learn visual c++ Pin
Christian Graus23-Jul-01 0:35
protectorChristian Graus23-Jul-01 0:35 
GeneralRe: learn visual c++ Pin
Ahmad27-Jul-01 9:04
Ahmad27-Jul-01 9:04 
GeneralRe: learn visual c++ Pin
Christian Graus27-Jul-01 13:40
protectorChristian Graus27-Jul-01 13:40 
GeneralPassing Strings and arrays Pin
22-Jul-01 17:22
suss22-Jul-01 17:22 
GeneralRe: Passing Strings and arrays Pin
Michael Dunn22-Jul-01 17:26
sitebuilderMichael Dunn22-Jul-01 17:26 
If a function takes a CString, a call to the copy constructor is made since the function gets its own copy of the parameter. Passing a CString* or CString& avoids this.
The CString copy constructor is quick (it just increases the string's reference count) but that's not always the case with all classes. If the function is going to just read the string, make the parameter a const CString&, which is best semantically and speed-wise.

--Mike--
http://home.inreach.com/mdunn/
"Make sure that if you are using a blow torch that you don't set anything on fire."
  -- Chris Maunder
GeneralOpening up Serial Ports in WinNT Pin
Nik Vogiatzis22-Jul-01 17:01
Nik Vogiatzis22-Jul-01 17:01 
GeneralRe: Opening up Serial Ports in WinNT Pin
Joaquín M López Muñoz22-Jul-01 20:20
Joaquín M López Muñoz22-Jul-01 20:20 
GeneralNo Untitled in Title bar. Pin
Steve Klinger22-Jul-01 13:38
Steve Klinger22-Jul-01 13:38 
GeneralRe: No Untitled in Title bar. Pin
Hrishi23-Jul-01 11:20
Hrishi23-Jul-01 11:20 
QuestionCListCtrl? Pin
22-Jul-01 13:02
suss22-Jul-01 13:02 
AnswerRe: CListCtrl? Pin
Reid22-Jul-01 18:56
Reid22-Jul-01 18:56 
GeneralRe: CListCtrl? Pin
Matt Newman23-Jul-01 5:00
Matt Newman23-Jul-01 5:00 
GeneralRe: CListCtrl? Pin
23-Jul-01 5:49
suss23-Jul-01 5:49 
AnswerRe: CListCtrl? Pin
Ben Burnett22-Jul-01 19:54
Ben Burnett22-Jul-01 19:54 
GeneralCreating A Bitmap Pin
AJ12322-Jul-01 12:35
AJ12322-Jul-01 12:35 
GeneralRe: Creating A Bitmap Pin
Christian Graus22-Jul-01 14:11
protectorChristian Graus22-Jul-01 14:11 
QuestionNewbie Q: Update statusbar from view? Pin
22-Jul-01 12:00
suss22-Jul-01 12:00 
AnswerRe: Newbie Q: Update statusbar from view? Pin
Michael Dunn22-Jul-01 12:24
sitebuilderMichael Dunn22-Jul-01 12:24 
Generaldocking dialogbars Pin
Peter Marino22-Jul-01 9:49
Peter Marino22-Jul-01 9:49 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 20:37
Diarrhio22-Jul-01 20:37 
GeneralRe: docking dialogbars Pin
Peter Marino22-Jul-01 21:40
Peter Marino22-Jul-01 21:40 
GeneralRe: docking dialogbars Pin
Diarrhio22-Jul-01 22:31
Diarrhio22-Jul-01 22:31 

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.