Dear All,
I am trying to inherit C Structure interface and its implementation
developed by third party. I would like to provide a wrapper kind of
class to my user. For instance,
mapctx.h
-------------
struct MAPCTX
{
......
}
mapctx.c
-------------
void InitMapctx(long xsize)
{
xsize = 7;
}
MyCpp.h
-------------
class MyMapCtx : public MAPCTX
{
void XInitMapContext(long XSize)
{
InitMapctx(XSize);
}
};
When I compile this code in Microsoft C++ compiler it is giving the
following errors
error C2143: syntax error : missing ')' before 'constant'
error C2143: syntax error : missing ';' before 'constant'
error C2059: syntax error : 'constant'
error C2059: syntax error : ')'
error C2334: unexpected token(s) preceding '{'; skipping apparent
function body
As per my observation parameter XSize is causing to list these errors.
Please let me know why this is going wrong.
With Regards,
Sri