🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: jbuilder and DLL import help

#7614
From: Rich Wilkman
Date: Wed, 13 Jun 2001 16:52
24 lines
1868 bytes
I suspect that you can only do this with the proprietary and
non-compliant VM from Microsoft.

-Rich

Guillaume wrote:
> 
> 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: <3B279A36.15796E40@formlessvoid.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews
References: <3b27850d$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,550d56952e1c0ba9
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-06-13 10:10:01 PST
Message-ID: <3B279A36.15796E40@formlessvoid.com>
Date: Wed, 13 Jun 2001 09:52:06 -0700
From: Rich Wilkman <richw@formlessvoid.com>
X-Mailer: Mozilla 4.77 [en] (Windows NT 5.0; U)
X-Accept-Language: en
MIME-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: jbuilder and DLL import help
References: <3b27850d$1_1@dnews>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 208.236.69.60
X-Trace: dnews 992451124 208.236.69.60 (13 Jun 2001 09:52:04 -0700)
Lines: 24
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp1.njy.teleglobe.net!teleglobe.net!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews