Click here to Skip to main content
14,663,259 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: c++ titlebar color change Pin
enhzflep31-Jan-10 17:46
Memberenhzflep31-Jan-10 17:46 
QuestionAPI For ClipBoard Pin
Anil Kumar.Arvapalli31-Jan-10 2:09
MemberAnil Kumar.Arvapalli31-Jan-10 2:09 
AnswerRe: API For ClipBoard Pin
Ed.Poore31-Jan-10 2:24
MemberEd.Poore31-Jan-10 2:24 
AnswerRe: API For ClipBoard Pin
Richard MacCutchan31-Jan-10 2:48
mveRichard MacCutchan31-Jan-10 2:48 
Questionsave file error! Pin
wbgxx31-Jan-10 1:54
Memberwbgxx31-Jan-10 1:54 
AnswerRe: save file error! Pin
Richard MacCutchan31-Jan-10 2:44
mveRichard MacCutchan31-Jan-10 2:44 
GeneralRe: save file error! Pin
wbgxx31-Jan-10 3:41
Memberwbgxx31-Jan-10 3:41 
GeneralRe: save file error! Pin
Richard MacCutchan31-Jan-10 4:05
mveRichard MacCutchan31-Jan-10 4:05 
wbgxx wrote:
I know atol()is libiary but if I use like this it also has a problem,why?


Sentences like this are rising to the top of the list of most useless statements. If your program does not work in some way, saying "it has a problem", gives us no information to guess what may be wrong. Please try and explain what happens; do you get a compiler error, does it cause an exception, does it return the wrong result, etc?

However, having looked at the code again I see:
NewNode->lNum = stuList[i].atol(stuList[i].lNum);

OK, so let's correct it
NewNode->lNum = atol(stuList[i].lNum);

The atol() function takes a string of digits as input and returns its value as a long variable. Your statement is trying to pass a long as its input parameter which a) is wrong, and b) makes no sense; the value is already a long.

The other problem with Createlist() is that it returns the pointer to the last structure in your list rather than the first; you need to keep a copy of the first entry added to the head pointer.

MVP 2010 - are they mad?

GeneralRe: save file error! Pin
wbgxx31-Jan-10 4:28
Memberwbgxx31-Jan-10 4:28 
GeneralRe: save file error! Pin
enhzflep31-Jan-10 4:14
Memberenhzflep31-Jan-10 4:14 
GeneralRe: save file error! Pin
Richard MacCutchan31-Jan-10 6:19
mveRichard MacCutchan31-Jan-10 6:19 
GeneralRe: save file error! Pin
enhzflep31-Jan-10 6:40
Memberenhzflep31-Jan-10 6:40 
GeneralRe: save file error! Pin
Richard MacCutchan31-Jan-10 7:44
mveRichard MacCutchan31-Jan-10 7:44 
Questionuser defined drag drop control in vc++ Pin
Prajakta Apte 31-Jan-10 1:44
MemberPrajakta Apte 31-Jan-10 1:44 
Questionsave file error! Pin
wbgxx31-Jan-10 1:25
Memberwbgxx31-Jan-10 1:25 
AnswerRe: save file error! Pin
Cedric Moonen31-Jan-10 1:43
MemberCedric Moonen31-Jan-10 1:43 
AnswerRe: save file error! Pin
Richard MacCutchan31-Jan-10 2:38
mveRichard MacCutchan31-Jan-10 2:38 
QuestionProblem with CFile:Open and Sharing Violation [modified] Pin
hollesser00130-Jan-10 23:20
Memberhollesser00130-Jan-10 23:20 
AnswerRe: Problem with CFile:Open and Sharing Violation Pin
Garth J Lancaster31-Jan-10 0:09
professionalGarth J Lancaster31-Jan-10 0:09 
QuestionRe: Problem with CFile:Open and Sharing Violation Pin
hollesser00131-Jan-10 3:00
Memberhollesser00131-Jan-10 3:00 
Questiondetect enter key on edit control Pin
Sauce!30-Jan-10 22:14
MemberSauce!30-Jan-10 22:14 
AnswerRe: detect enter key on edit control Pin
Alain Rist30-Jan-10 23:02
MemberAlain Rist30-Jan-10 23:02 
GeneralRe: detect enter key on edit control Pin
Sauce!30-Jan-10 23:21
MemberSauce!30-Jan-10 23:21 
GeneralRe: detect enter key on edit control Pin
Alain Rist30-Jan-10 23:22
MemberAlain Rist30-Jan-10 23:22 
AnswerRe: detect enter key on edit control Pin
Richard MacCutchan31-Jan-10 1:25
mveRichard MacCutchan31-Jan-10 1:25 

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.