|
-
Mar 4th, 2006, 10:47 AM
#1
Thread Starter
<?="Moderator"?>
Extend class from loaded DLL
How do i extend a class from one that i want to load from a DLL?
So far i know this. To load the DLL i use
Code:
System.loadLibrary("ShellBasics");
The class that i want to use is
Code:
ShellLib.ApplicationDesktopToolbar
I have looked around and found something about a classloader, but i wasn't to sure if this was only for use with compiled java classes or not? Any help would be great.
Thanks
-
Mar 4th, 2006, 09:45 PM
#2
Re: Extend class from loaded DLL
What kind of DLL is that?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 4th, 2006, 11:11 PM
#3
Re: Extend class from loaded DLL
 Originally Posted by CornedBee
What kind of DLL is that?
Does it matter?
it's not Java dll anyway!
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 5th, 2006, 06:23 AM
#4
Re: Extend class from loaded DLL
Yes, it does matter. Is it an ActiveX DLL accessed via the bridge? Is it a JNI DLL implementing a few functions? Or is it a .Net DLL the OP mistakenly believes he can access?
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 5th, 2006, 08:20 AM
#5
Re: Extend class from loaded DLL
Can you do it from anyone of those types?
I mean extend a class
I'm very curious about that, cause it'd make my life easier
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 5th, 2006, 08:27 AM
#6
Thread Starter
<?="Moderator"?>
Re: Extend class from loaded DLL
It is a .NET DLL, although i have the source code to it i can implement it though java would rather just use the DLL because im lazy.
-
Mar 5th, 2006, 11:18 AM
#7
Re: Extend class from loaded DLL
It's not possible to use .Net classes in Java. The bytecode is different, the virtual machines are different.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
-
Mar 5th, 2006, 12:55 PM
#8
Re: Extend class from loaded DLL
 Originally Posted by CornedBee
It's not possible to use .Net classes in Java. The bytecode is different, the virtual machines are different.
I thought that's what interoperability is for!
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
-
Mar 5th, 2006, 01:00 PM
#9
Re: Extend class from loaded DLL
Which interoperability? J# is a compiler that attempts to compile Java to .Net bytecode, but it's not Java, and it doesn't have large parts of the Java standard library, so most complex applications probably won't compile.
.Net and ActiveX - interoperatibility doesn't go any further than that. The Java-ActiveX bridge is a kludge at best. There is, I believe, a project somewhere that attempts to combine a Java and .Net virtual machine into one program so that you can mix their bytecodes, but I have no idea about its progress, or if the idea is even feasible.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|