Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

C Gauges: Header File error

Featured Replies

Hi!I've some strange problems with the .h file!When compiling, the compiler wrote that message:C:ProgrammeMicrosoft Visual StudioMyProjectsgeschwindigkeitgeschwindigkeit.h(24) : fatal error RC1004: unexpected end of file found#define BMP_BG 0x1000#define BMP_NEEDLE 0x1003 <-- the error line, the last line of the file!I already had that error some time ago. I just deleted some blanks which were behind the 0x1003 and it worked. But this time it doesn't work!It's quite a strange problem, because the .h file is written correctly, in my opinion!Regards,Harry :-)

Now I pressed five times ENTER, so that there are 5 new blank lines under the last line of the header file.I din't change anything else.Guess what happened! The gauge compiled!!!:-lolWhy must I play around with ENTER and blank lines? Regards,Harry (...a bit confused now:-hmmm)

But that's how it is, just do end any .h, .rc,.c file at least with one empty line at the bottom. Strange but true. I assume it is only really necessary for .rc's and .h's included from it, but better an extra line at the bottom then worry.Arne Bartels

Thanks for the answer!That's really strange, but if it will work this way...Regards,Harri :-)

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.