Click here to Skip to main content
15,926,035 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: while statement probleam, please help? Pin
11-Sep-01 22:16
suss11-Sep-01 22:16 
GeneralIntresting Question Pin
The_Server11-Sep-01 17:08
The_Server11-Sep-01 17:08 
GeneralRe: Intresting Question Pin
Joaquín M López Muñoz12-Sep-01 0:19
Joaquín M López Muñoz12-Sep-01 0:19 
GeneralWTL CCommandBarCtrl troubles Pin
The Liquid Plumber11-Sep-01 15:37
The Liquid Plumber11-Sep-01 15:37 
GeneralWin32 Console Programming Question Pin
the_grip11-Sep-01 10:30
the_grip11-Sep-01 10:30 
GeneralRe: Win32 Console Programming Question Pin
Joaquín M López Muñoz11-Sep-01 12:09
Joaquín M López Muñoz11-Sep-01 12:09 
GeneralRe: Win32 Console Programming Question Pin
User 988511-Sep-01 12:14
User 988511-Sep-01 12:14 
GeneralSerialize problem Pin
José Luis Sogorb11-Sep-01 9:38
José Luis Sogorb11-Sep-01 9:38 
Hi,
I am trying to make a VERSIONABLE_SCHEMA for future versions of a program, but I allways receive '-1' as version number when I call GetObjectSchema() function this is the probe code: (What could be the problem?)

//METEOGRAFICADOC.H

class CMeteoGraficaDoc : public CDocument
{
protected: // create from serialization only

CMeteoGraficaDoc();
DECLARE_SERIAL(CMeteoGraficaDoc)
// Attributes
public:

// Operations
public:

// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CMeteoGraficaDoc)
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
//}}AFX_VIRTUAL

// Implementation
public:
virtual ~CMeteoGraficaDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
//{{AFX_MSG(CMeteoGraficaDoc)
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};

//METEOGRAFICADOC.CPP

IMPLEMENT_SERIAL(CMeteoGraficaDoc, CDocument,1| VERSIONABLE_SCHEMA)

// CMeteoGraficaDoc serialization
void CMeteoGraficaDoc::Serialize(CArchive& ar)
{
CDocument::Serialize(ar);

if (ar.IsStoring())
{
ar<<dia<<mes<<anno<<horaactual<<titulo;
}
="" else
="" {
="" int="" nversion="ar.GetObjectSchema();" always="" '-1'
="" ar="">>dia>>mes>>anno>>horaActual>>Titulo;
}
}

NOTE: Where ar< appears, the code is right but I don't know why I cannot look what appears after the first < in The Code Project screen.
GeneralRe: Serialize problem Pin
Tomasz Sowinski12-Sep-01 0:48
Tomasz Sowinski12-Sep-01 0:48 
GeneralDisabling and Enabling MFC Wizard buttons Pin
11-Sep-01 6:46
suss11-Sep-01 6:46 
GeneralRe: Disabling and Enabling MFC Wizard buttons Pin
Tomasz Sowinski12-Sep-01 2:56
Tomasz Sowinski12-Sep-01 2:56 
GeneralCan't add variable to static text Pin
mattiase11-Sep-01 6:44
mattiase11-Sep-01 6:44 
GeneralRe: Can't add variable to static text Pin
Anders Molin11-Sep-01 7:28
professionalAnders Molin11-Sep-01 7:28 
GeneralIShellLink Pin
mrlister11-Sep-01 6:29
mrlister11-Sep-01 6:29 
QuestionCan I develop IE app on Mac?(null) Pin
maxding11-Sep-01 4:12
maxding11-Sep-01 4:12 
GeneralCrazy works in CTabCtrl but not in CPropertySheet !!! Pin
11-Sep-01 3:53
suss11-Sep-01 3:53 
GeneralRe: Crazy works in CTabCtrl but not in CPropertySheet !!! Pin
Anders Molin11-Sep-01 7:34
professionalAnders Molin11-Sep-01 7:34 
GeneralRe: Crazy works in CTabCtrl but not in CPropertySheet !!! Pin
Ravi Bhavnani11-Sep-01 9:43
professionalRavi Bhavnani11-Sep-01 9:43 
QuestionHow can I determine the size of dynamic array? Pin
11-Sep-01 3:13
suss11-Sep-01 3:13 
AnswerRe: How can I determine the size of dynamic array? Pin
Tomasz Sowinski11-Sep-01 3:25
Tomasz Sowinski11-Sep-01 3:25 
GeneralRe: How can I determine the size of dynamic array? Pin
Christian Graus11-Sep-01 3:53
protectorChristian Graus11-Sep-01 3:53 
GeneralRe: How can I determine the size of dynamic array? Pin
Tomasz Sowinski11-Sep-01 4:01
Tomasz Sowinski11-Sep-01 4:01 
GeneralRe: How can I determine the size of dynamic array? Pin
Christian Graus11-Sep-01 4:34
protectorChristian Graus11-Sep-01 4:34 
AnswerRe: How can I determine the size of dynamic array? Pin
Masaaki Onishi11-Sep-01 5:44
Masaaki Onishi11-Sep-01 5:44 
Generalsaving drawings in a VIEW Pin
11-Sep-01 2:36
suss11-Sep-01 2:36 

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.