1. Aerofly Homepage
  2. Forum
    1. Dashboard
    2. Unresolved Threads
  3. Blog
    1. Articles
  4. Dashboard
  5. Gallery
    1. Aerofly FS 4
    2. Aerofly FS Mobile
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Forum
  • Files
  • Pages
  • Gallery
  • Blog Articles
  • More Options
  1. IPACS Aerofly Forum
  2. Forum
  3. Aerofly FS 2 Flight Simulator ( PC Version / Mac OS )
  4. Developers - General and aircraft

SDK - DLL example

  • Jay 737
  • October 7, 2017 at 12:02 AM
1st Official Post
  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 7, 2017 at 12:02 AM
    • #1

    just a quick question..

    I found following line in the readme file of DLL example.

    Requirements:

    - You need Microsoft Visual Studio 2015 with Update 2

    Can I use latest Studio 2017 or do I need to stick with 2015 update2 ?

    Thx Jay

    Over and Out

    Jay

  • Jet-Pack (IPACS)
    Master of aircraft TMD
    Reactions Received
    10,734
    Points
    47,423
    Posts
    6,970
    Blog Articles
    88
    • October 7, 2017 at 8:16 AM
    • Official Post
    • #2

    I'm pretty sure 2017 should work as well. We developers are all on 17 now I think. But I'd wait from feedback from Torsten, I'll ask.

    Edit: yes that should work.

    Regards,

    Jan

    • Next Official Post
  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 7, 2017 at 10:25 AM
    • #3

    great, thanks..

    Over and Out

    Jay

  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 7, 2017 at 2:13 PM
    • #4

    right, here is another problem..

    first I need to say that "I'm not programmer" but I understand the concept and I do wanna learn more on this subject.

    I wanted to see what the external_dll_sample provided in SDK can do for me in therms of understanding how to extract and handle flight data so they can be used to feed force feedback devices.

    Now when I hit [Start Debugging] in VisualStudio 2017, I get this message:

    I have a clue it has something to do with "solution platforms" but I've tried many different settings with identical results..

    Could somebody explain please, in lame language, where's the origin of this issue?

    Jay

    Over and Out

    Jay

  • admin
    constexpr bool admin=true
    Reactions Received
    1,327
    Points
    6,085
    Posts
    943
    Files
    1
    • October 7, 2017 at 8:06 PM
    • Official Post
    • #5

    Take our original DLL Visual Studio 2015 project and open it with Visual Studio 2017, it will automatically convert it.

    I am sure you have some wrong options in your own project, e.g. it's set to 32 Bit DLL whereas we need 64 Bit DLL.

    • Previous Official Post
    • Next Official Post
  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 7, 2017 at 10:20 PM
    • #6

    by "original" you mean the one in your SDK right?

    Over and Out

    Jay

  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 7, 2017 at 10:23 PM
    • #7

    particularly this file..?

    aerofly_fs_2_external_dll_sample.sln

    Over and Out

    Jay

  • admin
    constexpr bool admin=true
    Reactions Received
    1,327
    Points
    6,085
    Posts
    943
    Files
    1
    • October 7, 2017 at 10:39 PM
    • Official Post
    • #8

    Yes, this is the solution file, it will be converted to VS 2017. Please do not change any of the C++ options.

    • Previous Official Post
    • Next Official Post
  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 8, 2017 at 12:59 AM
    • #9

    All right

    I have reset VS 2017 to default settings and tried again. Please let me know if this is the right procedure.

    - double click file aerofly_fs_2_external_dll_sample.sln.

    - retarget dialog pops up so I confirm OK with default settings as shown below


    - Build Solution, 1 succeeded, 0 failed


    - I hit Start debugging and here's the message


    - I didn't change any options yet, these are the default project properties


    Really appreciate your advice..

    Jay

    Over and Out

    Jay

  • admin
    constexpr bool admin=true
    Reactions Received
    1,327
    Points
    6,085
    Posts
    943
    Files
    1
    • October 8, 2017 at 2:04 PM
    • Official Post
    • #10

    You probably attempt to start the DLL right from your Visual Studio. This won't work, you need to execute Aerofly.

    Go to the Debugging settings in Visual Studio ( you see that in your last screenshot ) and specify the Aerofly executable as the 'Command'. Don't forget to set the 'Working directory' as well to the Aerofly binary folder.

    • Previous Official Post
  • Jay 737
    Intermediate
    Reactions Received
    188
    Points
    1,423
    Posts
    228
    • October 8, 2017 at 3:17 PM
    • #11

    Amazing.. thanks for that:thumbup:



    That will keep me happy examining for couple more hours before I'm back with more questions:D

    Over and Out

    Jay

  • isaedcas
    Beginner
    Points
    95
    Posts
    16
    • April 3, 2018 at 9:22 AM
    • #12

    Hi,

    i have a similar problem.

    i try to open the solution with Visual Studio 2017.

    But when i build the solution, there is one error (in french, sorry ;)

    Erreur C1083 Impossible d'ouvrir le fichier include : 'assert.h' : No such file or directory aerofly_fs_2_external_dll_sample d:\logiciels\aerofly2\work\tools2\aerofly_fs_2_sdk_tools_20171123\aerofly_fs_2_sdk_tools\external_dll\shared\input\tm_external_message.h 37

    Can you help me?

Similar Threads

  • tsc file: list_tmsimulator_startposition and list_tmsimulator_view_position

    • flightxtreme
    • March 7, 2018 at 4:42 PM
    • Developers - General and aircraft
  • Cultivating Venice - a missed approach

    • pmb
    • March 2, 2018 at 9:56 PM
    • Developers - General and aircraft
  • Any of you highly talented repainters interested in contributing the JT-A scheme for the Cessna 172 SP?

    • Jetjockey10
    • January 17, 2018 at 12:42 AM
    • Developers - General and aircraft
  • Video tutorial: runway design with AC3D

    • Rodeo
    • November 22, 2017 at 9:58 PM
    • Developers - General and aircraft
  • airspeed indicator in B-737

    • avallillo
    • November 29, 2017 at 6:26 PM
    • Developers - General and aircraft
  • Feature Request: Control Settings per aircraft

    • Mustang60348
    • October 24, 2017 at 6:25 PM
    • Developers - General and aircraft
  1. Privacy Policy
  2. Legal Notice
Powered by WoltLab Suite™ 6.1.8