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

C / C++ / MFC

 
QuestionsetWindowLong for more than One window Pin
002comp17-Apr-11 20:19
002comp17-Apr-11 20:19 
AnswerRe: setWindowLong for more than One window Pin
Richard MacCutchan17-Apr-11 22:05
mveRichard MacCutchan17-Apr-11 22:05 
GeneralRe: setWindowLong for more than One window Pin
002comp17-Apr-11 22:31
002comp17-Apr-11 22:31 
GeneralRe: setWindowLong for more than One window Pin
Richard MacCutchan17-Apr-11 23:00
mveRichard MacCutchan17-Apr-11 23:00 
QuestionHow to get String from ".txt" file and transfer to float Pin
camuoi28817-Apr-11 17:04
camuoi28817-Apr-11 17:04 
AnswerRe: How to get String from ".txt" file and transfer to float Pin
«_Superman_»17-Apr-11 18:50
professional«_Superman_»17-Apr-11 18:50 
GeneralRe: How to get String from ".txt" file and transfer to float Pin
camuoi28817-Apr-11 20:00
camuoi28817-Apr-11 20:00 
GeneralRe: How to get String from ".txt" file and transfer to float Pin
Richard MacCutchan17-Apr-11 22:02
mveRichard MacCutchan17-Apr-11 22:02 
camuoi288 wrote:
sscanf(cx[i],"&c",&kytux);

Your format constant is incorrect (should be "%c"), and you are trying to store the response into an uninitialised (and wrong type of) variable. If cx[i] already contains a single character then why are you using sscanf()?

Also please use <pre></pre> tags around your code (and indentation) to make it readable, like this:
for (i=1; i > count_line; i++)
{
    int c;
    char *kytux,*kytuy;
    c=tamthoi.Find(" ",21*(i-1)+9);
    cx[i]=tamthoi.Mid(c+1,9);
    cy[i]=tamthoi.Mid(c+6,9);
    sscanf(cx[i],"&c",&kytux);
    sscanf(cx[i],"&c",&kytuy);
    x[i]=atof(kytux);
    y[i]=atof(kytuy);

d@nish[^] has the answer.

GeneralRe: How to get String from ".txt" file and transfer to float Pin
David Crow18-Apr-11 3:09
David Crow18-Apr-11 3:09 
QuestionPrint with a PDF printer Pin
Gagnon Claude17-Apr-11 7:01
Gagnon Claude17-Apr-11 7:01 
QuestionProxy Type - by code Pin
Ram Shmider16-Apr-11 21:54
Ram Shmider16-Apr-11 21:54 
QuestionCombining if statements Pin
Cyclone_S16-Apr-11 9:16
Cyclone_S16-Apr-11 9:16 
AnswerRe: Combining if statements Pin
Albert Holguin16-Apr-11 17:30
professionalAlbert Holguin16-Apr-11 17:30 
GeneralRe: Combining if statements Pin
Cyclone_S20-Apr-11 9:14
Cyclone_S20-Apr-11 9:14 
QuestionError : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
Le@rner15-Apr-11 19:48
Le@rner15-Apr-11 19:48 
AnswerRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
Hans Dietrich15-Apr-11 20:05
mentorHans Dietrich15-Apr-11 20:05 
GeneralRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
Le@rner15-Apr-11 20:35
Le@rner15-Apr-11 20:35 
AnswerRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
Hans Dietrich15-Apr-11 20:52
mentorHans Dietrich15-Apr-11 20:52 
AnswerRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
«_Superman_»15-Apr-11 21:09
professional«_Superman_»15-Apr-11 21:09 
GeneralRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
Le@rner15-Apr-11 21:37
Le@rner15-Apr-11 21:37 
GeneralRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
«_Superman_»15-Apr-11 21:46
professional«_Superman_»15-Apr-11 21:46 
AnswerRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
David Crow16-Apr-11 3:59
David Crow16-Apr-11 3:59 
AnswerRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
linc_lee16-Apr-11 4:15
linc_lee16-Apr-11 4:15 
GeneralRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
David Crow16-Apr-11 10:32
David Crow16-Apr-11 10:32 
AnswerRe: Error : 'strcpy_s' : none of the 2 overloads could convert all the argument types. Pin
refla17-Apr-11 1:41
refla17-Apr-11 1:41 

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.