title: How do I export class functions, but not the entire class in a DLL
body: <p>I have developed a Win32 DLL, providing the details below, and want to create a CLI/C++ wrapper for the functions Connnect and LogOut.</p>
  
  <p>I know that entire classes and functions can be exported from a DLL.</p>
  
  <pre><code>class CClientLib
  {
   public:
  CClientLib (void);
  // TODO: add your methods here.
  __declspec(dllexport) bool Connect(char* strAccountUID,char* strAccountPWD);
  __declspec(dllexport) void LogOut();
  
   private :
  
      Account::Ref UserAccount ;
  void set_ActiveAccount(Account::Ref act)
  {
     // Set the active account
  }
  
  Account::Ref get_ActiveAccount()
  {
    return UserAccount;
      }
  
  };
  </code></pre>
  
  <p>I want to have the class as the exported functions, Connect and LogOut, uses the function set / get.</p>
  
  <p>Is it possible only to export the functions Connect and LogOut, and not the entire class.</p>