Results 1 to 3 of 3

Thread: Problems combining C++ Header with C example code

  1. #1

    Default Problems combining C++ Header with C example code


    my name is Matthias and I'm trying to build a little simplified version of a hardware ATR72 cockpit. I would like to switch LEDs on the panel in correlation to the status of the FS2004 panel system, so I need to read the data from the software (I'm using a commercial ATR72 add on aircraft).
    The good news is that the developer of that aircraft allowed me to use a C++ header file which defines all panel variables and was specially written to allow an access. The bad news is that I know a good amount of Delphi, but my C programming skills are very bad (just like my English ?!).
    I tried to combine the C++ Header file with some example programs from the FS2004 panel SDK and with fs2004menu (a small dll example which generates an entry in FS2004 main menu bar), compiled with Visual C 2008 Express, but those examples are written in C, and the ATR header file makes heavy use of the type 'bool', so it must be a C++ file.
    How can I bring it together ?
    Are there code examples in FS2004 programming in C++ ?
    I'm afraid without help or working example code I will never solve this problem ...


  2. #2


    Much as it pains me to admit this, but you will most likely find a C/C++ program who can help you faster at either FS-Developer ( or the AVSIM dedicated panel/gauge design forum.
    Bill Leaming
    Gauge Programming - 3d Modeling Military Visualizations Panels & Gauges Forum Moderator
    Flightsim Rig: Intel Core i7-2600K - 8GB DDR3 1333 - EVGA GTX770 4GB - Win7 64bit Home Premium
    Development Rig1: Intel Core i7-3770k - 16GB DDR3 - Dual Radeon HD7770 SLI 1GB - Win7 64bit Professional
    Development Rig2: Intel Core i7-860 - 8GB DDR3 Corsair - GeForce GTS240 1GB - Win7 64bit Home Premium
    NOTE: Unless explicitly stated in the post, everything written by my hand is MY opinion. I do NOT speak for any company, real or imagined...

  3. #3


    Thank you very much, I will try it.

Similar Threads

  1. Resample.exe = Image header is corrupt
    By Gouaill in forum Scenery Design
    Replies: 2
    Last Post: 07-26-2015, 02:27 PM
  2. Bad Zip Header Found
    By jjfan1 in forum FSX
    Replies: 2
    Last Post: 11-22-2011, 11:30 PM
  3. Example source code of C/C++ gauges for learning ?
    By teson1 in forum Panel & Gauge Design
    Replies: 9
    Last Post: 03-21-2011, 02:36 PM
  4. Changing header content
    By rmarstelle in forum FS2004
    Replies: 1
    Last Post: 11-11-2006, 01:19 PM
  5. Replies: 2
    Last Post: 09-17-2005, 02:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts