Click here to Skip to main content
15,902,635 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help needed...Image format conversion in VC++ Pin
pavanbabut11-Aug-04 9:33
pavanbabut11-Aug-04 9:33 
GeneralRe: Help needed...Image format conversion in VC++ Pin
John R. Shaw11-Aug-04 9:47
John R. Shaw11-Aug-04 9:47 
GeneralRe: Help needed...Image format conversion in VC++ Pin
pavanbabut11-Aug-04 11:35
pavanbabut11-Aug-04 11:35 
GeneralUSB interface in VC++ Pin
suman_malepati8-Aug-04 7:31
suman_malepati8-Aug-04 7:31 
GeneralRe: USB interface in VC++ Pin
Vadim Tabakman8-Aug-04 16:39
Vadim Tabakman8-Aug-04 16:39 
GeneralShellExecute and execl woes Pin
KnaveWave8-Aug-04 6:35
KnaveWave8-Aug-04 6:35 
GeneralRe: ShellExecute and execl woes Pin
David Crow9-Aug-04 3:26
David Crow9-Aug-04 3:26 
GeneralPassing a reference-to-pointer. Pin
blackmesa8-Aug-04 3:47
blackmesa8-Aug-04 3:47 
I have a problem passing a pointer by reference to a parsing function. The function prototype is:

void ReadNode(Node*& nodeToRead);

which basically reads a node description from a parsing stream, and allocates memory for the new node accordingly. The node is NULL in case of invalid node description.

I'm using this function to parse scene nodes. The SceneNode class derives from the Node (abstract base) class.

SceneNode* nodeToRead = NULL;
ReadNode(nodeToRead);


I'm getting the following error:

error C2664: 'Betelgeuse::Parser::ReadNode' : cannot convert parameter 1 from 'Betelgeuse::SceneNode *' to 'Betelgeuse::Node *& ' A reference that is not to 'const' cannot be bound to a non-lvalue

I get the same error when using a pointer to pointer instead.

I don't understand why it doesn't work. Any explanation and suggestion would be greatly appreciated.


Cheers, blackmesa.
GeneralRe: Passing a reference-to-pointer. Pin
valikac8-Aug-04 10:04
valikac8-Aug-04 10:04 
GeneralRe: Passing a reference-to-pointer. Pin
Ryan Binns8-Aug-04 18:25
Ryan Binns8-Aug-04 18:25 
GeneralRe: Passing a reference-to-pointer. Pin
blackmesa9-Aug-04 12:31
blackmesa9-Aug-04 12:31 
QuestionHow 2 communicate with other objects. Pin
Anonymous8-Aug-04 2:40
Anonymous8-Aug-04 2:40 
AnswerRe: How 2 communicate with other objects. Pin
valikac8-Aug-04 10:05
valikac8-Aug-04 10:05 
GeneralRe: How 2 communicate with other objects. Pin
Anonymous8-Aug-04 10:44
Anonymous8-Aug-04 10:44 
GeneralCEditView re-sets caret position on save Pin
sschilachi8-Aug-04 0:29
sschilachi8-Aug-04 0:29 
Generalloading resource only dlls Pin
Ted Podelnyk7-Aug-04 20:28
Ted Podelnyk7-Aug-04 20:28 
GeneralRe: loading resource only dlls Pin
bikram singh7-Aug-04 22:09
bikram singh7-Aug-04 22:09 
GeneralRe: loading resource only dlls Pin
Michael Dunn8-Aug-04 7:12
sitebuilderMichael Dunn8-Aug-04 7:12 
QuestionAny way to programmatically select a printer? Pin
DanYELL7-Aug-04 15:08
DanYELL7-Aug-04 15:08 
AnswerRe: Any way to programmatically select a printer? Pin
7-Aug-04 18:59
suss7-Aug-04 18:59 
GeneralMapi doesn't work Pin
Spiritofamerica7-Aug-04 11:16
Spiritofamerica7-Aug-04 11:16 
GeneralRe: Mapi doesn't work Pin
David Crow9-Aug-04 3:49
David Crow9-Aug-04 3:49 
GeneralRe: Mapi doesn't work Pin
me also but I didn't log in9-Aug-04 9:24
sussme also but I didn't log in9-Aug-04 9:24 
GeneralRe: Mapi doesn't work Pin
David Crow9-Aug-04 10:58
David Crow9-Aug-04 10:58 
GeneralNEED HELP -- Win 32 MP3 ripper project Pin
Link26007-Aug-04 10:57
Link26007-Aug-04 10:57 

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.