15-05-2011, 07:14 PM
رأيت هذه المكتبة من قبل منذ ان وضعت في pouet.com من طرف kb . لم اكن اعلم ان هناك اصدار دلفي . مدهش . لكن هناك سؤال . هل بالامكان اسعمال dcu الخاصة ب delphi7 في delphi2006 ؟ . جربت وطلعلي خطأ .
http://magic.shabgard.org/V2mPlayer-VB-Delphi.zipprocedure 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';V2mPlayResource("WindowsApplication1", "test.v2m", true);
V2mPlayFile("test.v2m", true);إقتباس : انا احكي عن الربط الستاتيكي .ما قمت به ليس ربط ستاتيكي بل مجرد استدعاء المكتبة dll من الذاكرة باستخدام BTMemoryModule
اما باقي الاصدارات فعليك استعمال dll .
هذا الكلام غير صحيح . ( تستطيع استعمال هذا المحرك بأي اصدار دلفي تريد و بدون DLL )
إقتباس :المصدرIn computer science, a static library or statically-linked library is a set of routines, external functions and variables which are resolved in a caller at compile-time and copied into a target application by a compiler, linker, or binder, producing an object file and a stand-alone executable. This executable and the process of compiling it are both known as a static build of the program. Historically, libraries could only be static.
Static libraries are either merged with other static libraries and object files during building/linking to form a single executable, or they may be loaded at run-time into the address space of the loaded executable at a static memory offset determined at compile-time/link-time.
http://en.wikipedia.org/wiki/Static_libraryB.M.AbdelAziZ كتب :بأول مرفق مثال، ايضا الق نظرة على الملف Help.txt فان لم ينفع يمكن ارفاق مثال أخرالسلام عليكم