Deployment of MFC/COM IE Toolbar

Hi Everyone,

A newbie here. I'm having problems deploying my toolbar that I created
in VS6 VC++ which is based upon MS's KBBar sample. I hope someone here
could point out my mistakes.

The toolbar works fine on my PC. VS6 registers the components and when
I start IE, I see my toolbar under View->Toolbars. I select it and my
toolbar appears and I'm able to click my buttons and the correct
callbacks occur.

I then made a Win32ReleaseMinSize Release and in my output
"ReleaseMinSize" directory, files generated are:
13/03/2006  03:10 PM            45,056 CVToolbarInstall.dll
13/03/2006  03:10 PM             1,023 CVToolbarInstall.exp
13/03/2006  03:10 PM             1,734 CVToolbarInstall.lib
13/03/2006  03:10 PM            31,230 KBBar.obj
13/03/2006  03:10 PM         7,477,556 KBBar.pch
13/03/2006  03:10 PM             8,076 KBBar.res
13/03/2006  03:10 PM            14,228 KBBarBand.obj
13/03/2006  03:10 PM            21,668 KBComboBox.obj
13/03/2006  03:10 PM            18,610 KBToolBarCtrl.obj
13/03/2006  03:10 PM                22 regsvr32.trg
13/03/2006  05:19 PM                 0 ReleaseMinSizeFiles.txt
13/03/2006  03:10 PM             3,353 StdAfx.obj
13/03/2006  03:10 PM            58,368 vc60.idb

So then I downloaded VS Installer and included my 2 files -
CVToolbarInstall.dll and KBBar.tlb.

In the Registry section of the Installer, I at first registered the
following key/values:

[HKEY_CURRENT_ROOT\CLSID\{669695BC-A811-4A9D-8CDF-BA8C795F261C}]
[HKEY_CURRENT_ROOT\CLSID\{669695BC-A811-4A9D-8CDF-BA8C795F261C}\InprocServer32]
@=[TARGETDIR]CVToolbar.dll    "ThreadingModel"="Apartment"
[HKEY_CURRENT_ROOT\CLSID\{669695BC-A811-4A9D-8CDF-BA8C795F261C}\ProgID]
 @="KBBar.KBBarBand.1"
[HKEY_CURRENT_ROOT\CLSID\{669695BC-A811-4A9D-8CDF-BA8C795F261C}\TypeLib]
 @="{37686C62-D497-42E3-BAAB-78D89A74E151}"
[HKEY_CURRENT_ROOT\CLSID\{669695BC-A811-4A9D-8CDF-BA8C795F261C}\VersionIndependentProgID]
 @="KBBar.KBBarBand"


[HKEY_CURRENT_ROOT\Interface\{38493F7F-2922-4C6C-9A9A-8DA2C940D0EE}]
@="IKBBarBand"
[HKEY_CURRENT_ROOT\Interface\{38493F7F-2922-4C6C-9A9A-8DA2C940D0EE}\ProxyStubClsid]
 @="{00020424-0000-0000-C000-000000000046}"
[HKEY_CURRENT_ROOT\Interface\{38493F7F-2922-4C6C-9A9A-8DA2C940D0EE}\ProxyStubClsid32]
 @="{00020424-0000-0000-C000-000000000046}"
[HKEY_CURRENT_ROOT\Interface\{38493F7F-2922-4C6C-9A9A-8DA2C940D0EE}\TypeLib]
 @="{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}"   "Version"="1.0"


[HKEY_CURRENT_ROOT\KBBar.KBBarBand]   @="KBBarBand"
[HKEY_CURRENT_ROOT\KBBar.KBBarBand\CLSID]
@="{669695BC-A811-4A9D-8CDF-BA8C795F261C}"
[HKEY_CURRENT_ROOT\KBBar.KBBarBand\CurVer]   @="KBBar.KBBarBand.1"

[HKEY_CURRENT_ROOT\KBBar.KBBarBand.1]   @="KBBarBand"
[HKEY_CURRENT_ROOT\KBBar.KBBarBand.1\CLSID]
@="{669695BC-A811-4A9D-8CDF-BA8C795F261C}"

[HKEY_CURRENT_ROOT\TypeLib\{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}]
[HKEY_CURRENT_ROOT\TypeLib\{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}\1.0]
@="kbbar 1.0 Type Library"
[HKEY_CURRENT_ROOT\TypeLib\{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}\1.0\0]
[HKEY_CURRENT_ROOT\TypeLib\{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}\1.0\0\win32]
@=[TARGETDIR]CVToolbarInstall.dll"
[HKEY_CURRENT_ROOT\TypeLib\{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}\1.0\FLAGS]
 @="0"
