🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.java.programmer
Article #488

Re: Java native with pascal DLL

#488
From: jrevusky
Date: Sat, 01 Aug 1998 00:00
42 lines
2377 bytes
In article <6ppeia$m6k$1@cubacola.tninet.se>,
  "Pierre Andersson" <pierre@edk.se> wrote:
> Hello.
>
> I wonder if it is possible to write native dlls in turbo pascal 7 and then
> use it with Java. My problem is that i don't know how to import the jni.h in
> my pascal dll. Please help me.

Pierre,

Is Turbo Pascal 7 a 32-bit compiler? (I'm not 100% sure, but I dooon't think
so.)You know, basically, Turbo Pascal became Delphi a while back (after
becoming Borland Pascal, that is.)

Anyway, to get to the point, I have translated jni.h to pascal. I did that
because I couldn't find it anywhere else. You can download my jni.pas from my
site and that should work for you as long as you have a 32-bit compiler. I
also wrote some classes in Borland Object Pascal that wrap around the whole
thing and make it much easier to use.

But getting back to the earlier point, I do think you need to get a more
up-to- date compiler. Basically, my wrapper classes will only work with
Delphi 2.0 or higher, since Delphi 1.0 is only a 16-bit compiler.

Well, anyway, you should upgrade to Delphi just on general principle. If
you're still using Turbo Pascal (which is admittedly a great product) Delphi
will just blow you away! Really! (And it should compile all your old Turbo
Pascal code too.)

You can get to the page to download my pascal/delphi jni stuff via the link in
my sig. I hope that's helpful.

Cheers and Greetings from Spain,

Jonathan Revusky

--
Available for Java and Delphi Consulting
http://www.bigfoot.com/~crystalline.solutions

-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp   Create Your Own Free Member Forum
Technical Details
Message-ID: <6q02g4$4mb$1@nnrp1.dejanews.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <6ppeia$m6k$1@cubacola.tninet.se>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,255aaa285836eedd
X-Google-Attributes: gid10a146,public
X-Google-Thread: 108ebd,255aaa285836eedd
X-Google-Attributes: gid108ebd,public
From: jrevusky@bigfoot.com
Subject: Re: Java native with pascal DLL
Date: 1998/08/01
Message-ID: <6q02g4$4mb$1@nnrp1.dejanews.com>
X-Deja-AN: 377056150
References: <6ppeia$m6k$1@cubacola.tninet.se>
To: pierre@edk.se
Organization: Crystalline Solutions
X-Article-Creation-Date: Sat Aug 01 21:48:51 1998 GMT
Newsgroups: comp.lang.java.programmer,borland.public.turbopascal
X-Http-User-Agent: Mozilla/4.0 (compatible; MSIE 4.01; Windows NT)