Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Still having problems with Dir. Copying Pin
David Crow16-Nov-05 3:41
David Crow16-Nov-05 3:41 
Questionodd error on web services... Pin
(Steven Hicks)n+115-Nov-05 13:16
(Steven Hicks)n+115-Nov-05 13:16 
AnswerRe: odd error on web services... Pin
Christian Graus15-Nov-05 15:05
protectorChristian Graus15-Nov-05 15:05 
GeneralRe: odd error on web services... Pin
(Steven Hicks)n+115-Nov-05 15:09
(Steven Hicks)n+115-Nov-05 15:09 
GeneralRe: odd error on web services... Pin
Christian Graus15-Nov-05 15:21
protectorChristian Graus15-Nov-05 15:21 
Questionms outlook Pin
pnpfriend15-Nov-05 11:37
pnpfriend15-Nov-05 11:37 
Question2 question for you pro's Pin
talvezu15-Nov-05 11:17
talvezu15-Nov-05 11:17 
AnswerRe: 2 question for you pro's Pin
Christian Graus15-Nov-05 13:32
protectorChristian Graus15-Nov-05 13:32 
talvezu wrote:
classes A and B. B has a private member int x and it should declare a friend function in the header for B to change A, however B's Header sould know A (inlude "a.h")and A's header should know B. but when i do so i get the error include nested level 363


You need to make the member protected in order to achieve this, private is not visible to friends.

You can do one of two things. The first is to forward declare the class in the header and have your #include in your cpp ( so you put class A; at the top of the B.h file ). The other is to use a third class as a bridge between the two.

talvezu wrote:
I do I make a string member for a class.


The way I do it is to put #include<string> in my stdafx.h. and then put std::string m_string; in my header file, and using std::string in my cpp file. So, I explicitly scope namespaces in my headers, and put using statements in my cpp.

talvezu wrote:
i must use namespace std in order to make it work but then i get the familiar problem of using namespace in header file - I do I set the conflict)


If you're worried about conflict, don't use 'using namespace std;', but instead put using statements for the bits of std you want to use.


Christian Graus - Microsoft MVP - C++
Generalto Christian Pin
talvezu15-Nov-05 23:35
talvezu15-Nov-05 23:35 
GeneralRe: to Christian Pin
Christian Graus16-Nov-05 12:19
protectorChristian Graus16-Nov-05 12:19 
AnswerRe: 2 question for you pro's Pin
grigsoft15-Nov-05 22:03
grigsoft15-Nov-05 22:03 
GeneralRe: 2 question for you pro's Pin
talvezu15-Nov-05 23:40
talvezu15-Nov-05 23:40 
Questionip address and URL of a host Pin
includeh1015-Nov-05 10:57
includeh1015-Nov-05 10:57 
AnswerRe: ip address and URL of a host Pin
Mircea Puiu15-Nov-05 11:25
Mircea Puiu15-Nov-05 11:25 
GeneralRe: ip address and URL of a host Pin
includeh1015-Nov-05 12:45
includeh1015-Nov-05 12:45 
GeneralRe: ip address and URL of a host Pin
markkuk15-Nov-05 13:19
markkuk15-Nov-05 13:19 
GeneralRe: ip address and URL of a host Pin
includeh1015-Nov-05 18:08
includeh1015-Nov-05 18:08 
GeneralRe: ip address and URL of a host Pin
Mircea Puiu15-Nov-05 19:40
Mircea Puiu15-Nov-05 19:40 
GeneralRe: ip address and URL of a host Pin
includeh1016-Nov-05 2:20
includeh1016-Nov-05 2:20 
GeneralRe: ip address and URL of a host Pin
Mircea Puiu16-Nov-05 2:44
Mircea Puiu16-Nov-05 2:44 
QuestionWindows forms and the text box Pin
Richard_4815-Nov-05 10:09
Richard_4815-Nov-05 10:09 
AnswerRe: Windows forms and the text box Pin
David Crow16-Nov-05 2:47
David Crow16-Nov-05 2:47 
QuestionHow to embed and parse XML files in MFC project? Pin
Andre xxxxxxx15-Nov-05 9:35
Andre xxxxxxx15-Nov-05 9:35 
AnswerRe: How to embed and parse XML files in MFC project? Pin
David Crow15-Nov-05 9:51
David Crow15-Nov-05 9:51 
QuestionHelp with recursive dir. copying Pin
bobfilar15-Nov-05 9:29
bobfilar15-Nov-05 9:29 

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.