Home » Developing U++ » U++ Developers corner » Executable as DLL
Re: Executable as DLL [message #31451 is a reply to message #31449] |
Fri, 04 March 2011 06:36 |
Novo
Messages: 1358 Registered: December 2006
|
Ultimate Contributor |
|
|
mirek wrote on Thu, 03 March 2011 10:55 | How is this different from linking with DLL flag?
|
If you are linking a package with DLL flag you will get a DLL.
If you want to call functions from UPP in your DLL you need to link your DLL against UPP packages.
If you want to use UPP code in both application and DLL you need to link both application and DLL against UPP packages. In this case you will get duplicated code, two different memory allocators, e.t.c.
If you want to share UPP code between app and DLL, you will need to compile UPP itself as DLL and link against this DLL, what you do not want to do.
What I'm proposing is to use app as DLL because UPP code is already in there. You just need to export it.
Am I wrong?
Regards,
Novo
|
|
|
Goto Forum:
Current Time: Sun May 12 02:26:55 CEST 2024
Total time taken to generate the page: 0.02141 seconds
|