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....