T
Town
Unregistered / Unconfirmed
GUEST, unregistred user!
在建立Dll时,会有这段提示: “ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes.”。
在《开发人员指南中》,有一个显示模式窗体的经典例子,Exports了这样的函数:
Function ShowCalendar(AHandle:THandle; ACaption:String):TDateTime:Stdcall;
为什么这时候就不需要加ShareMem单元了?
如果,在另外一个Dll中,调用这个Dll中的ShowCalendar, 需要加ShareMem么?
初学Dll, 请指教~~
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes.”。
在《开发人员指南中》,有一个显示模式窗体的经典例子,Exports了这样的函数:
Function ShowCalendar(AHandle:THandle; ACaption:String):TDateTime:Stdcall;
为什么这时候就不需要加ShareMem单元了?
如果,在另外一个Dll中,调用这个Dll中的ShowCalendar, 需要加ShareMem么?
初学Dll, 请指教~~