• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 392
  • Last Modified:

Messenger API View Profile

Hey,
I'm trying to make a reverse lookup using the Messenger API, where you type in a passport email address and its domain, and it will look up this address using the Messenger API and open the passport profile.  To do this I have two text boxes:
txtEmail
txtDomain
and I have a Button, on the click function of this button, I have this code:
Messenger.IMessengerApp.ViewProfile(txtAlias.Text & "@" & txtDomain.Text)

It tells me though that viewprofile is not a function of 'Messenger.IMessengerApp', but in object browser it says it is.
What am I doing wrong, or is there another way to do this?

Liam
0
Liam2k3
Asked:
Liam2k3
1 Solution
 
mmarinovCommented:
Hi Liam2k3,

IMessenger is not a class but an interface - you can not call methods direct from interface
check in which class this method is declared and use it instead of IMessengerApp

Regards!
B..M
mmarinov
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now