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.

GDI+ Compilation Error

Featured Replies

  • Commercial Member

Dear gauge designers, I am having the problem compiling the files from fs2k2sdkwithgdi+.zip They are GDI Plus, so I have downloaded the Microsoft Platform SDK. Compiling a standard GDI+ application works, but not the B747 GDI+ gauge. I get the below errors. Yes, I have the updated gauges.h from Arne Bartels (I got it from sd2gau14.zip) I did not modify the file "GdiplusEnums.h" The warning regarding to dim appears occasionaly. Below are the errors. Any help would be greatly appreciated.C:Program FilesMicrosoft SDKincludeGdiplusEnums.h(28) : error C2146: syntax error : missing ';' before identifier 'GraphicsState'C:Program FilesMicrosoft SDKincludeGdiplusEnums.h(28) : fatal error C1004: unexpected end of file found744.cppC:Documents and SettingsTiberiuDesktopfs2k2sdkwithgdi+744.pfd.cpp(78) : warning C4101: 'dim' : unreferenced local variableError executing cl.exe.Sincerely,Tiberiu Brasov

It is very likely that you forgot a ";" somwhere after "GraphicsState", the other errors can be induced by this.Arne Bartels

  • Commercial Member

Arne, Thank you very much for your help. It is greatly appreciated. Unfortunately I have a ";" after "GraphicsState" This is what it looks like://--------------------------------------------------------------------------// Graphics and Container State cookies//--------------------------------------------------------------------------typedef UINT GraphicsState; //and the error is pointing to here!typedef UINT GraphicsContainer;Sincerely,Tiberiu Brasov

It is very unlikely that errors occur in SDK headers. I also got such ones but it is 99.9% certain that the error must be somewhere else in *your* code.

  • Commercial Member

Arne, Again I thank you very much for your help. Unfortunately I did not solve this problem. I am interested in compining a GDI+ code, and to see how it works in FS. If I remember, you upploaded an example a while ago. If you did, and if it was GDI+, could you please uppload it for me? Thank you in advance.P.S: The code that I wanted to compile was downloaded from avsim.com filename fs2k2sdkwithgdi+.zip maybe I should e-mail the author.Sincerely,Tiberiu Brasov

where did you find the fs2k2sdkwithgdi+.zip ? I did a filelibrary search on different sites, but couldn't find this file.

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.