Current location: Hot Scripts Forums » Programming Languages » Everything Java » call a VB form from a java application


call a VB form from a java application

Reply
  #1 (permalink)  
Old 03-12-04, 08:25 AM
kcatalin_ro kcatalin_ro is offline
Newbie Coder
 
Join Date: Feb 2004
Location: Romania
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
call a VB form from a java application

Hi,
Can anybody tell me if I can run a VB form from a java application.It is more like this: I want to push a button from a java application that would trigger a VB application to run.
Somebody told me something about putting the VB app in a dll file, but I don't have a clue.
Thanks!...in advance...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-14-04, 02:48 PM
Rob_Darkins Rob_Darkins is offline
Newbie Coder
 
Join Date: Jun 2004
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
well, you can start/open any other app, program, folder using the following code:

String loader = "c:\...\vbAppName";
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler \""+loader+"\"");

That should do it!
Good luck,

Rob Darkins.
Quote:
Originally Posted by kcatalin_ro
Hi,
Can anybody tell me if I can run a VB form from a java application.It is more like this: I want to push a button from a java application that would trigger a VB application to run.
Somebody told me something about putting the VB app in a dll file, but I don't have a clue.
Thanks!...in advance...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 12-06-10, 11:35 PM
rajesh_gite rajesh_gite is offline
New Member
 
Join Date: Dec 2010
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Question calling vb function from java

sir i have tried this code, but it is not working for me. My assignment is to call vb function from java code dynamically.
for example
my java code is::
public static void main(String args[])
{
try {

Process theProcess = null;
BufferedReader inStream = null;

Runtime r = Runtime.getRuntime();
String loader = "D://PDFExtMonthly/ChkStr.VB";
r.exec("rundll32 url.dll,FileProtocolHandler \""+loader+"\"");
}
catch (Exception err) {
err.printStackTrace();
}

and my vb code is:: ChkStr.VB
Module Hello
Sub Main()
MsgBox("Hello, World!") ' Display message on computer screen.
End Sub
End Module

when i run the prog. it will no display any output.....
Please help me....
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
formmail problem gscraper Perl 12 08-27-04 04:06 AM
submit form? tcooper PHP 5 12-12-03 04:30 PM
SQL database registration form help vinhkhuong PHP 3 10-10-03 04:49 AM
Call a sub from form? Tesco ASP 3 08-14-03 03:19 AM


All times are GMT -5. The time now is 08:27 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.