Jump to content
Sign in to follow this  
Rocky

FSX/FSX-SE Moving Map Custom Window

Recommended Posts

Hello Experts,

I am working on a moving map module integrated in FSX as a module because it reads the FSX internal database to get the airport/navaid information.

I have create a C++ DLL module that creates a window using the "CreateWindow" function and draws the map in this window using GDI+. It works perfect when FSX runs in windowed mode, but not when it is in full screen mode. When I try this, the image freezes in FSX and if I run the Microsoft DebugView, I see this error repeating again and again:

[12128] DXGI Error 00190e1e: (10484@473817843) at 6B124CEB - Occluder wnd ('Code' is HWND):FSMAPWINDOW
[12128] DXGI Error 087a0001: (10484@473817812) at 6B15CF78 - Non-zero return value
[12128] DXGI Error 087a0001: (10484@473817812) at 6B12F220 - Non-zero return value
[12128] DXGI Error 087a0001: (10484@473817812) at 6B12EADA - Non-zero return value
[12128] DXGI Error 087a0001: (10484@473817812) at 6B124D45 - Non-zero return value

I understand there is a conflict between DirectX and my GDI+ based wondow, but I don't know how to fix this. I tried to use "CreateWindowEx" instead of "CreateWindow" but it didn't change anything.

To be perfectly clear, I must say this has worked in the past. Some months ago, I could pop up my FS Map window in FSX in full screen mode. The FSX image was freezing but it was working. And now it doesn't work any more even though I didn't change anything in my code, probably because of a Windows update that changed something in DX.

Any idea on how I can make this work?
Any help is greatly welcome.

Thank you,
Eric

Share this post


Link to post
Share on other sites

I found out that it was working in the past with DirectX9, but not anymore as soon as DX10 or higher is used. This is why I used SimConnect_SetSystemState to set FSX in dialog mode and it now works.

The problem I have now is that FSX sound stops as soon as my moving map window pops up, because the main FSX window does not have focus. If you know a way to avoid this and keep FSX noisy...

 

Eric

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...