Home > Back-end >  Consult the Delphi call the following functions in the Dll spelled correctly
Consult the Delphi call the following functions in the Dll spelled correctly

Time:09-22

Consult the Delphi as follows in the Dll function called the correct term of

# # ifndef DLLAPI
# define DLLAPI extern "C" __declspec (dllimport)
# endif


//# define DLLAPI



//RTN code & gt; 0 succeed
DLLAPI int LoadModel (const char * model_path, unsigned int path_bytes);
DLLAPI int LoadModel_2 (const unsigned char * model_data, unsigned int data_bytes);
DLLAPI void DestroyModel ();


//thread safe
DLLAPI int LM_REC (const char * img_path, unsigned int path_bytes, char * result_buf, unsigned int buf_bytes);
DLLAPI int LM_REC_2 (const unsigned char * img_data, unsigned int data_bytes, char * result_buf, unsigned int buf_bytes);

  • Related