請教 Delphi 呼叫如下 Dll 中的函式的正確寫法
#ifndef DLLAPI
#define DLLAPI extern "C" __declspec(dllimport)
#endif
//#define DLLAPI
// rtn code > 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);
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/64627.html
標籤:VCL組件開發及應用
