error C2440 in Visual Studio 2005
-
Hi, I have some code in Visual C++, which I had earlier compiled using Visual Studio 6.0, and it compiled and linked fine. But the same code which I converted to VS 2005, is giving me this error 2440, as follows: error C2440: 'specialization' : cannot convert from 'BOOL (__stdcall *)(LPCSTR,UINT_PTR)' to 'BOOL (__cdecl *const )(const char *,UINT)' I think this is the error regarding the calling convention. Could somebody resolve this problem for me? Thanks in advance. Sanjay Khapre Software Developer
-
Hi, I have some code in Visual C++, which I had earlier compiled using Visual Studio 6.0, and it compiled and linked fine. But the same code which I converted to VS 2005, is giving me this error 2440, as follows: error C2440: 'specialization' : cannot convert from 'BOOL (__stdcall *)(LPCSTR,UINT_PTR)' to 'BOOL (__cdecl *const )(const char *,UINT)' I think this is the error regarding the calling convention. Could somebody resolve this problem for me? Thanks in advance. Sanjay Khapre Software Developer
SanjaySMK wrote:
Could somebody resolve this problem for me?
It would help a lot if you provide some code (how you declared your function, the expected prototype, ...) :~
Cédric Moonen Software developer
Charting control [v1.5] OpenGL game tutorial in C++