|
-
Aug 8th, 2005, 07:47 AM
#1
Thread Starter
Member
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
-
Aug 8th, 2005, 08:35 AM
#2
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
-
Aug 8th, 2005, 08:45 AM
#3
Thread Starter
Member
Re: Outlook global varible is nothing even dll is loaded
The think is i need to get mails to the vb app thats why.
-
Aug 8th, 2005, 08:48 AM
#4
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
-
Aug 8th, 2005, 09:08 AM
#5
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 Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API 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 
-
Aug 8th, 2005, 12:17 PM
#6
Thread Starter
Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|