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
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.
Re: Outlook global varible is nothing even dll is loaded
The think is i need to get mails to the vb app thats why.
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??
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. ;)
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