Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using java classes in VB 6

Status
Not open for further replies.

kathyayini

Programmer
Aug 16, 2002
52
IN
I created .java file which contains :
public class myJavaClass
{
public String somePublicMethod()
{
return "Hello from somePublicMethod";
}
}

created .class out of .java file
and registred using following command :
javareg /register /class:myJavaClass /progid:myJavaClass

i wants to use this class(functions) in VB and VC++
i am using CreateObject, but giving the error "Activex component can't create object"
how to do it.
waiting for the reply.
 
Java and VB don't mix.
I don't think you can do what you want it to do.
 
I am running a exe through PB which is created using VC++.
In PB this exe is called multiple times in a loop

int i
for i=1 to 3
Run("C:\Alm\merge.exe c:\Alm\glmemos.txt")
next
in the above example exe is running together.

I wants to run exe for the 2nd time only if 1st exe gets over and so on. In short i wants to run exe one after the another.

Waiting for the reply.
 
why is PB here? aint this a VB place?

also, why dus i think that the second post by the creator of the thread has nothing to do with the original post? All the Best
Praveen Menon
pcmin@rediffmail.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top