Combining DLLs

Discussion in 'Basic4ppc Wishlist' started by Cableguy, May 24, 2007.

  1. Cableguy

    Cableguy Expert Licensed User

    I don't know if this is already possible but it would be great to combine two or more DLLs into a single one...
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    It is possible, but the combined dll will take longer as it will load all the libraries even if you require just a few them.
     
  3. Cableguy

    Cableguy Expert Licensed User

    I was thinking on the simple DLL like scrolbar and clickable label, and a few others...How can we combine them? using the binary DLL?
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    It is not possible without the source code.
    I meant that I can create a combined dll.
    However, using the SetupBuilder you can create a single file package.
     
  5. lairdre

    lairdre Member Licensed User

    DLLs and WM5

    If you build a big project or a project with many dlls it would be a good idea to combine them. Each dll under Windows Mobile 5 uses 64K reguardless of size. If you use two 10K dlls, they take up 128K of space. WM5 is notorious for running out of memory and this is the main reason that you run out of VM. When you have other process all doing the same thing you run out of VM very quickly. I work in the PPC world and many developers create a solution by combining multiple executiables. This is, in many cases is better then creating one application with alot of dlls. When you spawn a new application to do some additional work, it starts in it is own process space. The trick then is having them communicate and there are several tricks that can be use such as shared registry keys or INI files. The problem with VM in Pocket PC will not be totally solved until PPC version 7, which is still rather undefined.

    Ron
     
  6. Erel

    Erel Administrator Staff Member Licensed User

    All the dlls run in the same process.
    It is not like running several applications.
     
Loading...