Click here to Skip to main content
15,887,676 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: I want to call string from DLL and load it to static control Pin
Waldermort1-Feb-07 2:06
Waldermort1-Feb-07 2:06 
AnswerRe: I want to call string from DLL and load it to static control Pin
David Crow1-Feb-07 3:20
David Crow1-Feb-07 3:20 
AnswerRe: I want to call string from DLL and load it to static control Pin
Hamid_RT1-Feb-07 20:33
Hamid_RT1-Feb-07 20:33 
Questionerror C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
sheetal_0631-Jan-07 23:08
sheetal_0631-Jan-07 23:08 
AnswerRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
prasad_som1-Feb-07 0:38
prasad_som1-Feb-07 0:38 
AnswerRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
prasad_som1-Feb-07 0:51
prasad_som1-Feb-07 0:51 
AnswerRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" [modified] Pin
Mark Salsbery1-Feb-07 11:10
Mark Salsbery1-Feb-07 11:10 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" [modified] Pin
sheetal_061-Feb-07 17:35
sheetal_061-Feb-07 17:35 
//.h
class CCGMObject : public CObject
{
-----
};
class CSpanLoad : public CCGMObject
{
...
public:
void operator=( const CCGMObject& );
};

//.cpp
void CSpanLoad::operator=(const CCGMObject& Src)
{
// copy Src object to this object
}
Above code is not working..
Now when i made the code as follows according to ur suggestion it is working....Why?Could u plz explain..

class CCGMObject : public CObject
{
-----
};
class CSpanLoad : public CCGMObject
{
...
public:
void operator=( const CSpanLoad & );//changed
};

//.cpp
void CSpanLoad::operator=(const CSpanLoad & Src)//changed
{
// copy Src object to this object
}

CSpanLoad *pALd,*pBLd;
*pBLd = *pAld;

Thanks


-- modified at 0:27 Friday 2nd February, 2007
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
Mark Salsbery2-Feb-07 5:28
Mark Salsbery2-Feb-07 5:28 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
sheetal_064-Feb-07 17:42
sheetal_064-Feb-07 17:42 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
Mark Salsbery5-Feb-07 5:09
Mark Salsbery5-Feb-07 5:09 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
sheetal_065-Feb-07 16:49
sheetal_065-Feb-07 16:49 
GeneralRe: error C2248: 'CObject::operator =' : cannot access private member declared in class 'CObject'" Pin
Mark Salsbery6-Feb-07 7:28
Mark Salsbery6-Feb-07 7:28 
QuestionSystem::String to char* convertion Pin
Shahzeb Malik31-Jan-07 22:59
Shahzeb Malik31-Jan-07 22:59 
AnswerRe: System::String to char* convertion Pin
toxcct31-Jan-07 23:04
toxcct31-Jan-07 23:04 
Questiontruncation of folder Pin
Anilkumar K V31-Jan-07 22:40
Anilkumar K V31-Jan-07 22:40 
AnswerRe: truncation of folder Pin
Christian Graus31-Jan-07 22:49
protectorChristian Graus31-Jan-07 22:49 
GeneralRe: truncation of folder Pin
Anilkumar K V31-Jan-07 23:36
Anilkumar K V31-Jan-07 23:36 
QuestionWireless comm. through Wi Fi Pin
Member 378391131-Jan-07 22:29
Member 378391131-Jan-07 22:29 
AnswerRe: Wireless comm. through Wi Fi Pin
Christian Graus31-Jan-07 22:43
protectorChristian Graus31-Jan-07 22:43 
AnswerRe: Wireless comm. through Wi Fi Pin
Waldermort1-Feb-07 2:11
Waldermort1-Feb-07 2:11 
AnswerRe: Wireless comm. through Wi Fi Pin
Hamid_RT1-Feb-07 20:34
Hamid_RT1-Feb-07 20:34 
QuestionChild windows Pin
NorGUI31-Jan-07 22:15
NorGUI31-Jan-07 22:15 
AnswerRe: Child windows Pin
Hamid_RT1-Feb-07 0:28
Hamid_RT1-Feb-07 0:28 
GeneralRe: Child windows Pin
NorGUI1-Feb-07 0:50
NorGUI1-Feb-07 0:50 

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.