I developed the Win32 DLL by providing the details below and want to create a CLI / C ++ wrapper for the Connnect and LogOut functions.
I know that whole classes and functions can be exported from a DLL.
class CClientLib
{
public:
CClientLib (void);
__declspec(dllexport) bool Connect(char* strAccountUID,char* strAccountPWD);
__declspec(dllexport) void LogOut();
private :
Account::Ref UserAccount ;
void set_ActiveAccount(Account::Ref act)
{
}
Account::Ref get_ActiveAccount()
{
return UserAccount;
}
};
I want the class as exported functions, Connect and LogOut, to use the set / get function.
Is it possible to export only Connect and LogOut functions, and not the whole class.
source
share