[2684] in java-interest
Re: native methods display
daemon@ATHENA.MIT.EDU (Julio Castillo)
Tue Oct 10 17:22:53 1995
Date: Tue, 10 Oct 95 12:04:13 PDT
From: julio@Vantive.COM (Julio Castillo)
To: java-interest@java.Eng.Sun.COM
Cc: Thomas.Ball@Eng.Sun.COM, nthakur@attmail.com
Can you please clarify your response? Let me ask it in another way.
Would I be able to create an applet that as part of its task is to
open and modify a local (to the machine running the browser/applet) db
via the database's provided API?
** julio
> We explicitly prevent applets from loading DLLs for security reasons.
> Imagine loading the Visual Basic for Applications DLL (available on
> all systems running the latest Microsoft Office products, such as
> Word or Excel) and passing it a virus or malicious program written in
> Basic. (It may be difficult writing good stuff in Basic, but it's
> perfect for this. :-)
>>
>>
>> I am trying to use native methods mechanism to control the behavior of an
>> applet from windows dll. Things work fine if I do not call any UI functions
>> from the dll. But if I call a function such as AfxMessageBox() from
>> DllMain() to display windows message box the dll fails to load and I get
>> UnsatisfiedLinkException. The same function works fine if I load dll from
>> other Windows application (other that hotjava).
>>
>> Is it legal for the native dlls that get loaded from hotjava applet, to
>> display dialog boxes etc? (I am running Alpha3 on NT 3.51)
>>
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com