September 26, 200817 yr Moderator >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
September 26, 200817 yr Author Commercial Member GetModuleFileName was the 'secret'.It's a Windows thing. ;) Ed Wilson Mindstar AviationMy Playland - I69
September 26, 200817 yr Moderator >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
September 29, 200817 yr Commercial Member You can also get the path to the airfile, and hence the aircraft.cfg from SimConnect. Andrew Wilson
September 29, 200817 yr Author Commercial Member >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 AviationMy Playland - I69
Create an account or sign in to comment