• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

P3D v4 GDI+ and MAKE_STATIC macro

I'm working on an aircraft DLL and an associated aircraft that will need multiple GDI+ gauges, is there any way to have only one C++ driver/DLL (i.e. SDK.h and SDK.cpp to use the SDK example) yet have multiple GDI+ gauges specified? Or do I have to have one DLL for each gauge?
 

JB3DG

Resource contributor
You can indeed have multiple gauges. The MSDN GDI+ example which is uploaded in the resources section has multiple subgauges in it. Just remember to add all the sub gauge gauge headers to the GAUGESLINKAGE struct above the module_init function. You will also make one child class for each subgauge, or a separate gauge callback function declaration if it is invisible.
 
@JB3DG
sorry i might gonne hijiack this thread
do you have knowledges on DLLs module for FSX or P3D PDK ?
i need a sample to controll a simobject ( not user aircraft) animation and simconnect can't do this
i searched in the SDK PDK docs but nothing about simobject animation

thnx in advance :)
 

JB3DG

Resource contributor
@JB3DG
sorry i might gonne hijiack this thread
do you have knowledges on DLLs module for FSX or P3D PDK ?
i need a sample to controll a simobject ( not user aircraft) animation and simconnect can't do this
i searched in the SDK PDK docs but nothing about simobject animation

thnx in advance :)

If you have the P3D SDK you will have a number of samples of it. Also, if the simobject animation is using Simvars (not L vars), you can control that animation using SetDataOnSimObject. L vars are universal though, so what gets set on one object will apply to all objects that use it.
 

JB3DG

Resource contributor
Sim vars are created by the sim. (the A: vars). You would just reference them in the modeldef.xml.
 
i don't know from where to start :(
with simconnect i started with request / set data
Now for those DLLs i just can't start even I'm not really a C++ guy and the samples are too long :(
 
Top