How a java program talk to VB6.0 program and exchange files??

Hi, all friends,
I just got a project that ask for make two programs, one using vb6.0 and another one using java. These two programs will communicate and exchange files. It sounds strange. Can I use corba? if so, can any one give me the details of step by step. Or some other solutions. Thanks in advance.

I do not know why you are stuck with such a architecture but i am sure is that this is not a pleasant situation. VB and java are way apart.
Anyway given with the situation and assuming that you just want to exchange files (not variable or inter method calls)..
Solution 1) Fix up two different directories for Java and VB application. And Each application puts files on the other directory when it wants to exhange files. Respective applications keep checking their directories for new files and its kicks of its processing once it finds a new file.
Your exchange file contains all the detials in the agreed format. The new files are loaded in the application and it gets all the details of what it needs to do.
(WITH SOLUTION 2 to 4 you can make inter method calls)
Solution 2) Look into JNI(Java Native interface) through which Java can call a native method in a DLL. That dll is loaded inside the JVM and executed. The dll can also call Java method. And the DLL can communicate to the VB Applicaiton through remote method call or COM interface.
Solution 3) If you get a chance to work with .NET architecture then web services is the one which you can try. VB and Java application can interact with each other through Web services.
Solution 4) There are a few Java to COM bridge available in the market. Write a com object with VB and iteract between the Java code and the COM Code.
These are all the options i can come up with. But any of the solution will not be fun as all will have limitations and learning curve to it.
Srinivasan Ranganathan

