Thread: creating .DLLs

  1. #1
    post it

    creating .DLLs

    I've written code that I've compiled into an .exe file just fine. Now I need to create a .dll that I can call from within other applications to do exactly the same thing.

    Using Dev-C++ 4.01, when I follow the wizard after clicking on File New Project DLL option, I insert filenames when prompted and files get created all over the place. I don't know how to hook this up to the code I've written. I just need to know, in plain English step-by-step, which of these files I need to edit and into which I can insert the code I've written (the MainDll.h? MainDll.cpp? DLLProjectFilename? DLLTestProjectFilename? ... I've tried almost all combinations) so that the final .dll file will run just like my .exe file.

    I assume there's is a simple 3+ step answer, and appreciate any responses.

  2. #2
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    There is plenty of info on DLLs at MSDN but they do expect you to be using visual c. So you may have to read the docs at msdn and then check thru your compilers helpfiles for any implementation specific details.
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :-

  3. #3
    Registered User
    Join Date
    Sep 2002
    GameTutorials has a very nice Using DLL's Tutorial .
    It was tested with VC++ though, So i'm not sure he it will work
    in your compiler.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Profiler Valgrind
    By afflictedd2 in forum C++ Programming
    Replies: 4
    Last Post: 07-18-2008, 09:38 AM
  2. Creating a rain effect...
    By Raigne in forum Game Programming
    Replies: 11
    Last Post: 12-04-2007, 05:30 PM
  3. Creating Custom Controls
    By Grayson_Peddie in forum C# Programming
    Replies: 1
    Last Post: 12-29-2003, 01:41 PM
  4. Creating .DLLs using Dev-C++ 4.01
    By first posting in forum C++ Programming
    Replies: 0
    Last Post: 03-09-2003, 01:29 PM
  5. problems creating a linked list
    By jamjar in forum C Programming
    Replies: 5
    Last Post: 10-23-2002, 05:50 AM