title: Taking input parameter in C++ Win32 console application
body: <p>I generated C++ shared library in MATLAB and integrated it in Win32 console application in C++. I have to call this console application from PHP.It has 5 inputs which should be passed from php. When I run the application giving the input parameters it runs. The code which runs properly is as below:</p>
  
  <pre><code>#include "stdafx.h"
  #include "shoes_sharedlibrary.h"
  #include &lt;iostream&gt;
  #include &lt;string.h&gt;
  #include "mex.h"
  
  
  
  using namespace std;
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      /* Call the MCR and library initialization functions */
  if( !mclInitializeApplication(NULL,0) )
  {
  
      exit(1);
  }
  
  if (!shoes_sharedlibraryInitialize())
  {
  
      exit(1);
  }
  
  
  
       mwArray img= "C:/Users/aadbi.a/Desktop/dressimages/T1k5aHXjNqXXc4MOI3_050416.jpg";
       double wt1 = 0;
       mwArray C(wt1);
       double wt2=0;
       mwArray F(wt2);
       double wt3=0;
       mwArray T(wt3);
       double wt4=1;
       mwArray S(wt4);
  
  
  
             test_shoes(img,C,F,T,S);
              shoes_sharedlibraryTerminate();
              mclTerminateApplication();
              return 0;
  }
  </code></pre>
  
  <p>The C,F,T,S are value between 0 and 1. How can I pass the input arguments as it is in _TCHAR*?How can I convert the _TCHAR* into decimal or double and again converting that into mwArray to pass into test_shoes. The test_shoes only takes mwArray as input.</p>
  
  <p>The test_shoes function definition is:</p>
  
  <pre><code>void MW_CALL_CONV test_shoes(const mwArray&amp; img_path, const mwArray&amp; Wcoarse_colors, 
                               const mwArray&amp; Wfine_colors, const mwArray&amp; Wtexture, const 
                               mwArray&amp; Wshape)
  {
    mclcppMlfFeval(_mcr_inst, "test_shoes", 0, 0, 5, &amp;img_path, &amp;Wcoarse_colors, &amp;Wfine_colors, &amp;Wtexture, &amp;Wshape);
  }
  </code></pre>