- Messages
- 6,644
- Country

Hi all.
I have a conversion of the SimConnect.h file that seems to work with Delphi.
I've used it with Delphi7 and the new win32 Turbo Delphi Explorer ( FREE ):
http://www.turboexplorer.com/mirror
(Note: you cannot have both Turbo Delphi Explorer and Turbo C++ Explorer installed at the same time... use one or the other.)
A test file that includes all the needed support files here:
http://webpages.charter.net/ludowr/DelphiOpenClose.zip
Included in the zip is a MANIFEST file, a RES file and an RC file, along with SimConnect_4.pas ( the H file conversion ).
The above four files must be in the project's base folder so the compiler can find them. OpenClose.dpr is the actual program. The code is pretty simple.
The compiled OpenClose.exe is a native win32 file that will find the SimConnect.dll on your computer... so it is truly "stand-alone". No further playing around with the manifest file, etc...
It needs no runtime libraries, no .NET, and can be placed anywhere on your computer.
What OpenClose.exe does is simply open a connection to FSX via SimConnect, and then close it. It's a command-line program, so run it from a command window ( CMD.exe ).
SimConnect_4.pas is my 4th attempt to get this thing working... I'm sure it has errors, but we have a start. If anyone else can improve it, feel free to post it here for testing! Hopefully within a month or two, we'll have a solid version.
So, we now have SimConnect working in the Delphi environment... lots of fun for RAD Windows form developers, and programmers that like Delphi.
Dick
I have a conversion of the SimConnect.h file that seems to work with Delphi.
I've used it with Delphi7 and the new win32 Turbo Delphi Explorer ( FREE ):
http://www.turboexplorer.com/mirror
(Note: you cannot have both Turbo Delphi Explorer and Turbo C++ Explorer installed at the same time... use one or the other.)
A test file that includes all the needed support files here:
http://webpages.charter.net/ludowr/DelphiOpenClose.zip
Included in the zip is a MANIFEST file, a RES file and an RC file, along with SimConnect_4.pas ( the H file conversion ).
The above four files must be in the project's base folder so the compiler can find them. OpenClose.dpr is the actual program. The code is pretty simple.
The compiled OpenClose.exe is a native win32 file that will find the SimConnect.dll on your computer... so it is truly "stand-alone". No further playing around with the manifest file, etc...
What OpenClose.exe does is simply open a connection to FSX via SimConnect, and then close it. It's a command-line program, so run it from a command window ( CMD.exe ).
SimConnect_4.pas is my 4th attempt to get this thing working... I'm sure it has errors, but we have a start. If anyone else can improve it, feel free to post it here for testing! Hopefully within a month or two, we'll have a solid version.
So, we now have SimConnect working in the Delphi environment... lots of fun for RAD Windows form developers, and programmers that like Delphi.
Dick

