Click here to Skip to main content
15,913,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question--------anti-copy problem Pin
dragooooon lee23-Jun-06 23:08
dragooooon lee23-Jun-06 23:08 
Questionhow we can get complilation time of our project Pin
happy_ram23-Jun-06 23:06
happy_ram23-Jun-06 23:06 
AnswerRe: how we can get complilation time of our project Pin
Naveen23-Jun-06 23:22
Naveen23-Jun-06 23:22 
GeneralRe: how we can get complilation time of our project [modified] Pin
ovidiucucu24-Jun-06 7:34
ovidiucucu24-Jun-06 7:34 
AnswerRe: how we can get complilation time of our project Pin
kakan25-Jun-06 19:34
professionalkakan25-Jun-06 19:34 
QuestionStack Overflow problem in Recursion ! [modified] Pin
Vinod Sankaranarayanan23-Jun-06 21:51
Vinod Sankaranarayanan23-Jun-06 21:51 
AnswerRe: Stack Overflow problem in Recursion ! Pin
Sarath C23-Jun-06 23:05
Sarath C23-Jun-06 23:05 
AnswerRe: Stack Overflow problem in Recursion ! [modified] Pin
Stephen Hewitt24-Jun-06 2:04
Stephen Hewitt24-Jun-06 2:04 
First off something which is not related to your problem but is not ideal:
void fun()
{
    CCompletepath *pComPath = new CCompletePath();
    CreateFullPaths(pComPath); // First call
 
    delete pComPath;
}


Why are you using the heap for CCompletePath when its lifetime is confined to the fun function? You should do it like this:
void fun()
{
    CCompletepath cp;
    CreateFullPaths(&cp); // First call
}


This is faster, safer as you can't forget to delete it and it doesn't contribute to heap fragmentation. The only reason to prefer using the heap in this case would be if the object is very large.

As for your problem it's hard so say as your code isn't clear as presented here. For example, the function CucDiagramManager::CreateFullPaths takes three parameters but you call it in fun (which I assume is meant to be a member function of CucDiagramManager but this isn't clear from the code) with only one. Also there is no formatting. Also we can't read any "<" or ">" symbols in the code or the text which comes after them as they are being interpreted as HTML. Here's some tips: take some care that people understand your problem; try ticking the "Ignore HTML tags in this message (good for code snippets)" check box; proof read your post to make sure it makes sense.


Steve
GeneralRe: Stack Overflow problem in Recursion ! Pin
Vinod Sankaranarayanan24-Jun-06 4:25
Vinod Sankaranarayanan24-Jun-06 4:25 
GeneralRe: Stack Overflow problem in Recursion ! Pin
Stephen Hewitt24-Jun-06 17:45
Stephen Hewitt24-Jun-06 17:45 
Questionwebcam About webcam Pin
mt_samiei23-Jun-06 20:28
mt_samiei23-Jun-06 20:28 
AnswerRe: webcam About webcam Pin
Amar Sutar23-Jun-06 23:06
Amar Sutar23-Jun-06 23:06 
QuestionTab key Pin
kk.tvm23-Jun-06 20:22
kk.tvm23-Jun-06 20:22 
AnswerRe: Tab key Pin
Naveen23-Jun-06 20:32
Naveen23-Jun-06 20:32 
GeneralRe: Tab key Pin
kk.tvm23-Jun-06 22:41
kk.tvm23-Jun-06 22:41 
GeneralRe: Tab key Pin
Naveen23-Jun-06 22:45
Naveen23-Jun-06 22:45 
GeneralRe: Tab key Pin
kk.tvm24-Jun-06 0:46
kk.tvm24-Jun-06 0:46 
GeneralRe: Tab key Pin
happy_ram24-Jun-06 0:04
happy_ram24-Jun-06 0:04 
AnswerRe: Tab key Pin
Hamid_RT23-Jun-06 21:05
Hamid_RT23-Jun-06 21:05 
QuestionHow to bring EditBox in front of ListControl? Pin
arunashok23-Jun-06 19:41
arunashok23-Jun-06 19:41 
AnswerRe: How to bring EditBox in front of ListControl? Pin
Naveen23-Jun-06 20:03
Naveen23-Jun-06 20:03 
QuestionDocumentation Pin
MozhdehQeraati23-Jun-06 18:38
MozhdehQeraati23-Jun-06 18:38 
AnswerRe: Documentation Pin
Sarath C23-Jun-06 23:06
Sarath C23-Jun-06 23:06 
GeneralRe: Documentation Pin
MozhdehQeraati24-Jun-06 2:14
MozhdehQeraati24-Jun-06 2:14 
GeneralRe: Documentation Pin
Kevin McFarlane24-Jun-06 5:45
Kevin McFarlane24-Jun-06 5:45 

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.