Results 1 to 10 of 10

Thread: COM and Java

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    How easy is it to create COM objects (like VB Class modules) in java? I don't care how to do it BTW I just want to know how easy it is.
    If it wasn't for this sentence I wouldn't have a signature at all.

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    What about standard dlls as well. If not can you create any sort of code component in java, I am aware you can make something called an applet which is a bit like an ActiveX control, can you make them without a user interface, and can you use them in VB?

  3. #3
    Addicted Member
    Join Date
    May 2000
    Location
    Grand Rapids, MI
    Posts
    231
    If you are using Microsoft VJ++, you can easily create Com/ActiveX controls or dll like you would in most other microsoft languages, once compiled, it will work in any of the microsoft language, VB, VC++, VFP, etc. With VJ++ you can also use your java knowledge to create Native Windows programs instead of classes that require Java VM.
    -Karl Blessing aka kb244{fastHACK}
    [email protected]

  4. #4

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Is that just VJ++, what about other versions of Java?

    We're writing a program and we want people to be able to write their own Plug ins (not plug ins in the normal sense but plug ins is close enough without going into anneccasery detail)

    Seeing as we want to write ours in VBand we want other people to use VB we were looking at COM to do it, or standard dlls for C programmers, what's the best way to cater for java programmers?

  5. #5
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    For Java, without using VJ, there is very little possibility of making a COM server. However, Java does support CORBA, which is platform-independent (like COM is supposed to be). Unfortunately, there are no IDL->VB converters because VB does not support OOP features properly. VB7 should address this.
    I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
    -- Linus Torvalds

  6. #6

    Thread Starter
    Frenzied Member
    Join Date
    Mar 2000
    Posts
    1,089
    Great, so there is no way of using java components in VB, what about using VC++ to interface it into a standard dll or COM object?

  7. #7
    Addicted Member
    Join Date
    May 2000
    Location
    Grand Rapids, MI
    Posts
    231

    Still kind of the same situation

    Thus far when speaking of VB, or VC++, you are speaking of platform specifics, to actually create a dll, more likely activeX, being platform specific, I would just go with VJ++, since it will create ActiveX Dlls and controls that will work in any Microsoft or ActiveX supporting language, of course at the same time this defeats the purpose of Java, it's platform independance, and portibility, the good side is though is that you wont exactly have to relearn a language concept to create platform dependent software in VJ++.
    -Karl Blessing aka kb244{fastHACK}
    [email protected]

  8. #8
    Hyperactive Member
    Join Date
    Mar 2000
    Posts
    292
    This may be a bit too late for you but I came across this article about a Java-COM bridge from Sun:
    http://www.asptoday.com/articles/20000804.htm
    "People who think they know everything are a great annoyance to those of us who do."

  9. #9
    Addicted Member
    Join Date
    Dec 2002
    Location
    Malaysia
    Posts
    224
    Hi Guys,

    I've wrote a simple dll using J++. And now i am wondering how to use it. Quite a joke isn't it ??

    Can I instantiate a constant using certain values? For example in Java.

    Animal mammals = New Animal("Warm Blood", "Birth");

    If i were to compile Animal Class into a dll. How do I instantiate this mammals constant in VB?

    I don't think the below willl work.

    public mammals as New Animal("Warm Blood", "Birth")

    Thanks.

    dave

  10. #10
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    The Java equivalent of ActiveX controls is the Java Bean. It is far easier to create than an ActiveX control and in addition it is platform independent (it's Java). There also is some DLL that exposes Java Beans as if they were ActiveX controls, though I don't know how well that works.

    I recommend not to use VJ++, as it is no longer under development and only supports a very early version of Java (1.1 I think).
    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
  •  



Click Here to Expand Forum to Full Width