Jump to content
The simFlight Network Forums

Recommended Posts

Hello,

I create program for Flight Simulator. I whould like to run this my soft in the FS main windows. But i can't do that, can You say me whats is the method to running own application in the FS windows ? example: SquawkBox, FSUIPC.

...and second question:

How i can add menu to my program in FS->modules . OK, i now, maybe must create and put in the correct folder the DLL file. But what is the procedure to create a FS compactybible modules ?

Please help.

Link to post
Share on other sites
I create program for Flight Simulator. I whould like to run this my soft in the FS main windows. But i can't do that, can You say me whats is the method to running own application in the FS windows ? example: SquawkBox, FSUIPC.

FSUIPC doesn't "run in FS main Windows". I don't know Squawkbox. The only program I've written whch does display a window obver FS windows is AdvDisplay, and even that is not possible in full screen mode on some video cards -- the way it is going, it won't be possible on any video cards in full screen mode in future. The only way to guarantee space on the FS window looks likely to be via Gauge programming.

If all you want to do is display a window in front of FS's window, use the "Foreground" or "topmost" type styles. But you have to run FS in Windowed mode.

...and second question:

How i can add menu to my program in FS->modules .

FSUIPC provides a facility to add an entry to the Modules menu entry and detect when it is used, even across a Network via WideFS. It is described in the FSUIPC SDK.

OK, i now, maybe must create and put in the correct folder the DLL file. But what is the procedure to create a FS compactybible modules ?

There is no specific method for doing this, it is not documented. You have to hack into FS to find such things out. Why would you want to? It won't help display windows over FS. I suggest you look at making a Gauge.

Regards,

Pete

Link to post
Share on other sites
the way it is going, it won't be possible on any video cards in full screen mode in future.

Sorry to jump in. That's one of the things that I'm wondering about for some time. I never realized how to do it, been looking around Direct-X full screen mode and never got that right maybe the problem is that I'm looking in DX8 SDK not DX7.

Best

José

Link to post
Share on other sites
That's one of the things that I'm wondering about for some time. I never realized how to do it, been looking around Direct-X full screen mode and never got that right maybe the problem is that I'm looking in DX8 SDK not DX7.

I've not looked at any variety of Direct3D. I don't know if you can actually "share" full screen mode with some other process or thread. I know you can with DirectSound, but that wasn't easy either (Esound actually uses DirectSound). Maybe there's a way -- but it is certainly something I won't have time to look at till I've sorted all the main things out.

If you do find a way, please keep us informed!

Regards,

Pete

Link to post
Share on other sites
FSUIPC provides a facility to add an entry to the Modules menu entry and detect when it is used, even across a Network via WideFS. It is described in the FSUIPC SDK.

Right, thanks.

Look at my attachment. This is Dream Fleet, Eurowings and PIC FLight Management Computer. This FMC is always running on top. When I start this in FS then it still show on top in the FS window and is visible. My application's is running on top but only when FS is running in Window Mode... :( In the full screen with another resolution of my desktop my programs are not visible... There is something method to do that with my application's ?

post-1956-128688945325_thumb.jpg

Link to post
Share on other sites
As far as I remember the Dreamfleet FMC is a separate program, not a gauge or module or anything running within FS....

Okayin that case they know how to display windows on top of a full screen FS. Others can find out too. (Can they let me know how when they do, please?)

But FS9maybe that's another matter. I wonder what they will do then?

Regards,

Pete

Link to post
Share on other sites

Hi

I managed to have some time and look to the DX7 SDK there is a sample called fswindow that does just what you want.

The problem is that the sample creates a surface (fancy name for a linear area of display memory), I tried to instead enumerate the surfaces and see if I can get FS2002 surface but it didn't enumerate. The main problem seems to be "how to access another process surface"

I don't agree completely with Pete regarding FS2004 if the supported DX version will be DX9 and if the DX7 methods are compatible I think that the applications will work. I hope since I like DF734 a lot. :)

Best

José

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.