PDA

Click to See Complete Forum and Search --> : Outlook global varible is nothing even dll is loaded


adhavanv
Aug 8th, 2005, 07:47 AM
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

dannymking
Aug 8th, 2005, 08:35 AM
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.

adhavanv
Aug 8th, 2005, 08:45 AM
The think is i need to get mails to the vb app thats why.

dannymking
Aug 8th, 2005, 08:48 AM
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??

RobDog888
Aug 8th, 2005, 09:08 AM
You should be setting your global variable equal to the Outlook.Application that is passed in from your OnConnection procedure. ;)

adhavanv
Aug 8th, 2005, 12:17 PM
Its like this.
Select a mail and click the button . the selected item will be sent to the vb app