Menu

Creating apps that use .DLLs?

2002-12-31
2012-09-26
  • James Yates, IV

    James Yates, IV - 2002-12-31

    How exactly does a program use a function that is in another DLL? What are the steps? Ive created the DLL project and the windows project, and the windows project includes the header file from the DLL. When I build the windows project, the linker gives me external symbol errors. DO I have to add something to my windows project? Is there some kind of guide that will explain this? Has anyone else developed a program that uses a function that is in a dll? If so, how?

     
    • Anonymous

      Anonymous - 2002-12-31

      When you build a DLL, you should have two output files, a .dll and a small static library (.a or .lib). Link your code with the static library. The static library does not contain the executable code, but simply resolves the references in your executable. At runtime, Windows links in the DLL to provide the executable code.

       
    • Patrick Ogay

      Patrick Ogay - 2003-01-01

      I wrote a program and now, instead of delivering all DLL's,  I wanted to deliver one module.

      I tried static library and the output was a myPrgramm.a
      Acctually I like to link all things to my myProgramm.exe
      It's not evident to me...

      Patrick

       
    • Anonymous

      Anonymous - 2003-01-04

      Hi, I'd like to have an example of a dll created with Dev-C, and a program using it. It's just that I have the code for a dll but can't compile it using Dev-C, but it compiles in Symantec c compiler.

       

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.