View Single Post
  #3 (permalink)  
Old 12-06-10, 10: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....
Reply With Quote