GIDForums  

Go Back   GIDForums > Computer Programming Forums > MS Visual C++ / MFC Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Oct-2004, 09:07
Lord_Kain Lord_Kain is offline
New Member
 
Join Date: Oct 2004
Posts: 3
Lord_Kain is on a distinguished road

Help on Sockets


I 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  
Old 11-Oct-2004, 00:34
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 961
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
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:
#include "SocketsDlg.h"

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  
Old 11-Oct-2004, 12:15
Lord_Kain Lord_Kain is offline
New Member
 
Join Date: Oct 2004
Posts: 3
Lord_Kain is on a distinguished road
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  
Old 12-Oct-2004, 11:23
Lord_Kain Lord_Kain is offline
New Member
 
Join Date: Oct 2004
Posts: 3
Lord_Kain is on a distinguished road
Hey Luci, what romanian books do you recomend on MFC?
  #5  
Old 13-Oct-2004, 01:14
LuciWiz's Avatar
LuciWiz LuciWiz is offline
Moderator
 
Join Date: Jul 2004
Location: Cluj-Napoca (Romania)
Posts: 961
LuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the roughLuciWiz is a jewel in the rough
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 GIDBlogStupid Management Policies by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 05:23.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.