30-07-2022, 08:37 AM
(29-07-2022, 06:26 AM)ELARAPY كتب : هل هناك شئ غير المكتبة الديناميكية DLL ؟
نعم، تعريف الدوال التي تصدرها المكتبة DLL
يمكن ان تكون بالتوثيق ملف نصي، inc او حتى PAS
ولا غنى عن مثال بسيط لإستخدام المكتبة.
مثال:
https://delphi4arab.net/forum/showthread...987&page=1
V2m Music Player المكتبة MagicV2mEngine.dll والتعريف
كود :
procedure V2mPlayFile(FName:Pchar; AuRepeat:Bool); stdcall; external 'MagicV2mEngine.dll' name 'V2mPlayFile';
procedure V2mPlayStream(VData:Pchar; AuRepeat:Bool); stdcall; external 'MagicV2mEngine.dll' name 'V2mPlayStream';
procedure V2mPlayResource(hInst:Longint; ResName, ResType:Pchar; AuRepeat:Bool); stdcall; external 'MagicV2mEngine.dll' name 'V2mPlayResource';
procedure V2mStop; stdcall; external 'MagicV2mEngine.dll' name 'V2mStop';
procedure V2mSetAutoRepeat(AuRepeat:Bool); stdcall; external 'MagicV2mEngine.dll' name 'V2mSetAutoRepeat';
function V2mGetTime:Longint; stdcall; external 'MagicV2mEngine.dll' name 'V2mGetTime';
function V2mTotalTime:Longint; stdcall; external 'MagicV2mEngine.dll' name 'V2mTotalTime';
function V2mIsPlay:Bool; stdcall; external 'MagicV2mEngine.dll' name 'V2mIsPlay';مثال اخر
https://delphi4arab.net/forum/showthread.php?tid=9514
مكتبة facesdk.dll والتعريف بالملف LuxandFaceSDK.pas
الدرس السابع: إنشاء الإضافات وبرمجة مكتبات الربط الديناميكية
https://delphi4arab.net/forum/showthread.php?tid=578
رَبَّنَا اغْفِرْ لِي وَلِوَالِدَيَّ وَلِلْمُؤْمِنِينَ يَوْمَ يَقُومُ الْحِسَابُ


![[-]](https://delphi4arab.net/forum/D4A2020/collapse.png)