Similar Messages

  • How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    How do I port my Windows Word, Excel, and Powerpoint files to the MAC?  What software is needed on the MAC to use them?  Thanks.

    You can certainly use iWork, though I hesitate to recommend it to a seasoned Windows user simply because it would add another level of the unfamiliar with which you would have to gain familiarity. The iWork applications are certainly very competent and in most respects both easy to use and surprisingly powerful. They are not 100% compatible however, though that typically manifests itself in document formatting issues rather than anything more significant.
    I have never attempted to import emails from a Windows system into MacOS - other than in Outlook connected to an Exchange server, thus not really an issue at all. I doubt that the Mail app in MacOS can import directly, but of course you could always set the account(s) up on the Mac and then forward emails you want to keep from the PC. Not elegant, but it works. Virtually any Windows document or file, whichever application created it, can be opened or converted for use on a Mac, and using both systems on my desk each day I rarely see any issues switching stuff from one machine to the other. You may stumble over one or two issues, but likely not significant.
    In switching platforms there will be some inevitable issues, not so much with being able to import your stuff because there's usually a workaround or a utility that can help, but just with getting familiar with the platform and the differences between Windows and MacOS that can obscure their similarities. From time to time the support community here hears from a user who has found the migration very problematic and regrets it, but for the most part the phrase 'I should have done this years ago...' is rather more prevalent!

  • HOW TO CREATE SEVERAL folder for the generation and READING FILE

    HOW TO CREATE SEVERAL folder for the generation and READING FILE WITH THE COMMAND utl_File.
    please give an example to create 3 folders or directories ...
    I appreciate your attention ...
    Reynel Martinez Salazar

    I hope this link help you.
    [http://www.adp-gmbh.ch/ora/sql/create_directory.html]
    create or replace directory exp_dir as '/tmp';
    grant read, write on directory exp_dir to eygle;
    SQL> create or replace directory UTL_FILE_DIR as '/opt/oracle/utl_file';
    Directory created.
    SQL> declare
      2    fhandle utl_file.file_type;
      3  begin
      4    fhandle := utl_file.fopen('UTL_FILE_DIR', 'example.txt', 'w');
      5    utl_file.put_line(fhandle , 'eygle test write one');
      6    utl_file.put_line(fhandle , 'eygle test write two');
      7    utl_file.fclose(fhandle);
      8  end;
      9  /
    PL/SQL procedure successfully completed.
    SQL> !
    [oracle@jumper 9.2.0]$ more /opt/oracle/utl_file/example.txt
    eygle test write one
    eygle test write two
    [oracle@jumper 9.2.0]$
    SQL> declare
      2    fhandle   utl_file.file_type;
      3    fp_buffer varchar2(4000);
      4  begin
      5    fhandle := utl_file.fopen ('UTL_FILE_DIR','example.txt', 'R');
      6 
      7    utl_file.get_line (fhandle , fp_buffer );
      8    dbms_output.put_line(fp_buffer );
      9    utl_file.get_line (fhandle , fp_buffer );
    10    dbms_output.put_line(fp_buffer );
    11    utl_file.fclose(fhandle);
    12  end;
    13  /
    eygle test write one
    eygle test write two
    PL/SQL procedure successfully completed.
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdump
    SYS                            EXP_DIR                        /opt/oracle/utl_file
    SQL> drop directory exp_dir;
    Directory dropped
    SQL> select * from dba_directories;
    OWNER                          DIRECTORY_NAME                 DIRECTORY_PATH
    SYS                            UTL_FILE_DIR                   /opt/oracle/utl_file
    SYS                            BDUMP_DIR                      /opt/oracle/admin/conner/bdumpRegards salim.
    Edited by: Salim Chelabi on Apr 4, 2009 4:33 PM

  • How can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?

    Hi,
    I would like to know as to how can I add links to open xml and csv files stored in another location? Please advice how to place links in my frame maker document?
    Kindly advice.
    Thanks
    Priya

    Special > Hypertext > Command "open document" will do its best to open the target document inside FrameMaker, which may not be much help; Special > Hypertext > Command "message …" will use the application you specify. The user guide for 7.0 says this about absolute links, and I don't think anything has changed since:
    For example, to start PaintBrush and open the Ship.pcx file on drive C you would use the command message system pbrush.exe C:/Ship.pcx
    I've not often used a relative link, and not recently: the same source says
    folder levels are separated by a slash / even in Windows and Mac
    [relative links] FrameMaker searches for a relative pathname beginning in the folder that contains the current document
    [absolute links] FrameMaker searches for an absolute pathname beginning at the top of the file system. In Windows, the absolute pathname begins with the drive specifier, a colon and a slash.

  • How do I stop spotlight from returning .r and .h files

    how do I stop spotlight from returning .r and .h files?

    Hello jtenny,
    Welcome to the Discussions.
    I had a similar problem with Safari opening .pdf files. It went away when I went into the following folder: Your Home Folder/Library/Internet Plug-ins, and dragged out any files that looked as if they might make a difference, just one at a time, onto the Desktop. (N.B. I did not Trash them; and if removal made no difference, I replaced the file into the Plug-ins folder.) You will have to restart Safari on each occasion; and on a couple of occasions I found that re-setting Safari (Safari Menu) was necessary to give the application a start-from-scratch with each download attempt.
    That's a somewhat makeshift way of approaching it; but provided you don't trash the plugins, and provided you restore those that make no difference, it can't do any harm -- within my experience anyway.
    All good wishes from Ireland
    Martin
    If you found that this contribution helped to answer your question, please consider awarding some points. Why reward points?
    Powerbook 15-inch G4 1GHz   Mac OS X (10.4.8)   Several veterans that go on and on. 40gig, 3rd generation iPod

  • How to batch or individual import Canvas .CVX and .CNV files into AI CS6(mac)?

    Is anyone aware how to batch or individually import Canvas .CVX and .CNV files into AI CS6(mac)? I have a large old graphics library representing 10 years of work which would be very nice to convert into Illustrator CS6...
    Thanks a lot for any hint -
    stefan

    JETalmage wrote:
    ...export them as an EPS or another file type that windows will recognize...
    It's not a matter of exporting a file that Windows will recognize; it's a matter of exporting a file format that Illustrator can import or open.
    A Mac OS version of Canvas is under development, by the way.
    JET
    My bad. Typo on my part. I meant one that Adobe will recognize.
    Too early yet. I shouldn't try to type before I get my first morning tea.
    --OB.

  • How to import missing content for my music and video files from Itune online

    how to import missing content for my music and video files from I tune online.

    Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • Upgraded computers - how do I remind Logic where the SFX and Instrument files are?

    I just upgraded computers - how do I remind Logic where the SFX and Instrument files are located? On my old computer it was set up on an external drive, on this computer it's all internal, but how and where do I create the paths?
    Thank you!

    thanks Finatarry. when navigating to the "please write your question here" page I went through a Fire fox or thunderbird choise but that does not seem to have been fowarded to you - from what I read above here on the thread. my appologies. an answer I have stumbled upon is at Preferences-Accounts -ServerOptions- does this folder browsed to via the button also keep mthe profiles there?- and thanks again

  • Zip 7 says there is no default email program. How do I make gmail my default email program so i can zip and mail files using zip 7.

    Can't use zip 7 to zip and send files. Keep getting error message
    There is no email program associated to perform the requested action. Please install a program or if one is already installed, create an association in the Default Programs control panel. There is no mail program in the default programs control panel. There's no file to associate with it.
    I'm getting very frustrated. I have school files that need to be emailed and I can't figure this zip7 out
    Any help would be appreciated.

    Hi CB01,
    Thank you for your question. I understand that you need to set up a default mail program to mail zip 7 files.
    In the Control Panel of your operating system there are file extensions that you can set a default program to use for mailing.
    *[http://windows.microsoft.com/en-us/windows/change-default-programs#1TC=windows-7]
    In order to add a mailto option in Firefox[[Set how Firefox handles different types of files]]

  • How to use third party library (like .dll and .lib files) in flascc?

    I have a number of .dll and .lib files of the  third party library, which are generated from C++ code.
    I read about flascc on other web site says:
    "If you want to use third party library in your Flascc project,you must have either the source code or the linkable file which is compiled of the third party library   "
    Dose the linkable file mean .dll file or .lib file?
    AND
    How can I use the fuctions in them in my flascc project.?

    Native code is not interchangeable between platform.
    It means that you can't use library that wasn't build specifically for flascc.
    And when they say linkable files they mean libraries compiled for flascc, not any libraries.
    So if your libs are for windows, no luck, you have to recompile everything

  • How to burn a dvd with both Mac and Windows files

    I have a DVD that has both Mac and Windows formatted files. When the DVD is mounted only Mac formatted files show. I want to burn a DVD copy containing both formatted files. How do I do that? Thanks in advance.

    Correction! It is a CD and there are two partitions with Mac and Windows files.

  • How to decrease the size of the JS and CSS File

    Hi experts,
    I m facing a bandwidth problem because i m accessing an application from a PDA and i noticed that it takes a very long time to load a very simple page. After some investigation, i noticed that its because the JS and CSS files downloaded are rather big.
    sapUrMapi_ie6.js (Size: 301 KB)
    sapWdSsr_ie6.js (Size: 79 KB)
    ur_ie6.css (Size: 247KB).
    Any idea how to minimize the size of these files or any workaround as to this problem ?
    Your help will be much appreciated.
    Regards,
    Daniel

    Hi,
    Check this link this may be helpful to you
    http://help.sap.com/saphelp_nw04/helpdata/en/b5/7e1141e109ef6fe10000000a1550b0/frameset.htm
    Regards,
    SURYA

  • Program for turning animated .gif and MP3 files to .mov

    I need a program that takes an animated GIF and an MP3 of WAV file and turns them into a .mov file, but I don't have the money for FinalCut. Is there a cheaper (or free) program that can do this thing?

    hello. try mpeg streamclip here -
    http://www.apple.com/downloads/macosx/video/mpegstreamclip.html
    not sure if it'll help, but most users here swear by it for various format conversions. and it's free.

  • How would java compare to Perl for processing large txt files

    I guess what I am asking is that I write a lot of scripts in perl for processing txt files with large amounts of data in them ( >1 MB or >100K Lines of data )
    Stuff like searching for strings, deleting chuncks of the file, replacing strings, extracting strings, lines etc.
    The reason I used perl is that I was under the impression it would be the fastest for the job but I never considered java. Now I am trying to get up to speed in Java so want to use these small jobs as practice?
    Thanks ... J

    Mod (Compiled) Perl is faster than Java I think. Also, perl has been optimized for this sort of thing. Plus, if you're creating a lot of small to medium size scripts, as you mentioned, perl will be a lot easier to support for you and who ever comes after you. Stick with what you know

  • How do I find my external hard drive and move files?

    Im totally a non tech person so please bear with me. I have had my imac for several years. I started getting a message every time I went to do anything saying that I didnt have the space available to do whatever I was trying to do. I finally bought a 2tb external hard drive. It didnt come with instructions or anything so all I did was plug it in. The computer seemed to recognize it and something having to do with timemachine came up and I just clicked yes and it did its thing for about 2 hours and it was done. I didnt get the message about the available space again so I assumed that corrected it. Well today when I went to update my software its telling me I dont have the space available for the update. I have no idea what is going on. I dont even see an icon on my desktop for the hard drive, just timemachine. What am I doing wrong?

    AS you drag files to an external drive, a little Plus sign + will appear to indicate the files will be copied.
    You need to delete some files ASAP.  Best to have greater than 2gig of free space.  Many posters to these forums state that you need much more free space: 5 gig to 10 gig or 10 percent of you hd size.
    (0)
    Be careful when deleting files. A lot of people have trashed their system when deleting things. Place things in trash. Reboot & run your applications. Empty trash.
    Go after large files that you have created & know what they are.  Do not delete small files that are in a folder you do not know what the folder is for. Anything that is less than a megabyte is a small file these days.
    (1)
    Run
    OmniDiskSweeper
    "The simple, fast way to save disk space"
    OmniDiskSweeper is now free!
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    This will give you a list of files and folders sorted by size. Go after things you know that are big.
    (2)
    This will save you a gig of space.
    Monolingual is a program for removing unnecessary language resources from Mac OS X,in order to reclaim several hundred megabytes of disk space. It requires at least Mac OS X 10.3.9 (Panther) and also works on Mac OS X 10.4 (Tiger). It worked for me on 10.4
    http://monolingual.sourceforge.net/
    A detailed write-up on how to use Monolingual:
    http://www.jklstudios.com/misc/monolingual.html
    (3)
    These pages have some hints on freeing up space:
    http://thexlab.com/faqs/freeingspace.html
    http://www.macmaps.com/diskfull.html

Maybe you are looking for