 |
|
|
Hi , I have ran this application,Addin is registerd n can be seen in Tools->Options->Others->AdvancedOptions->....but the buttons created thru this appis not visible in OUTLOOK? i am using Office 2003.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi, I'm also getting the same problem for my toolbar,after some observation I found that if Outlook.EXE remains in task manager or u are opening Outlook UI second time then Toolbar is not visible for second UI.
|
| Sign In·View Thread·PermaLink | 3.00/5 (3 votes) |
|
|
|
 |
|
|
This same thing is happened when i am working also. I am using the Office 2000. The second time of clicking the UI Outlook, the botton is not visible in tool bar and the Outlook.exe also remains in the task manager after quitting the outlook.
Regards, Srinivasan
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
Is this an Add-in for Microsoft Outlook or Outlook Express. You have mentioned Outlook Express specifically in the lower half of your article. AFAIK Outlook Express cannot be extended. Is it a typo?
---
Hakuna-Matada  It means no worries for the rest of your days... It's our problem free, Philosophy <marquee behavior=alternate scrollamount=5 scrolldelay=50> </marquee>
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
 |
|
|
Hi all, Can anyone tell me how to add a menu item to File|New Item?? Suppose I am adding an item MyItem there,so, the the path of MyItem will be File|New|Myitem.
I have the corresponding code to do this in VB. And this is
Set Button = Application.ActiveExplorer.CommandBars("Menu Bar").Controls(1).Controls(1).Controls.Add(Type:=msoControlButton, Temporary:=True)
But I tried to convert this and failed. For convenience I've written the code here that I tried.
CComVariant vMenuBarTag("Menu Bar"); // get CommandBar that is Outlook's main menu spCmdBar = spCmdBars->GetItem(vMenuBarTag); // This could be also Acheived by // spCmdBar = spCmdBars->get_ActiveMenuBar() ATLASSERT(spCmdBar); // get menu as CommandBarControls spCmdCtrls = spCmdBar->GetControls(); ATLASSERT(spCmdCtrls);
CComVariant vFileMenuTag("File"); spCmdCtrl= spCmdCtrls->GetItem(vFileMenuTag); ATLASSERT(spCmdCtrl); TRACE(spCmdCtrl->GetCaption()); // I got File Here - Right // a CommandBarPopup interface is the actual menu item CComQIPtr ppFileMenuBar(spCmdCtrl); ATLASSERT(ppFileMenuBar); spCmdBarCtrls = ppFileMenuBar->GetControls(); ATLASSERT(spCmdBarCtrls); CComVariant vNewMenuTag(1); // "New" Menu index should be 1
spCmdCtrl = spCmdCtrls->GetItem(vNewMenuTag); ATLASSERT(spCmdCtrl); TRACE(spCmdCtrl->GetCaption()); // I should get here New but I got File - Wrong If I would get the Controls Collection for the File|New menu, i could add there buttons. But i can't find it right.
If anybody can provide me the help about this I will be very very greatfull to him.
Otherwise, I've convert whole project to VB.
Regards Shihan
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
1) When you launch another Explorer, the customized button doesn't appear. It's easy to understand why: the OnConnection event is fired just when Outlook exe starts, and consequently, that's not the good place to install the custom button. To solve this bug, your add-In need to listen to the ExplorersEvents to get the NewExplorer event. Then, listen to the ExplorerEvents of this particular new Explorer, add catch the "Activate" Event => at this time, you can get the toolBars of the Explorer and add your button (only once per Explorer of course). DispEventUnAdvise Explorer & button event on the Close Event of the Explorer. (If anybody is interrested, I can send him the code).
2) A crash can occurs here: spApp->ActiveExplorer(&spExplorer); // get the CommandBars interface that represents Outlook's // toolbars & menu items HRESULT hr = spExplorer->get_CommandBars(&spCmdBars);
You can't assume that spExplorer is not NULL (i.e. at the connexion there is an active explorer). This is not always true: when you start Outlook with Automation, there is no active explorer. => You need to test spExplorer before going further on.
|
| Sign In·View Thread·PermaLink | 1.75/5 (3 votes) |
|
|
|
 |
