A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Outlook Application variable problem



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old February 12th 06, 02:25 PM posted to microsoft.public.outlook.program_addins
Ram
external usenet poster
 
Posts: 19
Default Outlook Application variable problem

Hi,

I am facing a typical problem,in storing the application value. Here
what i have done. I am using VC++ 6.0

I have created ComAddin ,in that i have created CommandButton on
Inspector window. And in the Button event(click event) i am used to display
a dialog box.
Let us take ComAddin - class :CAddin
Interface :IAddin
For Dialog Box(which is derived from CAxDialogImpl) class --
CSample.

i have created a Edit box and a Button on that Dialog. My Objective
is when that dialog button click event occurs, the text which is edit have
to append to the current mail(the mail is in HTML format). Actually this
functionality is implemented in that CAddin with in a method take as
"ADD_TEXT".

in this ADD_Text method i used CComPtr
Outlook::_Applicationm_application variable and Active_Inspector to get
the current working Inspector windows. And useing this we can add the text
at the end the mail text. this task has been completed.

But when i call this method from CSample (dialog class) in button
click event by creating instance for CAddn class,it does not works. When i
researched for the cause. the application varianble(m_application) value
becomes null ,when that method calls from this CSample method.?

Here how can make it works, the CAddin method is called
from button click event of Dialog blass

--
Regards,

RamakoteswaraRao Koti



Ads
 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I pass parameters to application invoked by Outlook rule? Sergy Stouk Outlook - Installation 1 March 20th 06 12:18 PM
Microsoft Outlook problem Jiff Cliff Outlook - General Queries 1 March 5th 06 02:34 AM
Outlook problem with Contacts Rocketdoc Outlook - General Queries 5 March 3rd 06 10:26 PM
Outlook.exe won't shut down when closing the application. Ron S Outlook - Installation 1 February 23rd 06 07:59 PM
message..%1 is not a valid Win32 application? the file ext is Quandary Outlook - General Queries 0 January 25th 06 08:20 AM


All times are GMT +1. The time now is 04:26 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.