Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / February 2007

Tip: Looking for answers? Try searching our database.

error C4430: missing type specifier - int assumed. Note: C++ does not support default-int

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Bit Byte - 26 Feb 2007 15:16 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. 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.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.