L
Lynn McGuire
I am creating a function prototype for a DLL entry point. I dynamically
load the DLL at runtime and then map the entry points.
typedef SP_STATUS SP_API (* myRNBOsproReadProc)
( SP_IN RBP_SPRO_APIPACKET packet,
SP_IN RB_WORD address,
SP_OUT RBP_WORD data );
myRNBOsproReadProc myRNBOsproRead;
This worked OK with Watcom C++. However, Visual C++ 2003 is
giving me a weird error message:
x.cpp(46): error C2059: syntax error : '('
I removed the parenthesis and then Visual C++ gives me:
x.cpp(49): error C2165: 'left-side modifier' : cannot modify pointers to data
Does anyone understand what is going on here ?
Thanks,
Lynn McGuire
load the DLL at runtime and then map the entry points.
typedef SP_STATUS SP_API (* myRNBOsproReadProc)
( SP_IN RBP_SPRO_APIPACKET packet,
SP_IN RB_WORD address,
SP_OUT RBP_WORD data );
myRNBOsproReadProc myRNBOsproRead;
This worked OK with Watcom C++. However, Visual C++ 2003 is
giving me a weird error message:
x.cpp(46): error C2059: syntax error : '('
I removed the parenthesis and then Visual C++ gives me:
x.cpp(49): error C2165: 'left-side modifier' : cannot modify pointers to data
Does anyone understand what is going on here ?
Thanks,
Lynn McGuire