Click here to Skip to main content
15,893,190 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Implementing a Timer Pin
murali197313-Apr-06 6:06
murali197313-Apr-06 6:06 
QuestionCopy window contents to repaint Pin
chasetoys12-Apr-06 14:02
chasetoys12-Apr-06 14:02 
QuestionFtprenamefile error 12003!!! Pin
Ting Li Che12-Apr-06 13:51
Ting Li Che12-Apr-06 13:51 
AnswerRe: Ftprenamefile error 12003!!! Pin
Michael Dunn12-Apr-06 15:20
sitebuilderMichael Dunn12-Apr-06 15:20 
QuestionC++ Mouse Event Listener Pin
jonesap512-Apr-06 12:43
jonesap512-Apr-06 12:43 
AnswerRe: C++ Mouse Event Listener Pin
bob1697212-Apr-06 14:22
bob1697212-Apr-06 14:22 
QuestionHow to convert CString to char Pin
masnu12-Apr-06 11:53
masnu12-Apr-06 11:53 
AnswerRe: How to convert CString to char Pin
James R. Twine12-Apr-06 14:43
James R. Twine12-Apr-06 14:43 
   If all you need to do is copy the data from the CString and write it to a file, you do not need to copy the contents of the string to a non-const buffer.  CString objects have a LPCTSTR operator, which means that you can use it in place of a const TCHAR *.

   Since the CString class is TCHAR-based, it supports Unicode.  You can convert the string to ANSI for writing it to a file using the ATL Conversion Macros (T2CA) if the data is not too large, or calling WideCharToMultiByte(...) yourself with your own buffer(s).

   Also, if you get into the habit of using the TCHAR-based string functions, you life may get easier (i.e. using _tcscpy(...) instead of strcpy(...)).

   Look up how to create (and optionally embed) a common control manifest file; that should help you with getting the XP-style controls back into the application when running it in ANSI mode.

-=- James
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!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
AnswerRe: How to convert CString to char Pin
Hamid_RT12-Apr-06 20:44
Hamid_RT12-Apr-06 20:44 
Questionplotting in Visual Studio C++ Pin
ilda lapi12-Apr-06 11:14
ilda lapi12-Apr-06 11:14 
AnswerRe: plotting in Visual Studio C++ Pin
masnu12-Apr-06 12:06
masnu12-Apr-06 12:06 
AnswerRe: plotting in Visual Studio C++ Pin
El Corazon12-Apr-06 13:28
El Corazon12-Apr-06 13:28 
QuestionDevice drivers: MSVAD sample drivers Pin
imsaady12-Apr-06 10:04
imsaady12-Apr-06 10:04 
QuestionEditing long lines in VC++ 6.0 Pin
Ger Hayden12-Apr-06 9:22
Ger Hayden12-Apr-06 9:22 
AnswerRe: Editing long lines in VC++ 6.0 Pin
David Crow12-Apr-06 9:39
David Crow12-Apr-06 9:39 
GeneralRe: Editing long lines in VC++ 6.0 Pin
Ger Hayden12-Apr-06 9:50
Ger Hayden12-Apr-06 9:50 
QuestionVC++ 6 project works in debug but not release Pin
smikesmith12-Apr-06 8:56
smikesmith12-Apr-06 8:56 
AnswerRe: VC++ 6 project works in debug but not release Pin
prasad_som12-Apr-06 19:21
prasad_som12-Apr-06 19:21 
QuestionPlease Help! What would cause Member Variable problem? Pin
Charlie Curtis12-Apr-06 8:54
Charlie Curtis12-Apr-06 8:54 
QuestionRe: Please Help! What would cause Member Variable problem? Pin
David Crow12-Apr-06 9:10
David Crow12-Apr-06 9:10 
AnswerRe: Please Help! What would cause Member Variable problem? Pin
Charlie Curtis12-Apr-06 9:26
Charlie Curtis12-Apr-06 9:26 
GeneralRe: Please Help! What would cause Member Variable problem? Pin
David Crow12-Apr-06 9:34
David Crow12-Apr-06 9:34 
GeneralRe: Please Help! What would cause Member Variable problem? Pin
Charlie Curtis12-Apr-06 10:10
Charlie Curtis12-Apr-06 10:10 
GeneralRe: Please Help! What would cause Member Variable problem? Pin
David Crow12-Apr-06 10:17
David Crow12-Apr-06 10:17 
QuestionProblem when Change number of arguments of MFC activeX control's exposed method Pin
Michael Tang12-Apr-06 8:48
Michael Tang12-Apr-06 8:48 

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.