title: Using lambdas in c++11 visualstudio11 with winapi
body: <p>Instead of </p>
  
  <pre><code>CreateThread(NULL, NULL, function, NULL, NULL, NULL);
  </code></pre>
  
  <p>I was interested in trying</p>
  
  <pre><code>CreateThread(NULL, NULL, [](LPTHREAD_START_ROUTINE){ int x = 0; return x;}, NULL, NULL, NULL);
  </code></pre>
  
  <p>I get ERROR: No suitable conversion function from lambda []int (LPTHREAD_START_ROUTINE)->int to LPTHREAD_START_ROUTINE exists.</p>