title: What is the default calling convention for exported functions (VS2008)?
body: <p>Given the following C++ code which doesn't mention a calling convention in the function declaration, what will the calling convention be for the exported function <code>Exported</code>? My guess would be a default of cdecl.</p>
  
  <pre><code>extern "C"
  {
    __declspec (dllexport) bool Exported(int parm);
  }
  </code></pre>
  
  <p>I'm calling this function from managed code, using <code>LoadLibrary</code>, <code>GetProcAddress</code>, and <code>Marshal.GetDelegateForFunctionPointer</code>. I can decorate my delegate definition with different values of the <code>UnmanagedFunctionPointer</code> attribute and they all <em>seem</em> to work.</p>