ur_unholyness
March 8th, 2005, 12:55 AM
Hi, please have a look at the attachment, it is a sample from the book Teach Yourself VC++ in 21 days, which is a dialog based application and has both client and server functionality in the same dialog resource. It has a function called SetParent, and a member variable of the type CDialog* as its parameter.
I need to make a similar application, but I wish to incorporate the client and the server independently, and also, as SDI or MDI applications, instead of dialog based. I tried to use similar approach as in this example, and seperated client and server functionalities into two different applications, but I get a huge number of errors.
The following are the changes I made
Instead of the CDialog* varialbe type, I used a CFormview* variable,as it is an SDI application.
I used the SetParent function with this variable as the parameter.
Where am I doing wrong here? I am unable to figure it out. Please help.
I need to make a similar application, but I wish to incorporate the client and the server independently, and also, as SDI or MDI applications, instead of dialog based. I tried to use similar approach as in this example, and seperated client and server functionalities into two different applications, but I get a huge number of errors.
The following are the changes I made
Instead of the CDialog* varialbe type, I used a CFormview* variable,as it is an SDI application.
I used the SetParent function with this variable as the parameter.
Where am I doing wrong here? I am unable to figure it out. Please help.