Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: Java to invoke VB DLL


Message #1 by peterfrb2@y... on Thu, 25 Apr 2002 20:01:07
For a free Active X/Java class bridge look at the web site below:

http://danadler.com/jacob/

Cheers,
Nick Tucker





                                                                                                                                    
                    peterfrb2@y...                                                                                                   
                    oo.com               To:     "Professional Java" <pro_java@p...>                                  
                                         cc:                                                                                        
                    25/04/2002           Subject:     [pro_java] Java to invoke VB DLL                                              
                    21:01                                                                                                           
                    Please                                                                                                          
                    respond to                                                                                                      
                    "Professional                                                                                                   
                    Java"                                                                                                           
                                                                                                                                    
                                                                                                                                    




I'm an accomplished Visual Basic programmer who has perfected a large body
of class modules that perform specialized tasks.  I would like to give my
Java apps access to these routines stored as DLL files.  I posed this
question to my Java instructor, and he replied thusly:

    I can think of two possible solutions. One is to wrap
    the .dll file into an  executable so that Java can run
    it and get some kind of true/false result back. I know
    from Java you can call another executable file, but I
    don't remember the syntax. The other solution is get
    some kind of ActiveX/Java Class bridge component which
    is provided by some third party vendors.

Do any of you have any insights into either of these proposals (or have
another idea)?  [My instructor mentioned but nixed a third possibility,
using Microsoft Visual J++ to call other Windows components.  We both
consider that strategy sullied.]

Peter Ferber





  Return to Index