[HKEY_CURRENT_ROOT\TypeLib\{3277CD27-4001-4EF8-9D96-C6CA745AC2F9}\1.0\HELPDIR]
 @=[TARGETDIR]

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\Toolbar]
"{669695BC-A811-4A9D-8CDF-BA8C795F261C}"="CVToolbar"

I deployed the .msi installer file on another machine. Everything
looked correct, all registrations were done and no errors were
reported. I opened IE, and there was my toolbar under Views->Toolbars.
But when I went to select it, nothing happened. No tick next to it,
nothing.

I made a comparison of my registry before and after VS6 registered the
components on my machine and I noticed that apart from the last one for
toolbar, all of the the above registrations were also created for
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\   (as well as HKEY_CURRENT_ROOT\)

So I tried that. It didn't work either.

Should I perhaps include some other dll file in my deployment project?
If so, which one(s)? I'm really at lost as to how to make this work.
Any help would be much appreciated. 

Thanks heaps.

Fink.

0
3/13/2006 4:50:08 PM
vc.mfc 33608 articles. 0 followers. Follow

0 Replies
884 Views

Similar Articles

[PageSpeed] 50

Reply:

Similar Artilces:

deploying outlook to other workstation
Hello, Im trying to find information as to how to deploy Outlook 2003 to other workstations in our office. Most of our workstations have Outlook XP installed and i want to upgrade to 2003. We are running Windows 2003 Server Standard Edition. Ive researched this topic pretty much all over and found that you can do it on the Small Business Edition of 2003 server, but no info on the standard edition. Any info on this matter is greatly appreciated. Thanks for looking. In news:etWvZHZ6GHA.2208@TK2MSFTNGP04.phx.gbl, JG <jgustilo@gmail.com> typed: > Hello, > > Im trying ...

ErrorLink2202 When Using MFC
error LNK2022: metadata operation failed I was using DirectShow(Vidoe Capture) and MFC when I meet with thi error. The IDE is VS2003. how to deal with it? TH - Tog ----------------------------------------------------------------------- Posted via http://www.codecomments.co ----------------------------------------------------------------------- ...

Deploying CRM Desktop Client through group policy
Hi, I'm just trying to deploy the desktop client in a test environment. When I publish the desktop client through GPO it works fine, but when I try the assign option instead it doesnt work. When the user logs on, it says that it is installing the managed software, but it doesnt actually install it. Any ideas? are you assigning it to the user or workstation? ============================== John O'Donnell Microsoft CRM MVP http://www.crowecrm.com "SophieK" <SophieK@discussions.microsoft.com> wrote in message news:145C14AB-D8EE-40B4-A8A3-F1960642D40C@microsoft.co...

...selling MyTrafficMachine.com for $197
Hi, Justin Blake here with a quick question. Everyone on the Internet needs traffic to their websites, right? So would you be interested in earning an extra thousand dollars by giving those people a *traffic machine*? http://www.mytrafficmachine.com/ref.cgi?ufo53 * We'll pay you a $60 reward per $197 sale. * We'll also pay you $20 per 2nd tier sale. * 5 out of 100 website vistors purchase. Sometimes we send out a "half-off promo" page on the website for $97 = $30 per sale for you. The product is called: "The MyTrafficMachine(TM) software" The selling pric...

Deployment
I have moved on to testing our deployment. The app data destination is not on the drop down in 9.0. But I've found that entering: [LocalAppDataFolder]\MyAppData Makes it work flawlessly. So I'm satisfied with my deployments now. It gets you one folder for all the data, with full privileges for your app, tested on 7. Also, Instyler SmartSetup, (I'm plugging the guy as I'm very happy with his software), works without the need to change shortcuts to non-advertised. I use to change them to prevent self healing with the old Instyler. And if you use the regist...

IE window closing automatically
Hi, I have a activex application which is closing automatically in IE8(closing that application window alone, other IE windows remains) without any error messages. Application works for a minute and then closes, tried puting debug messages in WM_QUIT,WM_CLOSE, but it's not coming there.Checked the process in task manager, there is no problem with memory, virtual memory. The log for IE is always empty in event viewer. Do i need to enable logging for IE8? I'm using Windows XP. How to find the problem that causing the application to close? Thanks, Sony Developer-specific ...

