Calling C++ dll in VC++
<p>I am writing a application on VC++ using SAGEM MORPHO DLL's.<br>
The DLL I am referring is MORPHO_SDK.dll<br>
The function exposed is I </p>

<pre><code>C_MORPHO_User::Enroll  ( US  i_us_Timeout,UC  i_uc_FingerNumber, T_MORPHO_TYPE_TEMPLATE  i_x_TemplateType,  
  UL  i_ul_CallbackCmd,  
  T_MORPHO_CALLBACK_FUNCTION  i_pf_Callback,  
  PVOID  i_pv_CallbackArgument,  
  I  i_i_CoderChoice,  
  UL  i_ul_DetectModeChoice   
 )   
</code></pre>

<p>The way I am calling is   </p>

<pre><code>    int res;  
    C_MORPHO_User u,nw,idf;  

extern "C
" __declspec(dllimport) int Enroll  ( US  i_us_Timeout,UC  i_uc_FingerNumber, 
    T_MORPHO_TYPE_TEMPLATE  i_x_TemplateType,  
  UL  i_ul_CallbackCmd,  
  T_MORPHO_CALLBACK_FUNCTION  i_pf_Callback,  
  PVOID  i_pv_CallbackArgument,  
  I  i_i_CoderChoice,  
  UL  i_ul_DetectModeChoice   
 ) ;  
main()
{
int x=u.Enroll(0x15,1,MORPHO_PK_ISO_FMR ,0,NULL,NULL,MORPHO_MSO_V9_CODER ,MORPHO_ENROLL_DETECT_MODE);  
    printf("%d\n",x);  
}  
</code></pre>

<p>While compiling I am getting these error  </p>

<blockquote>
  <p>1.syntax error : missing ';' before identifier 'u'<br>
  2.C_MORPHO_User : missing storage-class or type specifiers.</p>
</blockquote>

<p>Is this the correct way to call the Dll. Kindly help in resolving the issue.</p>
