title: visual studio Dll and Matlab
body: <p>I am trying to build a dll with visual studio so I can use it in matlab ...
  I tried thausand codes with no solution !!! I am working on matlab 2013(32and64) and VS2010 !
  I tried for example to write the code this way ...</p>
  
  <pre><code>        //The header
  
      #ifndef SIMPLEH_H
      #define SIMPLEH_H
      #ifdef  __cplusplus
      extern "C" {
      int sq(int x);  
      #endif
      #ifdef  __cplusplus
      }
      #endif
      #endif
  
  //the Func(example)
  
  #include "SimpleH.h"
  int sq(int x)
  {
  return (x*x);
  }
  </code></pre>
  
  <p>visual studio Build it and make th dll file but matlab always doesn't see the function ...
  What should I do /* I am really stucked :(  */
  Thanks in advance ...</p>