Using ADO.NET with exisitng MFC Application
Hi Friends, Please help me for make a solution for the following problem : - I would like to use SQL server 2000 with my exisitng MFC based data acquision/presentation application. I prefer to use the ADO.NET as the interface (with new its nice design and features). As an experimental purpose i just compiled MFC application with /clr switch. (planning to add ADO.NET connectivity code). Is it a good way to proceed this way? The code compiled "fine" but doesn't run (but it took 5times more than the actual compilation time. ) It breaks most the calls with toolbars class...

Deployment and DLL
Hi, I'm trying to develop a web application in C# with VisualStudio 2008; I have purchased a third party library that allows me to manipulate Excel files. The .exe installed assemblies, documentation and examples on my PC and I have added to my project (an ASP.NET Web Site) the references to the assemblies of this component. All works fine. Now I'd like to deploy my project to the development server. The documentation says that the assemblies must be inside the .bin folder of the deployed project... I've deployed the project but the .bin folder doesn't conta...

COM support in my application
Hello, I have a MFC (dlg) application with several child dialogs. Each child dialog has it own functionality e.g., one child dialog can be used to test the performance of your hard disk, another child dialog can be used to play audiocd's, ... But now I want that these child dialogs can be used by other applications (to exchange test results, to display the child dialog from within other applications, etc. ). Maybe directly or maybe indirectly through the main application. I read a little about COM. Can I use this ? or are there better/other ways ? If you wan to expose functionality ...

how do I set up a "send to spam" icon on my toolbar in MS Outlook?
I am bothered with sooooo much spam emails and I would like to be able to select these emails....specify them as spam. Then, if I receive them again they will go automatically into my spam folder with no action on my part. Also, is there a way to delete the contents of the Spam Mail Folder without selecting all these emails and sending them to the Delete Folder? Since you fail to share with us which Outlook version you're using (and also expect everyone to know how you configure your Outlook), I'll assume you have Outlook 2003 and connect to Exchange 2003 server. How about tha...

On Amazon.com, Outlook 2007 says "compatible with XP, Vista"..
I have Office Home & Student Edition and want to just buy Outlook online from somewhere like Amazon. It is listed as being compatible with XP and Vista but I recently upgraded to Windows 7. Will it work with Windows 7? Yes, it will work just fine on Win7. -- Diane Poremsky [MVP - Outlook] Outlook Tips: http://www.outlook-tips.net/ Outlook & Exchange Solutions Center: http://www.slipstick.com/ Outlook Tips by email: mailto:dailytips-subscribe-request@lists.outlooktips.net EMO - a weekly newsletter about Outlook and Exchange: mailto:EMO-NEWSLETTER-SUBSCRIBE-REQUEST@P...

