Вниз
Скачать: CL | DM;

Эллементарный вопрос: как создать dll библиотеку?   Найти похожие ветки 

 
JIurafdsfsdt   (2004-06-26 20:18) [0]

Решил разобраться с dll библиотеками.Организовал через DllWisard пустой UNit в нем написал:

library SimpleDLL;

{ Important note about DLL memory management: 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. ShareMem is the interface unit to
 the BORLNDMM.DLL shared memory manager, which must be deployed along
 with your DLL. To avoid using BORLNDMM.DLL, pass string information
 using PChar or ShortString parameters. }

uses
 ShareMem,SysUtils,
 Classes;

{$R *.res}
Var
GlobalVariable:Real;

Function AddIntegers(a,b:Integer):Integer;
Begin
Result:=a+b;
ENd;

Function AddReals(c,d:real):real;
Begin
Result:=c+d;
ENd;

Function AddStrings(e,f:string):string;
Begin
Result:=e+f;
ENd;

Function DoSomething():Integer;
Begin
Result:=1;
End;

Exports
AddIntegers,AddReals,Addstrings;

begin
end.

{}
Но когда я хочу скомпелировать (F9) то возникает ошибка: File Not found: "SimpleDLL.res"
Что я делаю неправильно?


 
P.N.P. ©   (2004-06-26 20:30) [1]

Не надо заменять имя library на SimpleDLL -
оно изменится при сохранении проекта


 
P.N.P. ©   (2004-06-26 20:31) [2]

Я имею ввиду, что обзывать проект SimpleDLL надо при сохранении.



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.019 c
11-1074854211
DDA
2004-01-23 13:36
2004.07.11
RunTime BitBtn.caption:=chr(255) не отображается


14-1087565543
syte_ser78
2004-06-18 17:32
2004.07.11
Всех с наступающими выходными!


1-1088062573
Del_programmer
2004-06-24 11:36
2004.07.11
Регистрация проги


1-1088060509
happyandry
2004-06-24 11:01
2004.07.11
Radiogroup


6-1084397457
Renald
2004-05-13 01:30
2004.07.11
открыт ли 21 80 порт на удал...




   Наверх