Click here to Skip to main content
15,358,470 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem debugging an app with VC++ Pin
timbk15-Nov-09 15:01
Membertimbk15-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
Membertimbk15-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
Membertimbk17-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
Memberyugiant15-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
MemberGeorge 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
MemberLunaticFringe14-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
Membernenfa14-Nov-09 22:44 
AnswerRe: brother, help me please! Pin
Code-o-mat15-Nov-09 0:38
MemberCode-o-mat15-Nov-09 0:38 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 2:31
Membernenfa15-Nov-09 2:31 
GeneralRe: brother, help me please! Pin
Code-o-mat15-Nov-09 2:59
MemberCode-o-mat15-Nov-09 2:59 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 3:02
Membernenfa15-Nov-09 3:02 
GeneralRe: brother, help me please! Pin
Code-o-mat15-Nov-09 3:06
MemberCode-o-mat15-Nov-09 3:06 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 3:14
Membernenfa15-Nov-09 3:14 
GeneralRe: brother, help me please! Pin
Code-o-mat15-Nov-09 3:19
MemberCode-o-mat15-Nov-09 3:19 
AnswerRe: brother, help me please! Pin
Richard MacCutchan15-Nov-09 1:27
mveRichard MacCutchan15-Nov-09 1:27 
GeneralRe: brother, help me please! [modified] Pin
nenfa15-Nov-09 2:51
Membernenfa15-Nov-09 2:51 
GeneralRe: brother, help me please! Pin
Richard MacCutchan15-Nov-09 3:44
mveRichard MacCutchan15-Nov-09 3:44 
GeneralRe: brother, help me please! Pin
nenfa15-Nov-09 4:29
Membernenfa15-Nov-09 4:29 
QuestionRe: brother, help me please! Pin
David Crow16-Nov-09 3:02
MemberDavid Crow16-Nov-09 3:02 
AnswerRe: brother, help me please! Pin
nenfa17-Nov-09 21:23
Membernenfa17-Nov-09 21:23 
QuestionUnable to run openCV program in VS C++ !!! Pin
csetopper_bhanu14-Nov-09 22:21
Membercsetopper_bhanu14-Nov-09 22:21 

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.