Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.07.11;
Скачать: 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 вся ветка

Текущий архив: 2004.07.11;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.039 c
3-1086598478
ceval
2004-06-07 12:54
2004.07.11
проблема с открытием dbf файлов


8-1081016095
Forelli
2004-04-03 22:14
2004.07.11
Как проигрывать CDA файлы (AudioCD) в программе?


1-1087971630
BorisMor
2004-06-23 10:20
2004.07.11
XML парсер


4-1086006441
GanibalLector
2004-05-31 16:27
2004.07.11
Hook на wm_settext ???


4-1085595377
RomariO
2004-05-26 22:16
2004.07.11
Эмуляция принтера