Jump to content
Sign in to follow this  
WarpD

Reading Aircraft.cfg File

Recommended Posts

>Did you solve your problem?Yes. Ed pointed out what should have been obvious in retrospect. If I find the hInstance for the calling .dll, I can easily obtain the absolute path to where the .dll was invoked......the current a/c's ..panel folder!Strip off the unneeded bits to end up with path the current a/c's aircraft.cfg. *:-*


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

GetModuleFileName was the 'secret'.It's a Windows thing. ;)


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

>GetModuleFileName was the 'secret'.>>It's a Windows thing. ;)As I said though, in retrospect it should have been obvious to me since I used that same 'secret' in my RMU855 gauge!!! :-lol


Fr. Bill    

AOPA Member: 07141481 AARP Member: 3209010556


     Avsim Board of Directors | Avsim Forums Moderator

Share this post


Link to post
Share on other sites

You can also get the path to the airfile, and hence the aircraft.cfg from SimConnect.


Andrew Wilson

sig_fslDeveloper.jpg

Share this post


Link to post
Share on other sites

>You can also get the path to the airfile, and hence the>aircraft.cfg from SimConnect. There is no "SimConnect" for FS2004.


Ed Wilson

Mindstar Aviation
My Playland - I69

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...