Click here to Skip to main content
15,893,588 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWhat Windows API function is called to create / show a dialog box. Pin
hongheo7615-Nov-09 11:43
hongheo7615-Nov-09 11:43 
AnswerRe: What Windows API function is called to create / show a dialog box. Pin
Code-o-mat15-Nov-09 20:25
Code-o-mat15-Nov-09 20:25 
QuestionProblem debugging an app with VC++ Pin
timbk15-Nov-09 10:09
timbk15-Nov-09 10:09 
AnswerRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 10:58
professionalChris Losinger15-Nov-09 10:58 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 14:23
timbk15-Nov-09 14:23 
GeneralRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 14:43
professionalChris Losinger15-Nov-09 14:43 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 15:01
timbk15-Nov-09 15:01 
GeneralRe: Problem debugging an app with VC++ Pin
Chris Losinger15-Nov-09 15:06
professionalChris Losinger15-Nov-09 15:06 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 15:24
timbk15-Nov-09 15:24 
GeneralRe: Problem debugging an app with VC++ Pin
Richard MacCutchan15-Nov-09 21:36
mveRichard MacCutchan15-Nov-09 21:36 
GeneralRe: Problem debugging an app with VC++ Pin
timbk17-Nov-09 13:29
timbk17-Nov-09 13:29 
GeneralRe: Problem debugging an app with VC++ Pin
Richard MacCutchan17-Nov-09 21:24
mveRichard MacCutchan17-Nov-09 21:24 
Questionhow to draw a DiagonalDown line in word cell using vc++ 6 Pin
yugiant15-Nov-09 4:36
yugiant15-Nov-09 4:36 
QuestionNot able to use the pointer to a dynamic allocated memory as a function parameter Pin
George Nistor14-Nov-09 22:51
George Nistor14-Nov-09 22:51 
Hi,
(my first post on CodeProject Smile | :) )
I am unable to use GetPtrEx and GetPtrEx2 function versions.
I get Unhandled exception.

Please tell me why...

class CTest
{
private:
char *a;
public:
CTest(int n=10)
{
a= new char[10];
a="george";
}

virtual ~CTest()
{
}

char * GetPtr()
{
return a;
}

void GetPtrEx(char **ptOut)
{
ptOut=&a;
}

void GetPtrEx2(char *ptOut)
{
ptOut=a;
}

};


int _tmain(int argc, _TCHAR* argv[])
{
CTest obj;

char *rx=NULL;
obj.GetPtrEx(&rx);
cout<<"sir="<
AnswerRe: Not able to use the pointer to a dynamic allocated memory as a function parameter Pin
LunaticFringe14-Nov-09 23:10
LunaticFringe14-Nov-09 23:10 
AnswerRe: Not able to use the pointer to a dynamic allocated memory as a function parameter Pin
Richard MacCutchan15-Nov-09 1:20
mveRichard MacCutchan15-Nov-09 1:20 
Questionbrother, help me please! Pin
nenfa14-Nov-09 22:44
nenfa14-Nov-09 22:44 
AnswerRe: brother, help me please! Pin
Code-o-mat15-Nov-09 0:38
Code-o-mat15-Nov-09 0:38 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 2:31
nenfa15-Nov-09 2:31 
GeneralRe: brother, help me please! Pin
Code-o-mat15-Nov-09 2:59
Code-o-mat15-Nov-09 2:59 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 3:02
nenfa15-Nov-09 3:02 
GeneralRe: brother, help me please! Pin
Code-o-mat15-Nov-09 3:06
Code-o-mat15-Nov-09 3:06 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 3:14
nenfa15-Nov-09 3:14 
GeneralRe: brother, help me please! Pin
Code-o-mat15-Nov-09 3:19
Code-o-mat15-Nov-09 3:19 
AnswerRe: brother, help me please! Pin
Richard MacCutchan15-Nov-09 1:27
mveRichard MacCutchan15-Nov-09 1:27 

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.