I want to copy and paste a C function I found in another program into my C++ program.
One of the function arguments uses the "this" pointer.
void cfunction( FILE *outfilefd, const VARTYPEDEFINED this);
The C++ compiler errors here on the function prototype:
error C2143: syntax error : missing ')' before 'this'
How do I make this C++ usable?
Thanks.
EDIT ( per Betamoo comment )
void cfunction( FILE *outfilefd, const VARTYPEDEFINED this);
{
UINT8 temp = 0;
temp = (UINT8)( this & 0x000000FF );
if ( ( temp > LIMIT ) )
......
else
{
......
}
}