🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

jbuilder and DLL import help

#7613
From: Guillaume
Date: Wed, 13 Jun 2001 15:21
18 lines
1672 bytes
Hi,

i want to develop an Active directory appliation, so i have to use activeds and COM.
The problem is to import the activeds.dll library, in order to use the AdsGetObject method.

On the Microsoft's site,i've found an example to do that, using the directive @import.dll like that :

/** @dll.import("activeds", ole) */
private static native IUnknown ADsGetObject(String path, _Guid riid);

it works fine under J++ 6.0, but not at all under jbuilder 4. My program compiles, but when i execute it i've got an error mesage, telling : "java.lang.UnsatisfiedLinkError: ADsGetObject"
Why ? 
Must i use the System.loadLibrary method instead ? How ?
i've tried to use it, but it hadn't worked.

If someone has an idea, plz help me.
Thanks in advance.
Technical Details
Message-ID: <3b27850d$1_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!skynet.be!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!newsfeed.freenet.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,550d56952e1c0ba9,start
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-13 08:38:57 PST
From: "Guillaume" <grozan@esil.univ-mrs.fr>
Sender: "Guillaume" <grozan@esil.univ-mrs.fr>
Reply-To: "Guillaume" <grozan@esil.univ-mrs.fr>
Subject: jbuilder and DLL import help
Newsgroups: borland.public.jbuilder.java.language
X-User-Info: 193.252.38.131 193.252.38.131    
NNTP-Posting-Host: 207.105.83.65
Message-ID: <3b27850d$1_1@dnews>
Date: 13 Jun 2001 08:21:49 -0700
X-Trace: dnews 992445709 207.105.83.65 (13 Jun 2001 08:21:49 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.icl.net!skynet.be!newsfeed00.sul.t-online.de!t-online.de!news-lei1.dfn.de!newsfeed.freenet.de!news1.dtag.de!news.stgl.sel.alcatel.de!news.stgl.sel.alcatel.de!dnews