[Help] ConnectObject Fails


I've been trying to use ConnectObject in order to sink my gadget with MSN Messenger. It works or I should say SHOULD work but it keeps throwing a 'Type Mismatch' Error at me. I've set it up correctly following the guidelines at MSDN but...

Anyone have any ideas? Could it possibly be an error with DesktopX itself? Any help would be greatly appreciated as this will be an excited and dare I say wanted gadget when it is done.

Preview here -- Link

Code
  1. Set app = CreateObject("Messenger.UIAutomation.1")
  2. ConnectObject app, "DMessengerEvents_"
  3. Sub DMessengerEvents_OnContactStatusChange(contact ,status)
  4. Object_OnTimer2
  5. End Sub
  6. Sub DMessengerEvents_OnContactFriendlyNameChange(res, contact ,name)
  7. Object_OnTimer2
  8. End Sub
2,252 views 0 replies