Results 1 to 6 of 6

Thread: Outlook global varible is nothing even dll is loaded

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    40

    Question Outlook global varible is nothing even dll is loaded

    Hi,
    I have created a com dll. In that i have declared a module level public variable golApp as outlook.application. golApp is then assigned to the Application in InitHandler procedure.

    I also use the dll in vb application. After launching the outlook(the dll is loaded) when i access golApp,its Nothing. It should reference outlook, but its just nothing.

    Thanks
    adhi

  2. #2
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Outlook global varible is nothing even dll is loaded

    adhi,

    Would it not be easier just to set the reference to "Microsoft Outlook x.0 Object Library" in the Tools, references instead of creating a dll.
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  3. #3

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    40

    Re: Outlook global varible is nothing even dll is loaded

    The think is i need to get mails to the vb app thats why.

  4. #4
    Fanatic Member dannymking's Avatar
    Join Date
    Jul 2005
    Location
    Darlington, North East UK
    Posts
    677

    Re: Outlook global varible is nothing even dll is loaded

    That can be achieved through code.. how are you getting the mails into VB at present in terms of content. Are you just pulling the subject, body, To & From??
    Danny

    Never Think Impossible

    If you find my answer helpful then please add to my reputation

  5. #5
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Outlook global varible is nothing even dll is loaded

    You should be setting your global variable equal to the Outlook.Application that is passed in from your OnConnection procedure.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

  6. #6

    Thread Starter
    Member
    Join Date
    Jul 2005
    Posts
    40

    Re: Outlook global varible is nothing even dll is loaded

    Its like this.
    Select a mail and click the button . the selected item will be sent to the vb app

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