Menu

Dll - Which of them load?

2003-01-05
2012-09-26
  • Ondrej Majerech

    Ondrej Majerech - 2003-01-05

    I`m trying to write an application which loads DLL based on user actions (eg. skins). But how can I do it? I must link a static library with my app, but at the moment of compilation I don`t know which of them user selects?

     
    • upcase

      upcase - 2003-01-05

      Hi!
      There's another way to load DLLs at runtime using the Win API. Search the API for LoadLibrary or LoadLibraryEx.

       
    • Ondrej Majerech

      Ondrej Majerech - 2003-01-05

      I thought, that if I load DLL using LoadLibrary (Ex) I still need link with that static lib (.a), don`t I?

       
    • Patrick Ogay

      Patrick Ogay - 2003-01-05

      The winAPI32.hlp is not quite clear for me.
      It's often the problem, that DLL's are loaded automaticly *bevor* program execution.
      Is there a (linking) option to prevent loading DLL's at the start of the program? the references have to be solved anyway at compiletime?

      For example I have a GTK+ program, but if I run it without GUI, I'd like to run the program without the  GUI-DLL's...

      Patrick

      P.S.
      I made a lot of research, but I didn't find a good link, which explains that problem exactly.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.