Click here to Skip to main content
16,011,804 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ Refcounting design Pin
Jim Crafton21-Jun-01 6:40
Jim Crafton21-Jun-01 6:40 
GeneralRe: C++ Refcounting design Pin
Tomasz Sowinski21-Jun-01 7:05
Tomasz Sowinski21-Jun-01 7:05 
GeneralRe: C++ Refcounting design Pin
Jim Crafton21-Jun-01 7:32
Jim Crafton21-Jun-01 7:32 
GeneralRe: C++ Refcounting design Pin
20-Jun-01 15:33
suss20-Jun-01 15:33 
GeneralRe: C++ Refcounting design Pin
Jim Crafton20-Jun-01 16:49
Jim Crafton20-Jun-01 16:49 
GeneralRe: C++ Refcounting design Pin
Jonathan Gilligan21-Jun-01 8:43
Jonathan Gilligan21-Jun-01 8:43 
GeneralRe: C++ Refcounting design Pin
Gerald Schwab21-Jun-01 15:31
Gerald Schwab21-Jun-01 15:31 
GeneralI have alittle problem(so I hope) in my code . Please try help me !!!!! Pin
20-Jun-01 9:05
suss20-Jun-01 9:05 
I need to read from the file a list of persons(person it is a struct that I defined)in unknown size , but I success to read only the first person.
then my loop being infinite.Why ??? What can I do ??? Confused | :confused:

_______MY CODE___________________________________________

void CRegWinDlg::read_persons(CFile* persons)
{
person* q = new person;
if file.Read(q, sizeof(person)))
{
q->next = q->back = NULL;
p_head = p_tail = q;
}
else
{
MessageBox("Have not register of users ! ");
delete q;
return;
}


//---------------------------------- Until here it is working excellent !!!

file.Seek(sizeof(person), CFile::current);
while(file.GetPosition() != CFile::end )
{
p_person q = new person;
if(file.Read(q, sizeof(person)))
{
q->next = NULL;
q->back = p_tail;
p_tail->next = q;
p_tail = q;
}
else
delete q;
file.Seek(sizeof(person), CFile::current);
}

}Frown | :(
GeneralWhy no one answer me ??? Please !!! it is urgent !!! Pin
20-Jun-01 9:49
suss20-Jun-01 9:49 
GeneralRe: Why no one answer me ??? Please !!! it is urgent !!! Pin
20-Jun-01 10:06
suss20-Jun-01 10:06 
GeneralRe: I have alittle problem(so I hope) in my code . Please try help me !!!!! Pin
Ben Burnett20-Jun-01 10:08
Ben Burnett20-Jun-01 10:08 
GeneralForm Resizing in SDI app. Pin
Fady Elias20-Jun-01 7:53
Fady Elias20-Jun-01 7:53 
QuestionMultiple application icons? Pin
Chris Losinger20-Jun-01 7:39
professionalChris Losinger20-Jun-01 7:39 
AnswerRe: Multiple application icons? Pin
Tomasz Sowinski20-Jun-01 8:56
Tomasz Sowinski20-Jun-01 8:56 
Questionin- or out-of-process ? Pin
20-Jun-01 6:17
suss20-Jun-01 6:17 
AnswerRe: in- or out-of-process ? Pin
20-Jun-01 15:38
suss20-Jun-01 15:38 
QuestionWriteFile problem??? Pin
20-Jun-01 5:41
suss20-Jun-01 5:41 
GeneralMultiLine and Owner Drawn Control Pin
20-Jun-01 4:14
suss20-Jun-01 4:14 
GeneralCommand Line problems Pin
20-Jun-01 4:09
suss20-Jun-01 4:09 
GeneralRe: Command Line problems Pin
Chris Losinger20-Jun-01 4:38
professionalChris Losinger20-Jun-01 4:38 
GeneralRe: Command Line problems Pin
Carlos Antollini20-Jun-01 4:48
Carlos Antollini20-Jun-01 4:48 
GeneralRe: Command Line problems Pin
20-Jun-01 5:04
suss20-Jun-01 5:04 
GeneralRe: Command Line problems Pin
Chris Losinger20-Jun-01 5:10
professionalChris Losinger20-Jun-01 5:10 
GeneralRe: Command Line problems Pin
20-Jun-01 5:24
suss20-Jun-01 5:24 
GeneralRe: Command Line problems Pin
Chris Losinger20-Jun-01 7:38
professionalChris Losinger20-Jun-01 7: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.