Click here to Skip to main content
15,907,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListView Not cooperating... Pin
Matt Gullett27-Jul-01 6:20
Matt Gullett27-Jul-01 6:20 
GeneralRe: CListView Not cooperating... Pin
Diarrhio28-Jul-01 3:21
Diarrhio28-Jul-01 3:21 
GeneralCross Class Functions Pin
Matt Newman27-Jul-01 5:50
Matt Newman27-Jul-01 5:50 
GeneralRe: Cross Class Functions Pin
Chris Losinger27-Jul-01 5:53
professionalChris Losinger27-Jul-01 5:53 
GeneralRe: Cross Class Functions Pin
Matt Newman27-Jul-01 6:04
Matt Newman27-Jul-01 6:04 
GeneralRe: Cross Class Functions Pin
Chris Losinger27-Jul-01 7:05
professionalChris Losinger27-Jul-01 7:05 
GeneralRe: Cross Class Functions Pin
Matt Newman27-Jul-01 8:23
Matt Newman27-Jul-01 8:23 
GeneralPLEASE HELP !!!! URGENT !!!!!!!!!! save struct in file Pin
27-Jul-01 5:09
suss27-Jul-01 5:09 
Cry | :(( Cry | :(( Cry | :(( Cry | :(( Cry | :((
This code doing problems in run time, When it read from the file this gets incorrect values in the parameters of the struct. Please ! try find the problem !!!!!!!
class CPerson {
CPerson();

public:
virtual ~CPerson();

public:
dPerson per;
CPerson* pNext;
CPerson* pBack;
};
-------------------------------------------------------------
________________________________________________________________
//cpp file:
-----------------

void CDemo::OnButtonAdd()
{
CFile file;
// CFileException ex;

if(file.Open(strPath, file.modeWrite |file.modeNoTruncate|file.modeCreate ))
{
file.SeekToEnd();
file.Write( &(person.per) , sizeof(dPerson));
MessageBox("************ S A V E D ************** ");
}
}

/************************************************************/
// Read the one first CPerson from the file:
void CDemo::read_person(CFile* persons)
{
CPerson* q = new CPerson;

DWORD dwRead = sizeof(dPerson);

if((*persons).Read(&q->per, sizeof(dPerson)))
{
q->pNext = q->pBack = NULL;
p_head = p_tail = q; //p_head and p_tail are member variables of CDemo - type CPerson*
}
else delete q;
}

/************************************************************/
Cry | :(( Cry | :(( Cry | :(( Cry | :(( Cry | :((
GeneralRe: PLEASE HELP !!!! URGENT !!!!!!!!!! save struct in file Pin
Joaquín M López Muñoz27-Jul-01 5:37
Joaquín M López Muñoz27-Jul-01 5:37 
Questionproblem with SetActiveView( , ),,?????? Pin
mr200327-Jul-01 4:40
mr200327-Jul-01 4:40 
AnswerRe: problem with SetActiveView( , ),,?????? Pin
Tomasz Sowinski27-Jul-01 4:50
Tomasz Sowinski27-Jul-01 4:50 
GeneralRe: problem with SetActiveView( , ),,?????? Pin
mr200327-Jul-01 6:06
mr200327-Jul-01 6:06 
GeneralRe: problem with SetActiveView( , ),,?????? Pin
Matt Gullett27-Jul-01 6:14
Matt Gullett27-Jul-01 6:14 
GeneralRe: problem with SetActiveView( , ),,?????? Pin
mr200327-Jul-01 8:34
mr200327-Jul-01 8:34 
GeneralAdding A Interface Pin
AJ12327-Jul-01 4:37
AJ12327-Jul-01 4:37 
GeneralRe: Adding A Interface Pin
Not Active27-Jul-01 8:18
mentorNot Active27-Jul-01 8:18 
GeneralVC Pre-Build Commands Pin
Steve Thresher27-Jul-01 4:10
Steve Thresher27-Jul-01 4:10 
GeneralSystem DSNs Pin
27-Jul-01 4:07
suss27-Jul-01 4:07 
GeneralRe: System DSNs Pin
Not Active27-Jul-01 8:23
mentorNot Active27-Jul-01 8:23 
GeneralBackground color of CListCtrl Pin
skfnmuislædmufaæoi27-Jul-01 4:03
skfnmuislædmufaæoi27-Jul-01 4:03 
GeneralRe: Background color of CListCtrl Pin
Tomasz Sowinski27-Jul-01 4:39
Tomasz Sowinski27-Jul-01 4:39 
GeneralRe: Background color of CListCtrl Pin
skfnmuislædmufaæoi29-Jul-01 2:38
skfnmuislædmufaæoi29-Jul-01 2:38 
GeneralRe: Background color of CListCtrl Pin
Tomasz Sowinski29-Jul-01 23:12
Tomasz Sowinski29-Jul-01 23:12 
QuestionHow to gradation with RGBcolor? Pin
jin sok cho27-Jul-01 4:01
jin sok cho27-Jul-01 4:01 
AnswerRe: How to gradation with RGBcolor? Pin
mr200327-Jul-01 4:46
mr200327-Jul-01 4:46 

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.