Jump to content
The simFlight Network Forums

Incorporate FSUIPC.DLL in the executable file


Marco Milesi

Recommended Posts

See the following post for how to merge the DLL and your exe. Note however that this is for the normal linking situation where you just add a reference to the DLL file on the disk. I don't know if it will work if you've added the DLL as a resource.

 

http://forum.simflight.com/topic/78233-embed-fsuipcclientdll-in-exe/

 

Paul

Link to comment
Share on other sites

Thanks Paul but i have this error:

 

Checking to see that all of the input assemblies have a compatible PeKind.
DFYFlightCenter.PeKind = ILonly, Requires32bits, Prefers32bits
FSUIPCClient.PeKind = ILonly, Requires32bits
The assembly 'FSUIPCClient' has a value for its PeKind flag, 'ILonly, Requires32bits' that is not compatible with 'ILonly, Requires32bits, Prefers32bits'.
An exception occurred during merging:
ILMerge.Merge: The assembly 'FSUIPCClient' has a value for its PeKind flag, 'ILonly, Requires32bits' that is not compatible with 'ILonly, Requires32bits, Prefers32bits'.
   in ILMerging.ILMerge.Merge()
   in ILMerging.ILMerge.Main(String[] args)
 
Marco
Link to comment
Share on other sites

Your DFYFlightCenter.exe is being compile with the 'Prefer 32 Bit' option ticked. This needs to be unticked and the 'target CPU' or 'platform target' set to x86.

 

You can find these options in the properties window of the project, on the 'Build' (C#) or 'Compile' (VB) tab.

 

Paul

Link to comment
Share on other sites

  • 3 months later...

I use this in a .bat file:

 

"C:\Program Files\Microsoft\ILMerge\ilmerge.exe" infile.exe FSUIPCClient.dll MySql.Data.dll /out:fileout.exe /target:winexe /targetplatform:v4 /log:mergelog.log /ndebug

 

This embed both FSUIPC and MYSQL DLL files into one .EXE file.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.