title: Developing mixed C++ and C++/CLI for CGI and WPF
body: <p>This is related to <a href="https://stackoverflow.com/questions/6362434/wrapping-a-c-wpf-gui-around-c-cli-around-native-c">this question</a>, but given the direction of the answers, I figured it would be better to ask this question separately.</p>
  
  <p>I need to develop a class library that can be both used in CGI (long story, sigh) and referenced by c#. Since both deployments must be able to be updated simultaneously, I'm having a lot of trouble figuring out how to work the CLI/native c++ interaction.</p>
  
  <p>Since I have no control over the server deployment environment, all the code exposed to it has to be native, which doesn't work for WPF. As in the related question, I'm not looking for anyone to do my work for me, just to point me in the right direction.</p>
  
  <p>I've looked into <a href="http://msdn.microsoft.com/en-us/library/kew41ycz(v=VS.100).aspx" rel="nofollow noreferrer">COM Interop</a>, but can't find a clear, simple example.</p>