I am using MSVC++ 6.0. I have an application and a client, both mine. I was attempting to handle some emulated file i/o stuff within the client, however the work is being perfomred by a set of libraries (not mine) called by the application. Basically I have to maintain/retain the structure (type defined in the 3rd party library) that holds the pointers to the three functions (read, write, seek) inside of the application. Where i attempt to set the pointers (example):
channel[iLineNumber - 1].ChanUIO.u_read = channel[iLineNumber - 1].MCPCli->uio_read;
I get:
error C2440: '=' : cannot convert from 'int (__thiscall McpRef::McpClient::*)(int,char *,unsigned int)' to 'int (__cdecl *)(int,char *,unsigned int)'
I had changed the calling convention on these to __cdecl but it didn't get me any further. I believe this will be real easy, but if not, how should I go about it?
Like:
void __cdecl DoIt(float a, char b, char c);
Did you try this?
Best Regards,
DeepuAbrahamK