Click here to Skip to main content
15,888,095 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: DCOM configuration Pin
Matthew Faithfull14-Feb-08 2:57
Matthew Faithfull14-Feb-08 2:57 
GeneralRe: DCOM configuration Pin
George_George14-Feb-08 3:04
George_George14-Feb-08 3:04 
GeneralRe: DCOM configuration Pin
Matthew Faithfull14-Feb-08 3:10
Matthew Faithfull14-Feb-08 3:10 
GeneralRe: DCOM configuration Pin
George_George14-Feb-08 3:36
George_George14-Feb-08 3:36 
GeneralLogonUser Failing Pin
Leoinlove14-Feb-08 1:36
Leoinlove14-Feb-08 1:36 
QuestionRe: LogonUser Failing Pin
David Crow14-Feb-08 9:57
David Crow14-Feb-08 9:57 
GeneralRe: LogonUser Failing Pin
Leoinlove14-Feb-08 18:58
Leoinlove14-Feb-08 18:58 
Generalscanf to scanf_s Pin
Russell'13-Feb-08 23:49
Russell'13-Feb-08 23:49 
I upgrated VS2003 to VS2005 this week, then I found that functions like sscanf was changed to sscanf_s, so I updated my project sobstituting it everywhere .
now:
VS2003 (it was warking perfectly)
CString str=...;<br />
double d1, d2;<br />
scanf(str, "%lf%lf", %d1,%d2);

VS2005
scanf_s(str, "%lf%lf", %d1,%d2);
No, because the compiler tells that it cant convert CString to char*, then
scanf_s((char*) str.GetBuffer(), "%lf%lf", %d1,%d2);
The compiler is ok, but it seemes that only the first char of str is analysed !?!
(i.e. if str="23.43" then d1 will be =2 and not =23.43)

Am I wronging something?
Is there a different way to avoid the compiler error (something different and more sure from (char*) str.GetBuffer())

thank you Smile | :)


Russell

GeneralRe: scanf to scanf_s Pin
Cedric Moonen14-Feb-08 0:05
Cedric Moonen14-Feb-08 0:05 
GeneralRe: scanf to scanf_s Pin
Russell'14-Feb-08 1:33
Russell'14-Feb-08 1:33 
GeneralRe: scanf to scanf_s Pin
Cedric Moonen14-Feb-08 1:45
Cedric Moonen14-Feb-08 1:45 
GeneralRe: scanf to scanf_s Pin
Russell'14-Feb-08 2:00
Russell'14-Feb-08 2:00 
QuestionHow to comper 2 CListCtrl table with minimal complexity ? Pin
Yanshof13-Feb-08 23:12
Yanshof13-Feb-08 23:12 
QuestionListView with LargeIcon items of different sizes. Pin
Chesnokov Yuriy13-Feb-08 22:45
professionalChesnokov Yuriy13-Feb-08 22:45 
GeneralRe: ListView with LargeIcon items of different sizes. Pin
zengkun10014-Feb-08 14:35
zengkun10014-Feb-08 14:35 
GeneralProxy/Stub issue Pin
George_George13-Feb-08 21:44
George_George13-Feb-08 21:44 
QuestionMouse Event in Activex Control Pin
manish.patel13-Feb-08 20:56
manish.patel13-Feb-08 20:56 
GeneralRe: Mouse Event in Activex Control Pin
ShilpiP13-Feb-08 22:42
ShilpiP13-Feb-08 22:42 
GeneralRe: Mouse Event in Activex Control Pin
manish.patel13-Feb-08 22:46
manish.patel13-Feb-08 22:46 
GeneralTons of CDialog issue Pin
Llasus13-Feb-08 20:52
Llasus13-Feb-08 20:52 
GeneralRe: Tons of CDialog issue Pin
Rajesh R Subramanian13-Feb-08 21:29
professionalRajesh R Subramanian13-Feb-08 21:29 
GeneralRe: Tons of CDialog issue Pin
Llasus13-Feb-08 23:15
Llasus13-Feb-08 23:15 
GeneralRe: Tons of CDialog issue Pin
Rajesh R Subramanian14-Feb-08 0:02
professionalRajesh R Subramanian14-Feb-08 0:02 
GeneralRe: Tons of CDialog issue Pin
Llasus14-Feb-08 3:43
Llasus14-Feb-08 3:43 
QuestionHow to add Items to a Microsoft 2.0 Combobox control Pin
msr_codeproject13-Feb-08 20:38
msr_codeproject13-Feb-08 20:38 

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.