Results 1 to 5 of 5
Thread: Reading Config File
-
03-16-2017, 09:22 AM #1
- Join Date
- Apr 2012
- Location
- Netherlands
- Posts
- 24
Reading Config File
Hello,
I have some difficulties with starting up a compiled pascal script (the executable).
Every time I want to start a script, I first have to initiate the udp port (say 1027) in the IDE.
After that I can start the script.
I think it has to do with the fact that the generic executables from Sismo, all have a config file.
So my question is, how can I make my executable read a config file ????????
Kind regards
Jedeen
-
03-17-2017, 06:05 AM #2
- Join Date
- Dec 2010
- Location
- Jerez
- Posts
- 58
Re: Reading Config File
Hello Jedeen,
Please verify if the configuration file you have is a config.ini and not a config.ini.txt
You you want to use the .ini format, go to the downloads section on our website and download any script; modify this and save it with the code you want.
The function which calls config.ini is the one which is shown in the image I have attached.
Another thing, the config.ini must be in the same folder as the script you are running.
Regards,
Thomas Lee, Sismo Soluciones
-
03-17-2017, 08:34 AM #3
- Join Date
- Apr 2012
- Location
- Netherlands
- Posts
- 24
Re: Reading Config File
Hello Thomas,
are you kidding ?????
The files in your download section are only executable's !!!!! no scripts.
Can you send me a PM with that part from the script, dealing with the "ReadIniFile(........)" instruction.
I can't find anything in the help files regarding that instruction.
Thanks in advance
Regards
Jedeen
BTW: the script for the MCP and EFIS for XPlane11 is functioning.
I am now working on the mip.....
-
03-20-2017, 06:05 AM #4
- Join Date
- Dec 2010
- Location
- Jerez
- Posts
- 58
Re: Reading Config File
Hi Jedeen,
I have sent you an e-mail with further details.
Thomas
-
03-21-2017, 10:43 AM #5
- Join Date
- Apr 2012
- Location
- Netherlands
- Posts
- 24
Re: Reading Config File
Thank You Thomas
Looking for Fun? Connect with Women Seeking Casual Encounters in Your Town
JH startup on Client PC