The following function pointer declarations used to compile without any
problems in VS7.1, now when I try to compile in VS8, I get a C4430
error. Anyone knows why, and how to fix it (without using pragma disable)?
//My header file ...
/* Prototypes for subscription callbacks */
typedef void (__stdcall *IntCallback)(const char*, const Scope, const int);
typedef void (__stdcall *DoubleCallback)(const char*, const Scope, const
double);
....
etc
Ben Voigt - 26 Feb 2007 16:29 GMT
> The following function pointer declarations used to compile without any
> problems in VS7.1, now when I try to compile in VS8, I get a C4430 error.
[quoted text clipped - 7 lines]
> typedef void (__stdcall *DoubleCallback)(const char*, const Scope, const
> double);
probably the type "Scope" is not declared, so the compiler thinks that Scope
is the variable name and that the type is missing.