- Messages
- 180
- Country

Hi,
Im having problems compiling a FS Module for FS9/X, i had created a Win32 DLL project in VC++ 6, then i upgraded it to VC++ 2005. Because its a module for FS9 and FSX, i had exported the Linkage, and ImportTable (for FS9) in using "extern C __declspec(dllexport)", Also, i included the "SimConnect.h" (for FSX), and everything else. Then i compile, everything goes OK, i got no errors, when i run FS9, i got an error telling me that FS couldnt load the module....then.....LATER...modifying the code, i found that if i remove or dont #INCLUDE the "SimConnect.h" file, (removing all the SimConnect's dependent code...)...and compile, and run FS9, it loads SUCCESSFULLY! the module....***NOW HERE!...IS THE PROBLEM*** i want to include SIMCONNECT in the module because i want the same MODULE (DLL) to run for both FS9/X, ....does anyone had the same problem or is having the same problem?.......
i was maybe thinking in put somekind of CONDITIONAL statement (IF) at the beginning of the SIMCONNECT.H file, for evaluate the current FS version (using the LINKAGE.MODULEVERSION), so if it is FS9 (0x0900) it just **IGNORE** the content of the SIMCONNECT.H file, OR if it is FSX (0x1000) **READ** the content of the SIMCONNECT.H....................the problem, here is that i dont really know how to do this......if someone could tell me how, then the compatibility problem (of the module) between FS9 and FSX can be solved...
Best Regards,
Manuel Ambulo
Im having problems compiling a FS Module for FS9/X, i had created a Win32 DLL project in VC++ 6, then i upgraded it to VC++ 2005. Because its a module for FS9 and FSX, i had exported the Linkage, and ImportTable (for FS9) in using "extern C __declspec(dllexport)", Also, i included the "SimConnect.h" (for FSX), and everything else. Then i compile, everything goes OK, i got no errors, when i run FS9, i got an error telling me that FS couldnt load the module....then.....LATER...modifying the code, i found that if i remove or dont #INCLUDE the "SimConnect.h" file, (removing all the SimConnect's dependent code...)...and compile, and run FS9, it loads SUCCESSFULLY! the module....***NOW HERE!...IS THE PROBLEM*** i want to include SIMCONNECT in the module because i want the same MODULE (DLL) to run for both FS9/X, ....does anyone had the same problem or is having the same problem?.......
i was maybe thinking in put somekind of CONDITIONAL statement (IF) at the beginning of the SIMCONNECT.H file, for evaluate the current FS version (using the LINKAGE.MODULEVERSION), so if it is FS9 (0x0900) it just **IGNORE** the content of the SIMCONNECT.H file, OR if it is FSX (0x1000) **READ** the content of the SIMCONNECT.H....................the problem, here is that i dont really know how to do this......if someone could tell me how, then the compatibility problem (of the module) between FS9 and FSX can be solved...
Best Regards,
Manuel Ambulo


