Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Navigation Error Pin
Shouvik Das1-Jan-07 18:52
Shouvik Das1-Jan-07 18:52 
QuestionCompression - RAR Pin
Imtiaz Murtaza31-Dec-06 16:37
Imtiaz Murtaza31-Dec-06 16:37 
QuestionDirectshow question Pin
godspeed12331-Dec-06 9:29
godspeed12331-Dec-06 9:29 
AnswerRe: Directshow question Pin
Mark Salsbery31-Dec-06 10:51
Mark Salsbery31-Dec-06 10:51 
QuestionWill do this generate a memory leak? Pin
Joan M30-Dec-06 23:17
professionalJoan M30-Dec-06 23:17 
AnswerRe: Will do this generate a memory leak? Pin
Gary R. Wheeler31-Dec-06 1:22
Gary R. Wheeler31-Dec-06 1:22 
AnswerRe: Will do this generate a memory leak? Pin
Gary R. Wheeler31-Dec-06 1:25
Gary R. Wheeler31-Dec-06 1:25 
AnswerRe: Will do this generate a memory leak? Pin
toxcct31-Dec-06 2:15
toxcct31-Dec-06 2:15 
I have 2 remarks for you.

first of all, you seem to program in C++ (because of the namespace your function is placed on), so, why do you bother using C-Style Strings like this ? can't you use the CString class, or std::string if you can't use MFC ?

the second point i notice is that your functions tells that is returns a LPSTR (char* string), but you actually construct and return a TCHAR* string, which should be declared as LPTSTR.
if the caller is not intended to modify the string returned, it should even be declared LPCTSTR (C for const).

but still I maintain that string classes should be used instead


Don't know where to start ?
Refer the Forums Guidelines and ask a friend

[VisualCalc 3.0][Flags Beginner's Guide]

AnswerYes, if the caller doesn't delete the pointer. Pin
CPallini31-Dec-06 6:58
mveCPallini31-Dec-06 6:58 
Questionno_input comes into reality Pin
davvid30-Dec-06 23:15
davvid30-Dec-06 23:15 
Answerjust a guess Pin
toxcct31-Dec-06 2:27
toxcct31-Dec-06 2:27 
GeneralRe: just a guess Pin
davvid31-Dec-06 2:46
davvid31-Dec-06 2:46 
AnswerRe: no_input comes into reality Pin
CPallini31-Dec-06 11:02
mveCPallini31-Dec-06 11:02 
QuestionIE7 settings Pin
Waldermort30-Dec-06 20:52
Waldermort30-Dec-06 20:52 
AnswerRe: IE7 settings Pin
Michael Dunn30-Dec-06 21:50
sitebuilderMichael Dunn30-Dec-06 21:50 
QuestionHow do I have a "Splitter Functionality" without using CSplitterWind ? [modified] Pin
erajsri30-Dec-06 18:32
erajsri30-Dec-06 18:32 
AnswerRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
Mark Salsbery31-Dec-06 5:43
Mark Salsbery31-Dec-06 5:43 
GeneralRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
erajsri31-Dec-06 15:36
erajsri31-Dec-06 15:36 
AnswerRe: How do I have a "Splitter Functionality" without using CSplitterWind ? Pin
Cristian Amarie2-Jan-07 4:03
Cristian Amarie2-Jan-07 4:03 
Questionunary minus in backwards for-loop question [modified] Pin
FocusedWolf30-Dec-06 17:00
FocusedWolf30-Dec-06 17:00 
AnswerRe: unary minus in backwards for-loop question Pin
Michael Dunn30-Dec-06 18:16
sitebuilderMichael Dunn30-Dec-06 18:16 
AnswerRe: unary minus in backwards for-loop question Pin
John M. Drescher30-Dec-06 18:17
John M. Drescher30-Dec-06 18:17 
GeneralRe: unary minus in backwards for-loop question Pin
FocusedWolf30-Dec-06 19:07
FocusedWolf30-Dec-06 19:07 
QuestionHow to get a dialog size by ID? Pin
hanlei000000000930-Dec-06 16:01
hanlei000000000930-Dec-06 16:01 
AnswerRe: How to get a dialog size by ID? Pin
hanlei000000000930-Dec-06 16:14
hanlei000000000930-Dec-06 16:14 

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.