__declspec(dllexport)

This is a discussion on __declspec(dllexport) within the C++ Programming forums, part of the General Programming Boards category; Do I really need to put this in all of the function I want to be exported? Is there any ...

  1. #1
    Registered User
    Join Date
    May 2009
    Posts
    64

    __declspec(dllexport)

    Do I really need to put this in all of the function I want to be exported? Is there any neat way to do this?

    Thanks

  2. #2
    Registered User
    Join Date
    Apr 2010
    Posts
    5
    Code:
    #define DLLEXPORT __declspec(dllexport)
    That will help to make it more neat and tidy.

    Then use the following for all functions:
    Code:
    DLLEXPORT double function(void)

Popular pages Recent additions subscribe to a feed

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