Click here to Skip to main content
15,887,683 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about exception specification Pin
Hamid_RT27-Jan-08 21:08
Hamid_RT27-Jan-08 21:08 
GeneralRe: about exception specification Pin
George_George27-Jan-08 21:12
George_George27-Jan-08 21:12 
GeneralRe: about exception specification Pin
Hamid_RT28-Jan-08 2:00
Hamid_RT28-Jan-08 2:00 
GeneralRe: about exception specification Pin
George_George28-Jan-08 13:39
George_George28-Jan-08 13:39 
Generalbad_alloc in new Pin
George_George26-Jan-08 22:12
George_George26-Jan-08 22:12 
GeneralRe: bad_alloc in new Pin
Hamid_RT27-Jan-08 20:37
Hamid_RT27-Jan-08 20:37 
GeneralRe: bad_alloc in new Pin
George_George27-Jan-08 20:47
George_George27-Jan-08 20:47 
QuestionHow do you put a "FLOAT" number into a dialog's editbox? Pin
Larry Mills Sr26-Jan-08 11:32
Larry Mills Sr26-Jan-08 11:32 
I have a float number in a varable (Ex: float m_fNumber;) that is assigned a number(ie, m_fNumber = 12.32;). How can I use SetDlgItem????(ID_FNUM,???); into the editbox?

the following error is received by using CString: ie, : str.Format("%f",m_fNumber);
error C2664: 'void ATL::CStringT<BaseType,StringTraits>::Format(const wchar_t *,...)' : cannot convert parameter 1 from 'const char [3]' to 'const wchar_t *'

I thought I could format the CString and then use SetDlgItemTextW(...,....) to put it in the editbox.

Does anyone know a solution? HELP

A C++ programming language novice, but striving to learn
AnswerRe: How do you put a "FLOAT" number into a dialog's editbox? Pin
PJ Arends26-Jan-08 20:12
professionalPJ Arends26-Jan-08 20:12 
GeneralRe: How do you put a "FLOAT" number into a dialog's editbox? Pin
Larry Mills Sr30-Jan-08 8:18
Larry Mills Sr30-Jan-08 8:18 
AnswerRe: How do you put a "FLOAT" number into a dialog's editbox? Pin
Hamid_RT27-Jan-08 20:35
Hamid_RT27-Jan-08 20:35 
GeneralOpenUrl() with PostData Question Pin
Lucky the code machine26-Jan-08 9:13
Lucky the code machine26-Jan-08 9:13 
GeneralAdding items to a list box in a dialog. [modified] Pin
Ben Aldhouse26-Jan-08 4:30
Ben Aldhouse26-Jan-08 4:30 
QuestionRe: Adding items to a list box in a dialog. Pin
CPallini26-Jan-08 5:00
mveCPallini26-Jan-08 5:00 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 5:55
Ben Aldhouse26-Jan-08 5:55 
GeneralRe: Adding items to a list box in a dialog. Pin
CPallini26-Jan-08 6:14
mveCPallini26-Jan-08 6:14 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 6:15
Ben Aldhouse26-Jan-08 6:15 
GeneralRe: Adding items to a list box in a dialog. Pin
Ben Aldhouse26-Jan-08 6:14
Ben Aldhouse26-Jan-08 6:14 
GeneralHooking Pin
dellthinker26-Jan-08 0:33
dellthinker26-Jan-08 0:33 
GeneralRe: Hooking Pin
CPallini26-Jan-08 2:07
mveCPallini26-Jan-08 2:07 
GeneralRe: Hooking Pin
Nitheesh George27-Jan-08 19:14
Nitheesh George27-Jan-08 19:14 
GeneralRe: Hooking Pin
CPallini27-Jan-08 22:22
mveCPallini27-Jan-08 22:22 
GeneralRe: Hooking Pin
Nitheesh George28-Jan-08 16:21
Nitheesh George28-Jan-08 16:21 
Questionhow to assign an array value to another Pin
gentleguy25-Jan-08 22:55
gentleguy25-Jan-08 22:55 
AnswerRe: how to assign an array value to another [modified] Pin
CPallini25-Jan-08 23:30
mveCPallini25-Jan-08 23:30 

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.