I am currently learning VC++. I have created an application that has functionality to block/allow IP addresses and I would like to expose this functionality to a C# application.
I have defined the following members in my header file, which reference methods in my .cpp file (bare with me if that's obvious, as this is my second day of C++) which need to be accessible outside my application.
public:
// Constructor.
ZizFilter();
// Destructor.
~ZizFilter();
BOOL StartFirewall();
BOOL StopFirewall();
BOOL AddIPAddressToBlockedList(char* IP)
BOOL RemoveIPAddressFromBlockedList(char* IP)
BOOL BlockAll(char* tunnelAddress);
BOOL UnblockAll();
I understand the C# Interop side and how to consume exposed assembly methods, but I don't know how to get my C++ application to publically expose the methods.