SimConnect_WeatherSetModeTheme not working

SDK supports Prepar3D’s philosophy of an open development architecture and encourages third parties to bring new innovations with improved add-ons and training content.
Locked
User avatar
ronh991
Posts: 724
Joined: Sat Jan 19, 2013 1:46 am
Location: Ontario, Canada

Post by ronh991 »

I cannot get a weather theme to load. The requirement is to input a path to the theme. Either relative or full. Both do not work. The error is the file does not exist.
I have tried the following:

weather\themes\cfronts
C:\Program Files (x86)\Lockheed Martin\Prepar3D v2\weather\themes\cfronts
weather\themes\cfronts.wt
C:\Program Files (x86)\Lockheed Martin\Prepar3D v2\weather\themes\cfronts.wt

copied the weather folder to program data thinking a windows issue:
C:\ProgramData\Lockheed Martin\Prepar3D v2\themes\cfronts
C:\ProgramData\Lockheed Martin\Prepar3D v2\themes\cfronts.wt

code:
hr = SimConnect_WeatherSetModeTheme( hSimConnect, "C:\ProgramData\Lockheed Martin\Prepar3D v2\themes\cfronts");

Anyone confirm or show me what I did wrong.
Ron
ananda
Posts: 491
Joined: Tue Nov 26, 2013 11:40 am
Location: Harton Village, UK

Post by ananda »

Don't you need a double backslash in the string?

“C:\\ProgramData\\Lockheed Martin\\Prepar3D v2\\themes\\cfronts”
User avatar
ronh991
Posts: 724
Joined: Sat Jan 19, 2013 1:46 am
Location: Ontario, Canada

Post by ronh991 »

That was it thanks - keep forgetting about that.
Ron
Locked