Click here to Skip to main content
15,913,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: What is the error in this code fragment Pin
Hamed Musavi25-Jun-07 21:33
Hamed Musavi25-Jun-07 21:33 
AnswerRe: What is the error in this code fragment Pin
Hamid_RT25-Jun-07 22:28
Hamid_RT25-Jun-07 22:28 
AnswerRe: What is the error in this code fragment Pin
Mark Salsbery26-Jun-07 7:08
Mark Salsbery26-Jun-07 7:08 
QuestionTab Order Pin
_anil_25-Jun-07 20:37
_anil_25-Jun-07 20:37 
AnswerRe: Tab Order Pin
Hamed Musavi25-Jun-07 21:54
Hamed Musavi25-Jun-07 21:54 
GeneralRe: Tab Order Pin
Hamid_RT25-Jun-07 22:32
Hamid_RT25-Jun-07 22:32 
GeneralRe: Tab Order Pin
Hamed Musavi25-Jun-07 22:41
Hamed Musavi25-Jun-07 22:41 
AnswerRe: Tab Order Pin
Hamid_RT25-Jun-07 22:21
Hamid_RT25-Jun-07 22:21 
GeneralRe: Tab Order Pin
_anil_25-Jun-07 23:19
_anil_25-Jun-07 23:19 
QuestionResizing list control with splitter and window Pin
neha.agarwal2725-Jun-07 20:20
neha.agarwal2725-Jun-07 20:20 
AnswerRe: Resizing list control with splitter and window Pin
_anil_25-Jun-07 20:42
_anil_25-Jun-07 20:42 
GeneralRe: Resizing list control with splitter and window Pin
neha.agarwal2725-Jun-07 21:08
neha.agarwal2725-Jun-07 21:08 
QuestionRe: Resizing list control with splitter and window Pin
Rajkumar R25-Jun-07 21:29
Rajkumar R25-Jun-07 21:29 
GeneralRe: Resizing list control with splitter and window Pin
_anil_25-Jun-07 21:56
_anil_25-Jun-07 21:56 
Questionhow to split a dialog box? Pin
vikramkarthik25-Jun-07 18:52
vikramkarthik25-Jun-07 18:52 
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 

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.