Click here to Skip to main content
15,908,675 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: encrypt and decrypt in UNICODE Pin
Mark Salsbery19-Jan-07 6:19
Mark Salsbery19-Jan-07 6:19 
QuestionUSB Drive Pin
radhika2818-Jan-07 17:57
radhika2818-Jan-07 17:57 
AnswerRe: USB Drive Pin
Michael Dunn18-Jan-07 19:47
sitebuilderMichael Dunn18-Jan-07 19:47 
Questioncmd.exe bug / GetFileType from kernel mode Pin
Mike_V18-Jan-07 16:20
Mike_V18-Jan-07 16:20 
Questionhelp returning data from DLL Pin
Calvin Streeting18-Jan-07 13:36
Calvin Streeting18-Jan-07 13:36 
QuestionRe: help returning data from DLL Pin
prasad_som18-Jan-07 17:30
prasad_som18-Jan-07 17:30 
AnswerRe: help returning data from DLL Pin
Calvin Streeting18-Jan-07 22:00
Calvin Streeting18-Jan-07 22:00 
QuestionProblem with my code - cant fine what wrong - please need help. Pin
Yanshof18-Jan-07 12:12
Yanshof18-Jan-07 12:12 
Using visual 2005 and work with C++.

The error that i getting in the last line of the code is

C2248: 'CObject::CObject' : cannot access private member declared in class 'CObject'
and the class code is

#pragma once<br />
<br />
#include "stdafx.h"<br />
<br />
#ifdef _DEBUG<br />
#define new DEBUG_NEW<br />
#endif<br />
<br />
<br />
<br />
class CMyFile : public CObject<br />
{<br />
    DECLARE_SERIAL(CMyFile);<br />
<br />
public:<br />
    CMyFile(void);<br />
    virtual ~CMyFile(void);<br />
    virtual void Serialize(CArchive &ar);<br />
    virtual CMyFile& operator=(CMyFile &MyFile);<br />
<br />
private:<br />
    CString m_sPath;<br />
    CString m_sData;<br />
<br />
public:<br />
    CString GetPath(){return m_sPath;};<br />
    void SetPath(CString sPath){m_sPath = sPath;};<br />
<br />
    CString GetData(){return m_sData;};<br />
    void SetData(CString sData){m_sData = sData;};    <br />
};


Please help me - i dont know what is wrong

Thanks.
AnswerRe: Problem with my code - cant fine what wrong - please need help. Pin
Stephen Hewitt18-Jan-07 12:17
Stephen Hewitt18-Jan-07 12:17 
GeneralRe: Problem with my code - cant fine what wrong - please need help. Pin
prasad_som18-Jan-07 17:33
prasad_som18-Jan-07 17:33 
GeneralRe: Problem with my code - cant fine what wrong - please need help. Pin
Yanshof18-Jan-07 21:03
Yanshof18-Jan-07 21:03 
QuestionRe: Problem with my code - cant fine what wrong - please need help. Pin
prasad_som18-Jan-07 21:26
prasad_som18-Jan-07 21:26 
AnswerRe: Problem with my code - cant fine what wrong - please need help. Pin
Yanshof18-Jan-07 21:26
Yanshof18-Jan-07 21:26 
GeneralRe: Problem with my code - cant fine what wrong - please need help. Pin
prasad_som18-Jan-07 21:44
prasad_som18-Jan-07 21:44 
GeneralRe: Problem with my code - cant fine what wrong - please need help. Pin
Yanshof18-Jan-07 21:56
Yanshof18-Jan-07 21:56 
GeneralRe: Problem with my code - cant fine what wrong - please need help. Pin
prasad_som18-Jan-07 22:00
prasad_som18-Jan-07 22:00 
QuestionHow can I pass a pointer to a VARIANT to a function? Pin
Joan M18-Jan-07 10:35
professionalJoan M18-Jan-07 10:35 
AnswerRe: How can I pass a pointer to a VARIANT to a function?[modified] Pin
CPallini18-Jan-07 11:03
mveCPallini18-Jan-07 11:03 
GeneralRe: How can I pass a pointer to a VARIANT to a function?[modified] Pin
Joan M18-Jan-07 19:47
professionalJoan M18-Jan-07 19:47 
GeneralRe: How can I pass a pointer to a VARIANT to a function?[modified] Pin
CPallini18-Jan-07 21:03
mveCPallini18-Jan-07 21:03 
AnswerRe: How can I pass a pointer to a VARIANT to a function? Pin
Stephen Hewitt18-Jan-07 12:12
Stephen Hewitt18-Jan-07 12:12 
GeneralRe: How can I pass a pointer to a VARIANT to a function? Pin
Joan M18-Jan-07 19:46
professionalJoan M18-Jan-07 19:46 
GeneralRe: How can I pass a pointer to a VARIANT to a function? Pin
Joan M18-Jan-07 19:51
professionalJoan M18-Jan-07 19:51 
QuestionVisual C++ 2005 Express setup error message Pin
Nawar_nrr18-Jan-07 8:05
Nawar_nrr18-Jan-07 8:05 
AnswerRe: Visual C++ 2005 Express setup error message Pin
Mark Salsbery18-Jan-07 8:43
Mark Salsbery18-Jan-07 8:43 

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.