Thread: DLL DevCPP won't take a min.....

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    11

    DLL DevCPP won't take a min.....

    Hello all,

    i'm looking for someone who has experience of making DLLs with DevCpp and getting them to work in a C++ application. I've been looking around on the net for information regarding this but i don't seem to be getting anywhere. I learn well by example and was wondering if someone in the know would be able to do the following:

    1 Create a DLL project in DevCpp and put a function in it(no matter how simple the function is).
    2 Create another application which uses this DLL and function.
    3 Post the code of the dll header and .cpp file and the .cpp file of the application.

    I'm sure this would take seconds if you know what you're doing but if you're like you'll be here/there forever.

    Thanks ......

  2. #2
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    VC++ has a wizard that does #1. Doesn't Dev-C++ have one?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  3. #3
    Registered User
    Join Date
    Nov 2007
    Posts
    11
    Hi,

    Yes DevC++ does have a wizard(project) for step 1 but i don't know how to declare the functions and implement the fiunctions properly. And then i don't know how to get the comlied dll working in a project.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Does DevCpp support .def files? They can be used in Visual Studio to export functions from a DLL. All you need is to link against the .lib file of your DLL and a header with those functions and any exe can use them. That second part is kinda standard stuff, what you do all the time when you use API.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. non-MFC DLL with MFC app question.
    By Kempelen in forum Windows Programming
    Replies: 10
    Last Post: 08-20-2008, 07:11 AM
  2. Ranged numbers
    By Desolation in forum Game Programming
    Replies: 8
    Last Post: 07-25-2006, 10:02 PM
  3. dll communicating between each other
    By cloudy in forum C++ Programming
    Replies: 5
    Last Post: 06-17-2005, 02:20 AM
  4. DLL and std::string woes!
    By Magos in forum C++ Programming
    Replies: 7
    Last Post: 09-08-2004, 12:34 PM
  5. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM