title: CUDA integration with Windows Forms/WPF
body: <p>Currently I have a console application, which is fine for me, but not for others. I need to create a GUI. I am developing for Windows 7 using Visual Studio 2010 and CUDA 3.2 build customizations.</p>
  
  <p>Can I simply create a GUI in Windows Forms / WPF and then just state an extern "C" function, that will be resolved to a function calling a CUDA kernel? I tried to do so just now and I had a lot of compilation errors, including some CLR stuff. After a quick googling I have the impression, that it isn't as simple as it seemed.</p>
  
  <p><strong>-- edit</strong></p>
  
  <p>The generalized question is: how to include CUDA code in C++ Windows Forms / WPF application?</p>