Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

using class

2 views
Skip to first unread message

FAOsoft

unread,
Mar 29, 2006, 10:55:50 AM3/29/06
to
I Created a class and build it. now it's a dll file, but I don't know how
I can will use in project.
thanx

class is following
----------------------------
unit dortIslem;

interface

type
TdortIslem = class
private

public
function Topla(x, y:integer):integer;
end;

implementation


function TdortIslem.Topla(x, y: integer): integer;
begin
result:=x+y;
end;


Unknown

unread,
Mar 29, 2006, 8:08:02 PM3/29/06
to
On Wed, 29 Mar 2006 18:55:50 +0300, FAOsoft wrote:

> I Created a class and build it. now it's a dll file, but I don't know how
> I can will use in project.

Did you create an assembly or a package?

Ideally you want to create a package. Then in the other project you
just need to add a reference to the package/dll and use the units in
it just as if they were compiled into your main app.

--
Marc Rohloff [TeamB]
marc rohloff -at- myrealbox -dot- com

Unknown

unread,
Mar 30, 2006, 8:43:05 PM3/30/06
to
On Sun, 19 Mar 2006 08:10:21 +0200, FAOsoft wrote:

> how can I? I Try but I can't

File / New / Other / Delphi.NET / Package

Unknown

unread,
Mar 31, 2006, 4:42:14 PM3/31/06
to
On Sat, 18 Mar 2006 22:09:20 +0200, FAOsoft wrote:

> yes, i know it , but i do not know how i can call function in my class
> package

* Add the package dll to your projects references.
* Add the unit you are using to the uses clause in your other app
* Call the function.

0 new messages