Results 1 to 5 of 5

Thread: Activex Componet Cant Create Object

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    15

    Unhappy Activex Componet Cant Create Object

    Im making a Msn Caption changer and with some other functions like spamming but i get Activex Componet Cant Create Object when debugging on my own computer
    my code is below
    VB Code:
    1. Public WithEvents msn As MessengerAPI.Messenger
    2.  
    3. Private Sub Command1_Click()
    4. msn.MyContacts = List1
    5. End Sub
    6.  
    7. Private Sub Form_Load()
    8. msn = MessengerAPI.Messenger
    9. With Combo1
    10. .AddItem "Invisible"
    11. .AddItem "BRB"
    12. .AddItem "Busy"
    13. .AddItem "Out To Lunch"
    14. .AddItem "OTP"
    15. End With
    16. End Sub
    17. Private Sub combo1_click()
    18. If Combo1 = "Invisible" Then
    19. msn.MyStatus = MISTATUS_INVISIBLE
    20. End If
    21. If Combo1 = "Brb" Then
    22. msn.MyStatus = MISTATUS_BE_RIGHT_BACK
    23. End If
    24. If Combo1 = "Busy" Then
    25. msn.MyStatus = MISTATUS_BUSY
    26. End If
    27. If Combo1 = "Out To Lunch" Then
    28. msn.MyStatus = MISTATUS_OUT_TO_LUNCH
    29. End If
    30. If Combo1 = "OTP" Then
    31. msn.MyStatus = MISTATUS_ON_THE_PHONE
    32. End If
    33. End Sub

  2. #2
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Activex Componet Cant Create Object

    Two things
    1. Have you included the reference in your project to the MessengerAPI? This is a common mistake when one simply copies a form to another project & forgets to check the references.
    2. Shouldn't line 8 be: Set msn = New MessengerAPI.Messenger ?
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  3. #3

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    15

    Re: Activex Componet Cant Create Object

    Quote Originally Posted by LaVolpe
    Two things
    1. Have you included the reference in your project to the MessengerAPI? This is a common mistake when one simply copies a form to another project & forgets to check the references.
    2. Shouldn't line 8 be: Set msn = New MessengerAPI.Messenger ?
    yea typo on my part i assure u the code is my own
    i had it working before and the refernce is added but now since i reinstalled msn when i try to add the reference messenger api type libary i get error loading the dll

  4. #4
    VB-aholic & Lovin' It LaVolpe's Avatar
    Join Date
    Oct 2007
    Location
    Beside Waldo
    Posts
    19,541

    Re: Activex Componet Cant Create Object

    Sounds like the problem evolved to a system one. First thing to do is to try uninstalling messenger and reinstalling, then rebooting, and see if problem goes away.
    Insomnia is just a byproduct of, "It can't be done"

    Classics Enthusiast? Here's my 1969 Mustang Mach I Fastback. Her sister '67 Coupe has been adopted

    Newbie? Novice? Bored? Spend a few minutes browsing the FAQ section of the forum.
    Read the HitchHiker's Guide to Getting Help on the Forums.
    Here is the list of TAGs you can use to format your posts
    Here are VB6 Help Files online


    {Alpha Image Control} {Memory Leak FAQ} {Unicode Open/Save Dialog} {Resource Image Viewer/Extractor}
    {VB and DPI Tutorial} {Manifest Creator} {UserControl Button Template} {stdPicture Render Usage}

  5. #5

    Thread Starter
    New Member
    Join Date
    Mar 2008
    Posts
    15

    Re: Activex Componet Cant Create Object

    Quote Originally Posted by LaVolpe
    Sounds like the problem evolved to a system one. First thing to do is to try uninstalling messenger and reinstalling, then rebooting, and see if problem goes away.
    no still the same problem

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width