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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Accessing external app's

Status
Not open for further replies.

Gazzza

Programmer
Dec 21, 2000
16
0
0
AU
Hi,

I'm trying to do something that was pretty easy in VB6 and I can't get it working under vb.net we use a product called Aperture and it has a fairly large ole library that can be used.
In VB6 this would have given me the current open projects name.

Dim oAperture as Object
Dim oProject as Object
Set oAperture = CreateObject("Aperture.Application")
Set oProject = oAperture.Project
MsgBox( oProject.Name )

In VB.net after the code wizard upgrade I have this. It doesn't generate any errors it won't give the projects name as the VB6 would have
Dim oAperture As New Object()
Dim oProject As New Object()
oAperture = CreateObject("Aperture.Application")
oProject = oAperture.Project
MessageBox.Show(oProject.Name)

Can anyone help me? It's not generating any errors and returns a blank string.

Thanks,

Garry
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top