Click here to Skip to main content
16,020,305 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: STL:: MAP Data Structure Used Pin
theCPkid1-Oct-09 16:55
theCPkid1-Oct-09 16:55 
AnswerRe: STL:: MAP Data Structure Used Pin
TimothyPMoore1-Oct-09 17:18
TimothyPMoore1-Oct-09 17:18 
AnswerRe: STL:: MAP Data Structure Used Pin
Stuart Dootson1-Oct-09 22:25
professionalStuart Dootson1-Oct-09 22:25 
AnswerRe: STL:: MAP Data Structure Used Pin
Stephen Hewitt2-Oct-09 2:42
Stephen Hewitt2-Oct-09 2:42 
QuestionFull Screen videa and Splash Screen confliction Pin
ScotDolan1-Oct-09 10:17
ScotDolan1-Oct-09 10:17 
AnswerRe: Full Screen videa and Splash Screen confliction Pin
theCPkid1-Oct-09 17:05
theCPkid1-Oct-09 17:05 
GeneralRe: Full Screen videa and Splash Screen confliction Pin
ScotDolan2-Oct-09 9:58
ScotDolan2-Oct-09 9:58 
Questionvc++ list problem Pin
Nikz21-Oct-09 6:51
Nikz21-Oct-09 6:51 
Hi. Well. I have a little problem, but i don't understand a thing. I'am trying to use some list in my class TLevel, but it always results in error (violation of memory). It's really simple.

I create my struct:
struct MyList
{
	int numb;
	MyList *Next;
	MyList *Prev;
};

And include it in my class:
class TLevel
{
public:
bool LoadList(CString str);
MyList *Fieldlist;
bla-bla-bla
};

But as soon as i get into LoadList...
bool TLevel::LoadList(CString str)
{
	MyList *HeadList;
	HeadList = new MyList;
	HeadList->Next=NULL;
	HeadList->Prev=NULL;
	this->Fieldlist=HeadList; // an error appears. WHY HE CAN'T COPY A POINTER?!?!?!?!?!?
bla-bla-bla
}

AnswerRe: vc++ list problem Pin
CPallini1-Oct-09 7:10
mveCPallini1-Oct-09 7:10 
GeneralRe: vc++ list problem Pin
jeron11-Oct-09 7:17
jeron11-Oct-09 7:17 
GeneralRe: vc++ list problem Pin
Nikz21-Oct-09 7:20
Nikz21-Oct-09 7:20 
AnswerRe: vc++ list problem Pin
Richard MacCutchan1-Oct-09 7:27
mveRichard MacCutchan1-Oct-09 7:27 
GeneralRe: vc++ list problem Pin
Nikz21-Oct-09 7:29
Nikz21-Oct-09 7:29 
GeneralRe: vc++ list problem Pin
Nikz21-Oct-09 7:41
Nikz21-Oct-09 7:41 
AnswerRe: vc++ list problem Pin
Stuart Dootson1-Oct-09 22:32
professionalStuart Dootson1-Oct-09 22:32 
GeneralRe: vc++ list problem Pin
Nikz22-Oct-09 4:40
Nikz22-Oct-09 4:40 
QuestionLogin crashes when i enter a wrong password [modified] Pin
Vetukuri Raju1-Oct-09 5:50
Vetukuri Raju1-Oct-09 5:50 
QuestionRe: Login crashes when i enter a wrong password Pin
David Crow1-Oct-09 7:21
David Crow1-Oct-09 7:21 
QuestionRe: Login crashes when i enter a wrong password Pin
Maximilien1-Oct-09 7:54
Maximilien1-Oct-09 7:54 
QuestionHow to build visual c++ code Pin
raja 41-Oct-09 4:35
raja 41-Oct-09 4:35 
QuestionRe: How to build visual c++ code Pin
David Crow1-Oct-09 4:40
David Crow1-Oct-09 4:40 
AnswerRe: How to build visual c++ code Pin
Vetukuri Raju1-Oct-09 6:00
Vetukuri Raju1-Oct-09 6:00 
QuestionCapturing printed data Pin
ibnhatab1-Oct-09 3:50
ibnhatab1-Oct-09 3:50 
AnswerRe: Capturing printed data Pin
Richard MacCutchan1-Oct-09 5:50
mveRichard MacCutchan1-Oct-09 5:50 
GeneralRe: Capturing printed data Pin
ibnhatab1-Oct-09 6:20
ibnhatab1-Oct-09 6:20 

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.