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

FSX Adding a menu in FSX..

Messages
64
Country
france
Hello,

I'm a real newbie concerning Simconnect, but I've developed an application (Delphi XE2) for FSX.
I would like adding a menu in FSX which just launch this application.
Could you help me to do that?

Thanks

Best Regards
Pierre
 
Merci Patrick,

Le problème est que ne dispose que de Delphi XE2 et ne peux compiler cette dll.

Désolé pour mon peu de connaissance en la matière.

Amicalement
Pierre
 
I supppose you can compile it with Visual Studio Express.
It's a free download from Microsoft.
 
Ok, I've dowloaded and installed Visual C++ 2010 express.

I've compiled the dll with notepad as program to open.
I've includued the dll in FSX but it doesn't work.

Thanks for help

Cheers
Pierre
 
Last edited:
Sorry, I wanted to send this as a PM as it is not in english, but I missed it.

Continuons en français,

de zip le fichier StartDll.zip et ouvre le répertoire obtenu.

Click le fichier StartDll.vcxproj. Normalement, cela devrait ouvrir Visual studio et créer le projet.

Si tu click sur F7, cela doit lancer une compilation => vérifie que la compilation s'est normalement déroulée.

Affiche l'explorateur de solution s'il n'est pas déjà ouvert dans une fenêtre de VS.

Click sur StartDll pour voir la liste des fichiers.
Ouvre le fichier Startdll.cpp.
En ligne 50, il y a un literal qui contient l'adresse du fichier exécutable, depuis le Program Files (x86). Le \0 à la fin du literal doit être conservé, il marque la fin de la chaine de caractère.
Si ton fichier exécutable n'est pas dans le Program Files. il faut modifier un peu cela : par exemple, indiquer le chemin complet dans pg[] et supprimer la concaténation en modifiant la ligne 56 ainsi.
::CreateProcess(NULL, pg, NULL, NULL, FALSE,

Si problème, n'hésite pas à me contacter. Si tu ne sais pas installer une dll dans FSX, idem.
 
Last edited:
Grand merci à toi Patrick,

J'ai réussi à ajouter la dll qui se nomme "HarperickStart.dll" au lieu de Start.dll à la compilation.
Le menu est bien présent dans FSX après avoir copié la dll dans le dossier principal de FSX et ajouté:

<Name>CPS</Name>
<Disabled>False</Disabled>
<ManualLoad>False</ManualLoad>
<Path>HarperickStart.dll</Path>
</Launch.Addon>

Au fichier dll.xml.

Je n'ai plus qu'à donner le bon chemin vers mon appli et reviens te tenir informé de mes progrès.

Merci encore

Amicalement
Pierre ;)
 
Re,

Un clic sur le menu de fsx n'ouvre pas mon appli.
Voici la partie de dll modifiée:
Code:
TCHAR szFolderPath[MAX_PATH];
					hr = SHGetFolderPath(NULL, CSIDL_PROGRAM_FILES, NULL, SHGFP_TYPE_CURRENT, 
						szFolderPath);

					//****** Insert here the path to the prog you want to exec **************

					TCHAR pg[] =  L"D:\Program Files (x86)\Concorde Performance System\CPS.EXE\0" ;

					// Concat path + program name
					wcscat(szFolderPath, pg) ;

					::CreateProcess(NULL, pg, NULL, NULL, FALSE, 
						NORMAL_PRIORITY_CLASS, NULL, NULL, &si, &pi) ;

					break;

Peux-tu me dire où est mon erreur?

Merci beaucoup.

Pierre
 
Yes, en C++, il faut doubler les \ à l'intérieur d'un litéral. Soit
L"D:\\Program Files (x86)\\Concorde Performance System\\CPS.EXE\0" ;

Attention, le dernier \ dans \0 n'est pas doublé, lui.
 
Déjà de retour pour te remercier très sincèrement.
Mon appli va faire un grand pas en avant grâce à toi.
Le programme se lance parfaitement.

Encore tous mes remerciements.

Bien cordialement
Pierre ;)
 
Last edited:
managed code add-on menu

Hi,

Is it possible to add a C# managed code dll to add-on menu or just C++.
 
Is it possible to add a C# managed code dll to add-on menu or just C++.

I don't think you can add a dll in managed code to FSX because FSX is not written in managed code.

But you can use this little C++ dll to start a managed code .exe.
 
Back
Top