Jump to content
The simFlight Network Forums

Module creation using a C# Project

Recommended Posts


I made some progresses in the C example, but I have a doubt.

BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)


switch (fdwReason) {


hFSimWindow = FindWindow("FS98MAIN", NULL);

oldWndProc = (WNDPROC)SetWindowLong(hFSimWindow, GWL_WNDPROC, (LONG)FSimWindowProc);



return TRUE;


Does anyone knows how to refer the entry point on the C# DLL based on that code ?


Link to comment
Share on other sites

You can't load a C# based DLL inside of Flight Sim, it has no knowledge of things Managed/CLR. That's why the FSUIPC example of a loadable module is only in C, because it has to be a standard PE format DLL, not a managed one, in order to load inside FS.

The reason someone was able to do the same with Delphi is because it still generates standard PE format DLLs - you can basically use any langauge that generates standard PE format DLLs, heck back in FS95 & FS98 several of the standard FS modules were still written in assembler :->


Link to comment
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.

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.


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