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