Jak wyeksportować funkcje klasy, ale nie całą klasę w bibliotece DLL

Opracowałem bibliotekę Win32 DLL, podając szczegóły poniżej, i chcę utworzyć opakowanie CLI / C ++ dla funkcji Connnect i LogOut.

Wiem, że całe klasy i funkcje mogą być eksportowane z biblioteki DLL.

<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>

Chcę mieć klasę jako funkcje eksportowane, Connect i LogOut, używa funkcji set / get.

Czy można wyeksportować funkcje Connect i LogOut, a nie całą klasę.

questionAnswers(3)

yourAnswerToTheQuestion