🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #14577

loadLibrary

#14577
From: Kobus du Toit
Date: Thu, 26 Aug 1999 00:00
36 lines
1099 bytes
I get a unsatisfied link error when I try to call procedures and
functions in a dll
I don't know what I am doing wrong.

Kobus


This is my java code
native void Test();
native int Min(int X, int Y);

System.loadLibrary("Project1");
int test = Min(1, 1);



This is my Delphi code
function Min(X, Y: Integer): Integer; stdcall;
begin
  Result := 0;
end;

function Max(X, Y: Integer): Integer; stdcall;
begin
  Result := 0;
end;

procedure Test;
begin
  ShowMessage('Hi');
end;

exports
  Min index 1,
  Max index 2,
  Test index 3;
Technical Details
Message-ID: <37C52B8F.54EC74F6@iname.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,dcc7b1ca6da47b38,start
X-Google-Attributes: gidf74b3,public
From: Kobus du Toit <battlezone@iname.com>
Subject: loadLibrary
Date: 1999/08/26
Message-ID: <37C52B8F.54EC74F6@iname.com>
X-Deja-AN: 517414064
Content-Transfer-Encoding: 7bit
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Reply-To: battlezone@iname.com
Newsgroups: borland.public.jbuilder.java.language