Click here to Skip to main content
15,891,943 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: SetCursorPos and GetWindowText Pin
Dominik Reichl13-Jan-07 22:49
Dominik Reichl13-Jan-07 22:49 
QuestionHow to disable Intellisense on VC 2005 Express Pin
yarp13-Jan-07 20:20
yarp13-Jan-07 20:20 
Questionmixed debuging Pin
Reza Shademani13-Jan-07 19:57
Reza Shademani13-Jan-07 19:57 
QuestionHow to put a dll to remote XP and run it? Pin
liur1713-Jan-07 19:41
liur1713-Jan-07 19:41 
AnswerRe: How to put a dll to remote XP and run it? Pin
#realJSOP13-Jan-07 23:44
mve#realJSOP13-Jan-07 23:44 
GeneralRe: How to put a dll to remote XP and run it? Pin
liur1714-Jan-07 0:35
liur1714-Jan-07 0:35 
GeneralRe: How to put a dll to remote XP and run it? Pin
mark novak14-Jan-07 9:16
mark novak14-Jan-07 9:16 
QuestionProblem passing a Reference through multiple functions Pin
jblau13-Jan-07 19:17
jblau13-Jan-07 19:17 
I am trying to pass a reference through a couple of layers of functions, and I am getting a C2664 Error.

Here is my setup:

I have a class [ c_ClassOne ] which contains a pointer to an object [ p_MyObject ].

I have a second class [ c_ClassTwo ] which has a function [ FunctionOne(MYOBJECTTYPE* myObject) ]


I have a third class [ c_ClassThree ] which also has a function [ FunctionTwo(MYOBJECTTYPE* myObject) ]


I then try to pass the reference to the pointer p_MyObject from c_ClassOne to be used within FunctionTwo.

So in a function within c_ClassOne I create an instance of c_ClassTwo [ myClassTwo ]
I then pass a reference to p_MyObject as follows: myClassTwo.FunctionOne(&p_MyObject);

Then within FunctionOne, I create an Instance of c_ClassThree [ myClassThree ]
I then attempt to once again pass the reference to p_MyObject: myClassThree.FunctionTwo(&p_MyObject);

On that line I get the following error:
error C2664: 'CD3DInitialize::Enumerate' : cannot convert parameter 1 from 'LPDIRECT3D9 ** ' to 'LPDIRECT3D9'

Note: LPDIRECT3D9 is the Object Type of p_MyObject.


Can anyone explain what I am doing wrong, and help me understand how to do it correctly?

Thanks,

Jody



AnswerRe: Problem passing a Reference through multiple functions Pin
#realJSOP13-Jan-07 23:42
mve#realJSOP13-Jan-07 23:42 
QuestionHow to connect toan ORACLE DB Using VC++6? Pin
Patriot8113-Jan-07 18:57
Patriot8113-Jan-07 18:57 
AnswerRe: How to connect toan ORACLE DB Using VC++6? [modified] Pin
liur1713-Jan-07 20:03
liur1713-Jan-07 20:03 
Questionwierd delete [ ] myClass exception. Need Help PLZ! [modified] Pin
gumi_r@msn.com13-Jan-07 17:12
gumi_r@msn.com13-Jan-07 17:12 
AnswerRe: wierd delete [ ] myClass exception. Need Help PLZ! Pin
Michael Dunn13-Jan-07 18:27
sitebuilderMichael Dunn13-Jan-07 18:27 
GeneralRe: wierd delete [ ] myClass exception. Need Help PLZ! Pin
gumi_r@msn.com14-Jan-07 2:10
gumi_r@msn.com14-Jan-07 2:10 
AnswerRe: wierd delete [ ] myClass exception. Need Help PLZ! Pin
eli1502197914-Jan-07 3:48
eli1502197914-Jan-07 3:48 
QuestionPointers to classes Pin
Oliver12313-Jan-07 16:52
Oliver12313-Jan-07 16:52 
AnswerRe: Pointers to classes Pin
bob1697213-Jan-07 17:00
bob1697213-Jan-07 17:00 
Questionchange the highlight for a button Pin
PrabhuDev13-Jan-07 9:56
PrabhuDev13-Jan-07 9:56 
AnswerRe: change the highlight for a button Pin
Mark Salsbery13-Jan-07 10:20
Mark Salsbery13-Jan-07 10:20 
QuestionUSB port controlling in vc++ Pin
ahmad al-omar13-Jan-07 9:11
ahmad al-omar13-Jan-07 9:11 
AnswerRe: USB port controlling in vc++ Pin
Nader Elshehabi13-Jan-07 11:16
Nader Elshehabi13-Jan-07 11:16 
Questionitoa() arguments problem Pin
CAgent00713-Jan-07 7:50
CAgent00713-Jan-07 7:50 
AnswerRe: itoa() arguments problem Pin
Mark Salsbery13-Jan-07 9:11
Mark Salsbery13-Jan-07 9:11 
GeneralDoh!! Pin
CAgent00713-Jan-07 13:17
CAgent00713-Jan-07 13:17 
AnswerRe: itoa() arguments problem Pin
Dennis Gourjii13-Jan-07 9:12
Dennis Gourjii13-Jan-07 9:12 

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.