title: How do I expose a C++ method to my C# application?
body: <p>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.</p>
  
  <p>I have defined the following members in my header file, which reference methods in my .cpp file which need to be accessible outside my application.</p>
  
  <pre><code>public:
  
  // Constructor.
  ZizFilter();
  
  // Destructor.
  ~ZizFilter();
  
  BOOL StartFirewall();
  BOOL StopFirewall();
  
  BOOL AddIPAddressToBlockedList(char* IP)
  BOOL RemoveIPAddressFromBlockedList(char* IP)
  
  BOOL BlockAll(char* tunnelAddress);
  BOOL UnblockAll();
  </code></pre>
  
  <p>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 publicly expose the methods.</p>