Windows 10: VB6 Outlook GetObject

Discus and support VB6 Outlook GetObject in Windows 10 Customization to solve the problem; HI, Have two VB6 projects. In Project - References I have no reference to OutLook. The one project works 100% with GetObject(, "Outlook.Application")... Discussion in 'Windows 10 Customization' started by HenningWeltz, Dec 7, 2018.

  1. VB6 Outlook GetObject


    HI,

    Have two VB6 projects. In Project - References I have no reference to OutLook.

    The one project works 100% with GetObject(, "Outlook.Application") and if Outlook is not running I issue CreateObject("Outlook.Application). Both scenarios works.


    In the other project I get an error 53 straight away lon GetObject if Outlook is NOT running. If Outlook is running it is fine.

    I think it has to do with differences in Project - References - any ideas?

    :)
     
    HenningWeltz, Dec 7, 2018
    #1
  2. thanhtan Win User

    VB6 or VB.Net?

    This describes some of the many differences between VB6 and VB.NET. Much of the current VB6 code base will not run under VB.NET due to changes in VB.NET's syntax and language, its use of the new common runtime, and its switch to WinForms from the VB6 form model.

    Visual Basic.NET includes an upgrade tool to assist in converting VB6 projects to .NET. The tool adds an upgrade report to your project listing any problems and inserts comments into your code and To Do items into the new Task List indicating where additional changes need to be made.

    However, understanding the following changes can help simplify migrating your existing VB6 code. For further information on this topic, visit Microsoft's web site.
    ----------------------------------------------
    Electronics maze
     
    thanhtan, Dec 7, 2018
    #2
  3. VB6 on Win10

    Hello All,

    I have an EXE which was written in VB6 edition. It uses a "Comm Port" and lists all the available COMM ports of the system in a drop down. This EXE works well on Win7 and Win8.

    But, when we use this EXE (developed in VB6) on Win10 OS, then dropdown containing the list of COMM ports is empty (even if the computer has few COMM ports available).

    We have another EXE developed in VB2010 edition. This EXE lists all the COMM ports in a dropdown on: Win7, Win8 and Win10.

    But, an EXE developed in VB6 doesn't work on Win10.

    My expectation:

    1. Can we "somehow" make an EXE (written in VB6) to list all available COMM ports on Win10 OS?

    2. If above is not possible, then what is an alternate solution for it?

    ~
     
    Heramb Phadke, Dec 7, 2018
    #3
  4. WKandler Win User

    VB6 Outlook GetObject

    Runtime Error 429 - ActiveX Component Can't Create Object opening vb6 link to outlook 2007

    Runtime Error 429 - ActiveX Component Can't Create Object received when trying to interface vb6 code with outlook under windows 10. This function was working on this machine but not now. office 2007 pro has since been completely uninstalled and re-installed.
    This same code works on windows 7 and XP machines with office pro 2007. I tried the outlook.exe /regserver trick as administrator but it's not recognized as a valid command.

    Dim myoutApp As Object

    On Error Resume Next

    Set myoutApp = GetObject(, "Outlook.Application")

    If myoutApp Is Nothing Then

    Set myoutApp = CreateObject("Outlook.application")

    End If

    If Err.Number <> 0 Then

    MsgBox "Error " & Err.Number & " Hex(" & Hex(Err.Number) & ". " & Err.Description & " creating Outlook object", vbCritical

    End If

    On Error GoTo 0

    Set OpenOutlook = myoutApp.GetNamespace("MAPI")
     
    WKandler, Dec 7, 2018
    #4
Thema:

VB6 Outlook GetObject

Loading...
  1. VB6 Outlook GetObject - Similar Threads - VB6 Outlook GetObject

  2. outlook

    in Windows 10 Installation and Upgrade
    outlook: cant open outlook on my laptop https://answers.microsoft.com/en-us/windows/forum/all/outlook/e38552c1-8202-42da-9dac-b859382e9c4f
  3. outlook

    in AntiVirus, Firewalls and System Security
    outlook: Hi Outlook keeps sending email after email up to 150 https://answers.microsoft.com/en-us/protect/forum/all/outlook/e24ed952-53a9-4de8-bc56-eb00e0ff2eec
  4. outlook

    in Windows 10 Customization
    outlook: my computer keeps saying my outlook setting s are out of date? What does this mean and how do I fix it? https://answers.microsoft.com/en-us/windows/forum/windows_10-other_settings/outlook/c3fe5db1-b4dd-4a9b-aa00-0ea0fa6d9c69
  5. VB6 on Win10

    in Windows 10 Customization
    VB6 on Win10: Hello All, I have an EXE which was written in VB6 edition. It uses a "Comm Port" and lists all the available COMM ports of the system in a drop down. This EXE works well on Win7 and Win8. But, when we use this EXE (developed in VB6) on Win10 OS, then dropdown containing...
  6. outlook

    in Windows 10 Customization
    outlook: I just got a new pc. I used outlook on my old pc and received my emails on pc and mobile. I`ve signed in on my new pc but are not getting any mail. Everything is working fine was thinking maybe its a setting I need to change....
  7. Outlook

    in Browsers and Email
    Outlook: Hi, I'm not sure where I should post this topic but I need some help. I have been experiencing problems with Microsoft Outlook as of this afternoon. For reasons unknown I cannot send any replies to people that have contacted me nor can I get any "new" boxes open so I...
  8. outlook

    in Browsers and Email
    outlook: Although this hdd is not activated I notice that ALL the spam in Outllook is being transferred to the new drive. I thought a fresh install got rid of all the trash. Is there a way to stop spam from installing on a fresh drive? 19960
  9. VB6 Help file location

    in Windows 10 Software and Apps
    VB6 Help file location: I've installed an old version of VB6 on my Windows 10 64 bit system. The program works fine,but when I click on Help all I get is the message 'Unable to display Help'. Can someone tell me where the help files would have been installed, and the file names? 91008
  10. Old VB6 App

    in Windows 10 Software and Apps
    Old VB6 App: Hi, I'm hoping I can get some suggestions for these small problems I and a few others are having with an old VB6 application which is not working properly under Win10. The vast majority of this program is working fine, just 2 (so far!) small functions are not working. 1....