30-04-2014, 08:19 PM
السبب أنك تحاول أن تقوم بعمل تنفيذ / تشغيل للمكتبة Dll و ليس التطبيق exe .
قم بالتحقق من المشروع الحالي .
+ هل قرأت ال comment أعلى المكتبة :
نصيحة : تجنب استخدام صنف String في ال dll ..
كبديل استخدم PChar .
قم بالتحقق من المشروع الحالي .
+ هل قرأت ال comment أعلى المكتبة :
كود :
{ Important note about DLL memory management: [COLOR="Red"]ShareMem must be the
first unit in your library's USES[/COLOR] clause AND your project's (select
Project-View Source) USES clause[COLOR="red"] if your DLL exports any procedures or
functions that pass strings as parameters or function results[/COLOR]. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. [COLOR=Blue]To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. [/COLOR]}نصيحة : تجنب استخدام صنف String في ال dll ..
كبديل استخدم PChar .
Open Your Source .. Open Your Mind

