Click here to Skip to main content
15,916,842 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: BFFM_SETSELECTION question Pin
Prakash Nadar8-Jan-06 17:36
Prakash Nadar8-Jan-06 17:36 
GeneralRe: BFFM_SETSELECTION question Pin
nm_1148-Jan-06 18:40
nm_1148-Jan-06 18:40 
Questionquestions about pointers Pin
neodeaths7-Jan-06 19:28
neodeaths7-Jan-06 19:28 
AnswerRe: questions about pointers Pin
Prakash Nadar7-Jan-06 20:58
Prakash Nadar7-Jan-06 20:58 
AnswerRe: questions about pointers Pin
vikas amin7-Jan-06 21:52
vikas amin7-Jan-06 21:52 
GeneralRe: questions about pointers Pin
Prakash Nadar7-Jan-06 22:01
Prakash Nadar7-Jan-06 22:01 
QuestionWhy the application could not run at Windows XP? Pin
rushing7-Jan-06 17:22
rushing7-Jan-06 17:22 
AnswerRe: Why the application could not run at Windows XP? Pin
Prakash Nadar7-Jan-06 21:44
Prakash Nadar7-Jan-06 21:44 
QuestionGDI+ Visual C++ wrapper class operators missing? Pin
bob169727-Jan-06 15:03
bob169727-Jan-06 15:03 
Questionask one question in VC .NET Pin
Pierre,Hsieh7-Jan-06 13:51
Pierre,Hsieh7-Jan-06 13:51 
AnswerRe: ask one question in VC .NET Pin
PJ Arends7-Jan-06 14:02
professionalPJ Arends7-Jan-06 14:02 
GeneralRe: ask one question in VC .NET Pin
Pierre,Hsieh7-Jan-06 14:14
Pierre,Hsieh7-Jan-06 14:14 
GeneralRe: ask one question in VC .NET Pin
PJ Arends7-Jan-06 14:44
professionalPJ Arends7-Jan-06 14:44 
GeneralRe: ask one question in VC .NET Pin
Pierre,Hsieh7-Jan-06 15:03
Pierre,Hsieh7-Jan-06 15:03 
QuestionRe: ask one question in VC .NET Pin
David Crow7-Jan-06 17:15
David Crow7-Jan-06 17:15 
QuestionSimulating mouse clicks Pin
Still learning how to code7-Jan-06 11:46
Still learning how to code7-Jan-06 11:46 
AnswerRe: Simulating mouse clicks Pin
vipinasda7-Jan-06 12:04
vipinasda7-Jan-06 12:04 
GeneralRe: Simulating mouse clicks Pin
Still learning how to code7-Jan-06 21:15
Still learning how to code7-Jan-06 21:15 
AnswerRe: Simulating mouse clicks Pin
#realJSOP8-Jan-06 3:00
professional#realJSOP8-Jan-06 3:00 
GeneralRe: Simulating mouse clicks Pin
Still learning how to code8-Jan-06 5:41
Still learning how to code8-Jan-06 5:41 
AnswerRe: Simulating mouse clicks Pin
Stephen Hewitt9-Jan-06 11:47
Stephen Hewitt9-Jan-06 11:47 
Question[Message Deleted] Pin
S.C.Wong7-Jan-06 6:08
S.C.Wong7-Jan-06 6:08 
AnswerRe: How to add an ActiveX control in another ActiveX control? Pin
Prakash Nadar7-Jan-06 18:05
Prakash Nadar7-Jan-06 18:05 
Questionhow to pass a class ,object to a function by using pointers? Pin
neodeaths7-Jan-06 4:32
neodeaths7-Jan-06 4:32 
i am previously ask this question before but i have relise taht my previous question was not easy to understand. Dead | X|


can any one please teach me how i can pass a object to a function using pointers?

this is normally how i pass a normal variable to a function using a pointer:
<br />
void function(int* ptr)<br />
int main()<br />
{<br />
int num1;<br />
function(&num1);<br />
<br />
return 0;<br />
}<br />




wat i wanan do now is something like this:
<br />
class theclass<br />
{<br />
public:<br />
<br />
}<br />
void function(theclass* ptr)<br />
<br />
int main()<br />
{<br />
theclass tc;<br />
function(&tc);<br />
<br />
return 0;<br />
}<br />

so what i am trying to do is replacing the int with the object but it have error so could any one please teach me how to do this??

i will greatly appreciated itRose | [Rose]
AnswerRe: how to pass a class ,object to a function by using pointers? Pin
Prakash Nadar7-Jan-06 4:46
Prakash Nadar7-Jan-06 4:46 

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.