Click here to Skip to main content
15,117,095 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: the function CWnd::CreateControl succeeds, but m_hWnd is NULL Pin
David Crow26-Oct-12 5:58
MemberDavid Crow26-Oct-12 5:58 
QuestionAssigning Pointer To Object (Both of Same Class) Pin
AmbiguousName24-Oct-12 22:41
MemberAmbiguousName24-Oct-12 22:41 
AnswerRe: Assigning Pointer To Object (Both of Same Class) Pin
Richard MacCutchan24-Oct-12 23:01
mveRichard MacCutchan24-Oct-12 23:01 
AnswerRe: Assigning Pointer To Object (Both of Same Class) Pin
AmbiguousName24-Oct-12 23:21
MemberAmbiguousName24-Oct-12 23:21 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Richard MacCutchan25-Oct-12 0:09
mveRichard MacCutchan25-Oct-12 0:09 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Stefan_Lang25-Oct-12 1:33
mveStefan_Lang25-Oct-12 1:33 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Richard MacCutchan25-Oct-12 2:19
mveRichard MacCutchan25-Oct-12 2:19 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Santhosh G_25-Oct-12 2:24
MemberSanthosh G_25-Oct-12 2:24 
Please check this.
C#
void AssignValue(ClassName* ptrValue)
  {
    ClassName& localObject = *ptrValue;// Here local object is created with same members of ptrValue
    obj1 = localObject; // here = operator will work, and copy all members to your new instance obj1.
  }

GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Stefan_Lang25-Oct-12 2:33
mveStefan_Lang25-Oct-12 2:33 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Richard MacCutchan25-Oct-12 2:38
mveRichard MacCutchan25-Oct-12 2:38 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Stefan_Lang25-Oct-12 2:52
mveStefan_Lang25-Oct-12 2:52 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Richard MacCutchan25-Oct-12 3:52
mveRichard MacCutchan25-Oct-12 3:52 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Orjan Westin25-Oct-12 4:06
professionalOrjan Westin25-Oct-12 4:06 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Stefan_Lang25-Oct-12 4:30
mveStefan_Lang25-Oct-12 4:30 
AnswerRe: Assigning Pointer To Object (Both of Same Class) Pin
Chris Meech25-Oct-12 3:14
MemberChris Meech25-Oct-12 3:14 
QuestionRe: Assigning Pointer To Object (Both of Same Class) Pin
David Crow25-Oct-12 3:40
MemberDavid Crow25-Oct-12 3:40 
AnswerRe: Assigning Pointer To Object (Both of Same Class) Pin
CPallini25-Oct-12 11:37
mveCPallini25-Oct-12 11:37 
GeneralRe: Assigning Pointer To Object (Both of Same Class) Pin
Chris Meech26-Oct-12 3:44
MemberChris Meech26-Oct-12 3:44 
QuestionMenuItems' Icons are not Displaying properly in MFC Pin
002comp24-Oct-12 19:56
Member002comp24-Oct-12 19:56 
AnswerRe: MenuItems' Icons are not Displaying properly in MFC Pin
Richard MacCutchan24-Oct-12 22:58
mveRichard MacCutchan24-Oct-12 22:58 
GeneralRe: MenuItems' Icons are not Displaying properly in MFC Pin
002comp24-Oct-12 23:22
Member002comp24-Oct-12 23:22 
GeneralRe: MenuItems' Icons are not Displaying properly in MFC Pin
002comp25-Oct-12 1:43
Member002comp25-Oct-12 1:43 
GeneralRe: MenuItems' Icons are not Displaying properly in MFC Pin
Richard MacCutchan25-Oct-12 7:19
mveRichard MacCutchan25-Oct-12 7:19 
AnswerRe: MenuItems' Icons are not Displaying properly in MFC Pin
Gary Qiu25-Oct-12 6:42
MemberGary Qiu25-Oct-12 6:42 
QuestionChartFX Compatiability Pin
Andrew Hoole24-Oct-12 6:50
MemberAndrew Hoole24-Oct-12 6: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.