Click here to Skip to main content
15,905,566 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to disable "Show window content while dragging" style to my CDialog Window Pin
Nyil14-Jul-08 1:32
Nyil14-Jul-08 1:32 
QuestionCommunication between TreeView and FormView Pin
Maxim Zarus8-Jun-08 23:31
Maxim Zarus8-Jun-08 23:31 
AnswerRe: Communication between TreeView and FormView Pin
Paresh Chitte8-Jun-08 23:37
Paresh Chitte8-Jun-08 23:37 
AnswerRe: Communication between TreeView and FormView Pin
sudhir_Kumar8-Jun-08 23:48
sudhir_Kumar8-Jun-08 23:48 
GeneralRe: Communication between TreeView and FormView Pin
Maxim Zarus9-Jun-08 0:02
Maxim Zarus9-Jun-08 0:02 
GeneralRe: Communication between TreeView and FormView Pin
sudhir_Kumar9-Jun-08 0:18
sudhir_Kumar9-Jun-08 0:18 
GeneralRe: Communication between TreeView and FormView Pin
Maxim Zarus9-Jun-08 0:42
Maxim Zarus9-Jun-08 0:42 
QuestionProblem with variables Pin
pl_kode8-Jun-08 23:18
pl_kode8-Jun-08 23:18 
I had posted this earlier but no reply. Sorry for posting it again

This is how it is...

My Class is defined in newclass.h as...
Class A
{
public:
    	void out_func1();  
	void out_func2();  
  class B 	
  {   
  public:  
 	  string path;  
  	  in_func1();  
 };
};

I then Get the path at intialize.cpp as follows....
void A::out_func1()
{
 B obj;	
 obj.path="c:\folder\file1.txt";
}

Then I try to open the file to write in write.cpp...
void A::out_func2()
{	
 B obj;	
 ofstream myfile;
 myfile.open (obj.path.c_str(), ios::app);
...
}


This crashes.I have included the header initialise.h too.
Please let me know were I could have gone wrong. I think I am having problem with the scope of the varible. But I am not sure.

THANKS.
AnswerRe: Problem with variables Pin
Naveen8-Jun-08 23:24
Naveen8-Jun-08 23:24 
AnswerRe: Problem with variables Pin
CPallini8-Jun-08 23:24
mveCPallini8-Jun-08 23:24 
AnswerRe: Problem with variables Pin
_AnsHUMAN_ 8-Jun-08 23:26
_AnsHUMAN_ 8-Jun-08 23:26 
AnswerRe: Problem with variables Pin
Paresh Chitte8-Jun-08 23:27
Paresh Chitte8-Jun-08 23:27 
AnswerRe: Problem with variables Pin
David Crow9-Jun-08 7:08
David Crow9-Jun-08 7:08 
QuestionHi i am getting linker error LNK2001:unresolved external symbol Pin
Member 46556858-Jun-08 22:49
Member 46556858-Jun-08 22:49 
AnswerRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
toxcct8-Jun-08 22:53
toxcct8-Jun-08 22:53 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Member 46556858-Jun-08 23:05
Member 46556858-Jun-08 23:05 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
toxcct8-Jun-08 23:10
toxcct8-Jun-08 23:10 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Member 46556858-Jun-08 23:20
Member 46556858-Jun-08 23:20 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Member 46556858-Jun-08 23:22
Member 46556858-Jun-08 23:22 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Cedric Moonen8-Jun-08 23:46
Cedric Moonen8-Jun-08 23:46 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Member 46556858-Jun-08 23:24
Member 46556858-Jun-08 23:24 
AnswerRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Naveen8-Jun-08 23:17
Naveen8-Jun-08 23:17 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol Pin
Member 46556858-Jun-08 23:43
Member 46556858-Jun-08 23:43 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol[ Modified ] Pin
Naveen8-Jun-08 23:45
Naveen8-Jun-08 23:45 
GeneralRe: Hi i am getting linker error LNK2001:unresolved external symbol[ Modified ] Pin
Member 46556858-Jun-08 23:58
Member 46556858-Jun-08 23:58 

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.