![]() |
|
#1
|
|||
|
|||
Help on SocketsI added a virtual function void CWarSocket::SetParent(CDialog *pWnd) and a ((CSocketsDlg*)m_pWnd)->OnAccept(); and it gives me an "'CSocketsDlg' : undeclared identifier" and an "'CSocketsDlg' : undeclared identifier". I used an example in a book teaching MFC with Visual Studio 6. Can you help me?
|
|
#2
|
||||
|
||||
|
I guess you didn't "include" the header of the CSocketsDlg class. You should do so, in order for your compiler to know who CSocketsDlg is.
You should add a line like this CPP / C++ / C Code:
in the .cpp file where you use CSocketsDlg, or in it's header. Regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
|
#3
|
|||
|
|||
|
Yeah, I figured it out, after many desperate hours :-) but now arises a new question, how can I make a simple SDI application like notepad, i know i have to use CEditView, but what are the steps? I create a derivate class of CEditView and where do I put it? How do I make it work...what do I do? Put it in CDocument? or CView...?
|
|
#4
|
|||
|
|||
|
Hey Luci, what romanian books do you recomend on MFC?
|
|
#5
|
||||
|
||||
|
I would recommend the book by Jon Bates and Tim Tompkins "Practical Visual C++ 6" ("Utilizare Visual C++ 6" - romanian )
You can find this book in romanian as well (at almost any book-store with an IT section). Personaly, I prefer reading these books in english, since I don't have to cope with the miss-translations and stuff... There is also a chapter on SDI applications - I have a feeling you might want to take a look on that Here are a couple of links you might find useful: msdn some bogus I found interesting Best regards, Luci __________________
Please read these Guidelines before posting on the forum "A person who never made a mistake never tried anything new." Einstein |
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [PROGRAM] Winsock Programming | Max Payne | MS Visual C++ / MFC Forum | 1 | 09-Mar-2007 00:38 |
| UDP Sockets between .NET and VS6 | MikeZ | MS Visual C++ / MFC Forum | 2 | 19-Feb-2004 11:55 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The