|
|
First time opening the Outlook after registering DLL, OnConnection method is called So the button is added to the outlook tool bar. After closing and reopening the outlook the button is not visible because the OnConnection method is not called for second time. (I used LoadBehavior as Load at startup (i.e. '00000003'). I want to solve this problem what I have to do. I am eager to get your code.
Regards, Srinivasan
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
Do you still need this code? If yes, I will have to dig into my PC to find it. But I believe that you are maybe not releasing properly the resources, and maybe your add in is not unload. Did you check on the process list that there is no instance of outlook running after you close it ? Cheers, Guillaume.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi i have the problem. That the position of my toolbar button is not saved. If i change the position of my addin toolbarbutton and restart outlook, the button is on the old position. Does anyone know how i can get the old position?? Thx
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
Hi Other than Debug modules, When I try to compile I am getting Linking Error in Release Modules
--------------------Configuration: MyAddin - Win32 Debug-------------------- Compiling resources... Compiling... Addin.cpp Generating Code... Compiling... MyAddin.cpp Generating Code... Linking... Performing registration
MyAddin.dll - 0 error(s), 0 warning(s) --------------------Configuration: MyAddin - Win32 Unicode Debug-------------------- Compiling resources... Compiling... Addin.cpp Generating Code... Compiling... MyAddin.cpp Generating Code... Linking... Performing registration
MyAddin.dll - 0 error(s), 0 warning(s) --------------------Configuration: MyAddin - Win32 Release MinSize-------------------- Compiling resources... Compiling... Addin.cpp MyAddin.cpp Generating Code... Linking... Creating library ReleaseMinSize/MyAddin.lib and object ReleaseMinSize/MyAddin.exp LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main ReleaseMinSize/MyAddin.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
MyAddin.dll - 2 error(s), 0 warning(s) --------------------Configuration: MyAddin - Win32 Release MinDependency-------------------- Compiling resources... Compiling... Addin.cpp MyAddin.cpp Generating Code... Linking... Creating library ReleaseMinDependency/MyAddin.lib and object ReleaseMinDependency/MyAddin.exp LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main ReleaseMinDependency/MyAddin.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
MyAddin.dll - 2 error(s), 0 warning(s) --------------------Configuration: MyAddin - Win32 Unicode Release MinSize-------------------- Compiling resources... Compiling... Addin.cpp MyAddin.cpp Generating Code... Linking... Creating library ReleaseUMinSize/MyAddin.lib and object ReleaseUMinSize/MyAddin.exp LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main ReleaseUMinSize/MyAddin.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
MyAddin.dll - 2 error(s), 0 warning(s) --------------------Configuration: MyAddin - Win32 Unicode Release MinDependency-------------------- Linking... Creating library ReleaseUMinDependency/MyAddin.lib and object ReleaseUMinDependency/MyAddin.exp LIBCMT.lib(crt0.obj) : error LNK2001: unresolved external symbol _main ReleaseUMinDependency/MyAddin.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe.
MyAddin.dll - 2 error(s), 0 warning(s)
How can I fix it??
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
|
MSDN's answer : _ATL_MIN_CRT and Link Error "unresolved external symbol _main" When you build a Release version of an ATL project, you can get the following link error: LIBCMT.LIB(crt0.obj) : error LNK2001: unresolved external symbol _main This error occurs if you are using CRT functions that require CRT startup code. The Release configuration defines _ATL_MIN_CRT, which excludes CRT startup code from your EXE or DLL.
To avoid this error, do one of the following:
Remove _ATL_MIN_CRT from the list of preprocessor defines to allow CRT startup code to be included. On the Project menu, click Settings. In the Settings For: drop down list, choose Multiple Configurations. In the Select project configuration(s) to modify dialog box that appears, click the check boxes for all Release versions, and then click OK. On the C/C++ tab, choose the General category. Remove _ATL_MIN_CRT from the Preprocessor definitions edit box.
If possible, remove calls to CRT functions that require CRT startup code. Instead, use their Win32 equivalents. For example, use lstrcmp instead of strcmp. Known functions that require CRT startup code are some of the string and floating point functions.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
In my experimenting with Visual Studio 2005, in order to get any blank ATL dll to compile it is neccesary to disable exception handling as is documented in many places on msdn.
As you add to your addin you will discover other functions that are not compatable with _ATL_MIN_CRT. I have found that it is important to import "raw_interfaces_only" as in
#import "D:\Program Files\Microsoft Office\Office10\MSOUTL.olb" rename_namespace("Outlook"), named_guids, raw_interfaces_only using namespace Outlook; which removes the ability to write something like this
spBarControls = spNewCmdBar->GetControls(); and rather use
spNewCmdBar->Get_Controls(&spNewCmdBar);
Another thing I found is that using variant_t like this was a problem
spCmdBars->Add(variant_t(L"NameOfBar"), vPos, vEmpty, vTemp,&spNewCmdBar); but rather use
CComVariant vName("NameOfBar"); spCmdBars->Add(name, vPos, vEmpty, vTemp,&spNewCmdBar);
I did alot of searching and testing until I came up with this Info hope it helps you out there.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
My understanding at the moment is that one COM-add in dll could be used in all versions of Microsoft Outlook (Outlook 2000 / XP / 2003) ? Could somebody verify this idea to me . I guess this is how it goes, so you do not have to publish three or more different binaries of your COM add-in component.
Starting with COM addin's
|
| Sign In·View Thread·PermaLink | 3.00/5 (3 votes) |
|
|
|
 |
|
|
 |
|
|
Rubbish. Code using a class generated from the Outlook 2k typelib will work on O2k3. The reverse is also true. One build will work with O2k, O2k2 and O2k3. How do I know? I just tried it. Also IMO this is a really poor article with even worse sample code.
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I download the sample, but the linker reports error: "LIBCMT.lib (crt0.obj) : error LNK2001: unresolved external symbol _main eleaseUMinDependency/MyAddin.dll : fatal error LNK1120: 1 unresolved externals"
I have not change any setting of the project, but why does it report this error? And how to resolve it?
|
| Sign In·View Thread·PermaLink | 3.00/5 (3 votes) |
|
|
|
 |
|
|
I have the same link error, but nobody seems to be able to help us. Did you get an answer since June? If so, could you help me?
excaliburger
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Since I've wanted to write an outlook plugin, I find this tutorial very helpful. It was simple and clean (at least for me) and I've learned what I needed. I suggest you to overview it again, fix the images problem and use the default style as the other articles, so other readers will find it useful too. That way, I bet you can gain a higher rating for your great article.
Whoa! The internet is even on computers now!
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Simply because people feel that this article is just rewrite version of article originally contributed by Amit Dey. At least make different so that people feel this is not a straight copy of people works.
Original article is http://www.codeproject.com/com/outlookaddin.asp
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I'm realy curious how well this works because I was under the impression that it wasn't possible to do OutlookExpress plugins. But I'll hold off downloading the sample/source or even rating this article until it's cleaned up a bit
[ Jason De Arte | Toy Maker | 1001010.com ]
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Your images are not showing up because they are specified with a local file path: file:///C:/Documents%20and%20Settings/Deepu/Desktop/MyAddin/Options.JPG
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
hi Dan,
feel free to modify the code.it will work with any icons replaced.just give a try.
urs, chakkaradeep.c.c
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
|
Is this for MS Outlook from MS Office Suite, or Outlook Express coming with Internet Explorer?
And please reformat your article and use the site stylesheet.
Paolo
------ Why spend 2 minutes doing it by hand when you can spend all night plus most of the following day writing a system to do it for you? - (Chris Maunder)
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |