Hi
I'm sorry if this is a simple or rather unintelligent question, I am a complete newbie and trying to learn pointers in C. Please bear with me.
I am trying to write two functions, one calls the other and passes in an argument:
The calling of "RegisterImage()" fails. It complains about:Code:int RegisterImage( const char * streamID, IMGStream & c ) { ... } int OpenImage( const char * streamid, int dsize ) { ImageStream * im; int idx = -1; if ( GetImgRegIdx(streamid, dsize, im) ) idx = RegisterImage (streamid, im); return idx; }
"in passing argument 2 of ‘int Core::RegisterImage(const char*, IMGStream&)’"
Can anybody help me understand why it's complaining, and how to fix it?
Thanks so much