How make dll in in simple c\c++?

This is a discussion on How make dll in in simple c\c++? within the C++ Programming forums, part of the General Programming Boards category; I want to make dll library in c or c++. Please guide me, this is better if you explain in ...

  1. #1
    Registered User
    Join Date
    Jul 2004
    Posts
    1

    How make dll in in simple c\c++?

    I want to make dll library in c or c++. Please guide me, this is better if you explain in steps for making a dll file.
    Regards
    AWM

  2. #2
    Registered User
    Join Date
    Jul 2004
    Posts
    9
    Create an empty project.
    Under Application Settings / Application Type select create DLL.
    Select empty project.

    A dll needs a pure virtual interface to access your class and/or function headers to access your functions. As an example of the second:

    MyFunction.h
    void myfunction(void);

    MyFunction.cpp
    void myfunction(void)
    {
    /* do something */
    }

    Include both when you build the dll.

    Users will then import the .lib into their programs and include the .dll with the exe. Users will need the header file but not the c or cpp file.

  3. #3

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. make dll
    By koyboy in forum Windows Programming
    Replies: 15
    Last Post: 05-13-2008, 11:40 PM
  2. Make simple programs start over.
    By Cooker2007 in forum C++ Programming
    Replies: 7
    Last Post: 01-16-2007, 03:08 PM
  3. Replies: 1
    Last Post: 09-18-2005, 09:06 PM
  4. DLL compiling question
    By Noose in forum Windows Programming
    Replies: 2
    Last Post: 12-16-2004, 06:16 AM
  5. Using class with DLL
    By greg2 in forum C++ Programming
    Replies: 2
    Last Post: 09-12-2003, 05:24 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21