0

ermm...this code i took from here >> http://tutplusplus.blogspot.com/2011/04/c-tutorial-create-dll-in-vc-20102008.html

below is the code for the header file..

namespace nmspace
{
 class myclass
 {
 public:
  static __declspec(dllexport) void Crap();
 };
}

my ques is.....if i have a more than one function that need to be call...soo i can i put it like below:-

namespace nmspace
{
 class myclass
 {
 public:
  static __declspec(dllexport) void Crap();
  static __declspec(dllexport) void Crap1();
  static __declspec(dllexport) void Crap2();
  static __declspec(dllexport) void Crap3();
 };
}

above is only my example...i have more than one function that need to be call...soo...is the above is the right way to do it...

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by linabeb
0

You can export the entire class without specifying individual methods like below code snippet. For more thorough explaination see this link

class __declspec(dllexport) Derived :
    public Base
{
    ...

};

Edited by Ancient Dragon

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.