MFC Stuck in a endless loop (in _AfxRemoveDefaultButton)
I'm running into a strange problem with my MFC based UI application. I'm using MS DevStudio.net 2003 on Win-XP. Occasionally my app just hangs & there is no know way of reproducing the problem. I used WinDBG to find out the line of code where it hangs - It always hangs in while loop in _AfxRemoveDefaultButton function at [f:\vs70builds\3077\vc\mfcatl\ship\atlmfc\src\mfc\occdlg.cpp @ 454] line in mfc source code as shown below: 0012fbbc 7c29e9d3 ntdll!RtlLeaveCriticalSection+0x12 0012fbe8 7c29c446 MFC71D!CThreadLocalObject::GetData+0xd3 [f:\vs70builds\3077\vc\mfcatl\ship\atlmfc\...

COM Callout Partially Instantiated Object
I have a registered com callout and when I perform a function such as an update, I see in the component services snap-in that the package is being instantiated. However, the callout class is not. There are no errors in the logs and have the same issue with a component compiled with 1.0 of the framework as well as 1.1. Has anyone run into this before? Thanks in advance. Shannon, The following TechKnowledge article explains fairly completely how to get a callout running. Please verify that you have done the steps indicated. http://www.greatplains.com/techknowledge/techknowledge.asp...

C# is to C++ as ___ is to MFC?
Help me fill in the blank please. I know of .Net, and I know vaguely about c#, but I've heard that .net is replacing MFC somehow, but then I've read about .Net for MFC. Is there something in the .NET suite that directly replaces MFC? Is it just called the .NET framework? It seems like that would encompass ASP+, C+, etc... as well. Dazed and confused, Cindy | but I've heard that .net is replacing MFC somehow, I am not sure if this makes sense. There is no replacement. You can use .Net to create applications similar to MFC. But MFC is far too rich compare to .Net, at least...

Deploy Reporting Services
Hi, is the same or it works the same way if i create mi reports in VS.NET2003 with sql 2000 y SRS 2000 in another machine not CRM server and only upload a ..rdl file, or is necessary o more correct if install VS.NET 2003 in the CRM server and there create my reports and deploy???? Thanks in advance You can develop your reports on a client machine and upload the RDL file. -- Matt Wittemann, CRM MVP http://icu-mscrm.blogspot.com "Miguel" wrote: > Hi, > is the same or it works the same way if i create mi reports in VS.NET2003 > with sql 2000 y SRS 2000 in another mach...

Forecast available on site : http://www.forecastmarket.com, Next Forecasts at midday #2
Best Regards ! Al ...

How to dynamically modify the toolbar
Hi all, I would like to dynamically modify the toolbar. For example, I would like to remove some buttons during application startup. Does anyone know how I can do this? Thanx, Alex ...

Porting MFC Control to ArtiveX
Hi, I have never wrote an ActiveX control in MFC. I implemented my own ComboBox logic by subclassing a Windows ComboBox using MFC control and it works as it should . I need this to work in VB too, hence I need to port it to ActiveX, problem is, I don't know how. Can you please give me some leads and examples to help me get started ? Thank you, Rick. ...

Exchange 2003 deployment
I have set up to domains, x.com and y.x.com as child I have set up exchange server 2003 on x.com, i have not installed exchange server at y.x.com I have set up management tools to DC at y.x.com, when i create a user, my exchange servet at x.com i displayed but mailbox store is null. Do i have to setup exchange also to y.x.com in order to use exchange both at x.com and y.x.com The account that you are logged in with needs to have the correct permissions in the Exchange organization to see the mailbox stores, the minimum permissions needed would be View Only Admin. -- Mark Fugatt Exchange...

Can you place a combo box in a custom toolbar?
I am using combo box selections to control page fields within pivo tables. Is is possible to place these combo boxes in a custom toolbar How would this be done ----------------------------------------------- ~~ Message posted from http://www.ExcelTip.com ~~View and post usenet messages directly from http://www.ExcelForum.com ...

I am beginer in MFC need some help
Hi! dear all users i am beginer in MFC but know C++ win32 console apllication syntex and all concepts but don't know how to USE MFC so please guide me ........... On 9 abr, 10:22, Xohaib <zohaib.shir...@gmail.com> wrote: > Hi! dear all users i am beginer in MFC but know C++ win32 console > apllication syntex and all concepts but don't know how to USE MFC so > please guide me ........... You need to be more specific about what you want to do with MFC in order to get help from this or any other MFC related group. The MFC are a lot of classes and you can do lots of thing ...

Deployment Forum
I'm developing an app in VS.net using C++. I want to have my deployed app automatically uninstall any installed copies during the install process. I've set the "RemovePreviousVersions" to true in the "Deployment Project Properties" but that wasn't enough. Could you tell me what forum would be best to address this problem? Thank, Neil ...

Config Transforms with Web Deployment Projects
Can you use Config Transforms with Web Deployment Projects. I couldn't get it to work in VS2010. Nothing happened. Other than the transform files got copied over. I turned off the web.config files section replacement option in the web deployment project. Hi Chuck, Please check if you are using correct config file (web.debug.config for DEBUG web.release.config for RELEASE) Here are my test steps: 1. Create a C# web application in VS 2010 2. Add follow lines in web.config: <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"&...

MFC Programming
Hi What is the best book or tutorial for programming in Visual C++ MFC ? Programming Windows With MFC by Jeff Prosise ( ISBN: 1572316950 ) -- Cheers Check Abdoul [VC++ MVP] ----------------------------------- "Egan" <etow1288@yahoo.com> wrote in message news:4B821FF1-57B3-4389-9DAF-E04C6A8C9CE7@microsoft.com... > Hi > > What is the best book or tutorial for programming in Visual C++ MFC ? > Another great thing to do is look at sites: http://www.codeproject.com http://www.codeguru.com There are lots of great "getting started" articles an...

Outlook 2003: deploy MAPI profile
Hello, I am running a Windows 2000 Active Directory network, with Exchange Enterprise 2003. We are looking at ways of deploying MAPI profile settings automatically for each user, removing the need for us to setup the user profile for Outlook, when the user log's on. We have thought about using roaming profiles, however are wondering if there is a way to accomplish what we want without having to deploy roaming profiles. Ideally, we would like to profile to automatically connect to the exchange server for the user logged on. Would this be done via a customisation of Outlook on the clien...