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

Load a DLL upon simulator startup


I am trying to get a DLL to load upon MSFS startup based on this post

Here is the xml entry I add in exe.xml

    <Name>A name</Name>

I have verified that the file does indeed exist.

The DLL is meant to create a log file as soon as the DLLStart function is called. Since this file is not being created, I assume it is not loaded.
It should also start a socket, which is not started. That could be down to a programming issue, but it works on P3D and the fact that the log file is not created make me think that the socket not starting is due to the DLL not being loaded, and not an issue in the code.
I should also point out that the DLL depends on another one, which is alongside the one I load here. Should an entry be added for this one as well maybe ?

Am I doing something wrong?

Thanks !

In MSFS you can't just write to the drive, nor do you have network access like you would in FSX/P3D.


Resource contributor
As Ed says - that's one of the biggest gripes that many developers have with MSFS (and one of the reasons I have avoided developing for it so far). A possible solution to the logging problem is to make your dll export data in a SimConnect format and then capture/log the exported data with a standalone SimConnect module. I know this approach works because I do something similar to read and log all of the default P3D variables when debugging a project. As for the network connection; read the P3D SDK on that one and see if you can apply it to MSFS. No guarantees on that though!

Again, you may have to take a one-step-down-the-line approach where the actual network connection and data is only indirectly linked to MSFS (as in the logging above).