Click here to Skip to main content
15,890,512 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: how to split a dialog box? Pin
Perspx25-Jun-07 19:57
Perspx25-Jun-07 19:57 
AnswerRe: how to split a dialog box? Pin
Hamid_RT25-Jun-07 22:36
Hamid_RT25-Jun-07 22:36 
QuestionDeclare string array in heap Pin
Aqueel25-Jun-07 18:05
Aqueel25-Jun-07 18:05 
AnswerRe: Declare string array in heap Pin
John R. Shaw25-Jun-07 20:27
John R. Shaw25-Jun-07 20:27 
AnswerRe: Declare string array in heap Pin
CPallini25-Jun-07 20:56
mveCPallini25-Jun-07 20:56 
QuestionWhat an I doing wrong with swprintf() Pin
frqftgbdafr25-Jun-07 17:23
frqftgbdafr25-Jun-07 17:23 
AnswerRe: What an I doing wrong with swprintf() Pin
Michael Dunn25-Jun-07 17:33
sitebuilderMichael Dunn25-Jun-07 17:33 
AnswerRe: What an I doing wrong with swprintf() Pin
Nibu babu thomas25-Jun-07 18:02
Nibu babu thomas25-Jun-07 18:02 
frqftgbdafr wrote:
double x;
TCHAR TcharTestString[50];
GetDlgItemText(hDlg,IDC_STATIC_A, &TcharTestString, 8 );
x = wcstod(&TcharTestString, &stopstring);
printf("strtod = %f\n", x ); //everything okay so far
swprintf(&TcharTestString, "%f", x); // just won't work


Just a suggestion. Smile | :)

When using TCHAR always use functions defined for TCHAR's.
For eg: _tcstod for wcstod, _stprintf for swprintf, _tprintf for printf etc.

Or if you are sure that you want a wide char type then instead of TCHAR directly use wchar_t.

Once again, use TCHAR with functions defined for TCHAR's.


Nibu thomas
A Developer

Code must be written to be read, not by the compiler, but by another human being.

http:\\nibuthomas.wordpress.com

QuestionVirtual List View Pin
GameProfessor25-Jun-07 16:38
GameProfessor25-Jun-07 16:38 
AnswerRe: Virtual List View Pin
Mark Salsbery25-Jun-07 17:10
Mark Salsbery25-Jun-07 17:10 
GeneralRe: Virtual List View Pin
GameProfessor25-Jun-07 17:27
GameProfessor25-Jun-07 17:27 
GeneralRe: Virtual List View Pin
Mark Salsbery25-Jun-07 17:37
Mark Salsbery25-Jun-07 17:37 
GeneralRe: Virtual List View Pin
GameProfessor25-Jun-07 19:57
GameProfessor25-Jun-07 19:57 
QuestionHandling close button of Dialog based application Pin
rp_suman25-Jun-07 16:11
rp_suman25-Jun-07 16:11 
AnswerRe: Handling close button of Dialog based application Pin
Mark Salsbery25-Jun-07 16:28
Mark Salsbery25-Jun-07 16:28 
GeneralRe: Handling close button of Dialog based application Pin
rp_suman25-Jun-07 16:44
rp_suman25-Jun-07 16:44 
QuestionTemporary Internet Files Pin
locoone25-Jun-07 12:00
locoone25-Jun-07 12:00 
AnswerRe: Temporary Internet Files Pin
Hamid_RT25-Jun-07 22:43
Hamid_RT25-Jun-07 22:43 
QuestionSerialized MFC classes Pin
tom groezer25-Jun-07 10:22
tom groezer25-Jun-07 10:22 
AnswerRe: Serialized MFC classes Pin
Mark Salsbery25-Jun-07 13:58
Mark Salsbery25-Jun-07 13:58 
QuestionPS/2 Mouse Access Pin
Akin Ocal25-Jun-07 10:17
Akin Ocal25-Jun-07 10:17 
AnswerRe: PS/2 Mouse Access Pin
jk chan25-Jun-07 14:24
jk chan25-Jun-07 14:24 
AnswerRe: PS/2 Mouse Access Pin
Iain Clarke, Warrior Programmer26-Jun-07 1:44
Iain Clarke, Warrior Programmer26-Jun-07 1:44 
QuestionWindows Registry Pin
Akin Ocal25-Jun-07 10:17
Akin Ocal25-Jun-07 10:17 
AnswerRe: Windows Registry Pin
Perspx25-Jun-07 11:11
Perspx25-Jun-07 11:11 

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.