Its been a few days since I started working on PDK IWeatherSystem service. I've followed the other samples to learn how to Query a service and use it.
I'm able to query the service successfully using the following line.
Code: Select all
CComPtr<IWeatherSystemV430> m_spWeatherSystem;
PdkServices->GetPdk()->QueryService(SID_WeatherSystem, IID_WeatherSystem, (void**)&m_spWeatherSystem);
Code: Select all
m_spWeatherSystem->SetMetarData(metar String)
At first, it applied the weather when I built the dll. But when I did the same for the second time, It didn't work.
I tried other functions as well but all of them return false. There's no error log as well. Just the function returning False everytime.
Note: I can remember during my R&D on this a few weeks back, SetMetarData was working fine. It's just a random behavior I think. Sometimes it works, sometimes it won't.
Can someone from Lockheed Martin take a look at this issue? Am I the only one facing the problem or others have also run into this one. Is this a SDK issue or something I need to check at my application side?
Thank you very much for your time.