Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3029

Cancelling _declspec(dllexport)

$
0
0
Just for simplification...

Code:

class _declspec(dllexport) Whatever
{
public:
    int some_func1 ();
    int some_func2 ();
    int some_func3 ();

    [...]

    int some_func20 ();

private:
    int some_var;
};

Using _declspec(dllexport) in the above way provides a convenient way to export all the functions in a class without needing to export them all individually but IIUC it exports everything - even some_var

Is there some convenient way to export a class's functions but to exclude its member variables?

Viewing all articles
Browse latest Browse all 3029

Latest Images

Trending Articles



Latest Images