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.
I am extremly new to vc++ 6.0 programming and i need to create a drag drop control that would draw an image or say a shape into my window.Can you people please tell me how should i start and where to start from.Name of class or may be library should help.
Please read the posting guidelines[^]. For instance, format your code properly using the code tag (otherwise, it is not readable).
Furthermore, you didn't ask any question and you didn't provide any description of the problem you encounter.
good idea, but the problem is a time-critical affair. This means as soon as i have for example a built-in debug message after CFile:Rename and CFile:Open, the problem disappears. So i can not look which process has the file between CFile:Rename and CFile:Open.
My problrem is,When i set Common Language Runtime Support (/clr) option in CLR support,
the pConInitData shows some garbage value.
If i set No Common Language Runtime support,then pConInitData returns correct value.
Whats the problem in setting /clr option.
Actually i convert VC6 to VS2008.Actually i want to set that /clr option,because im using some WPF controls in my applcaiton.
Pls help me
It looks like you are returning a pointer to an area of memory that is part of a stack variable. Thus, when SendInitialPoints() returns CON is eligible for garbage collection and may disappear. You should allocate your buffer using new to ensure it does not disappear before you have finished with it.