Solved

Registry explorer bar

Posted on 2009-04-15
3
347 Views
Last Modified: 2013-12-08
Hi,  
   I have a problem, I built an explorer bar for internet explorer with visual studio 2008, but I don't know how registry it? Someone can help me?
0
Comment
Question by:valerius2003
3 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 125 total points
ID: 24148636
See http://www.codeproject.com/KB/shell/ietoolbartutorial.aspx ("Internet Explorer Toolbar (Deskband) Tutorial") - the 'DllRegisterServer()' function in the code sample shows what is needed to register a toolbar, all you need to do is to use your CLSID there.
STDAPI DllRegisterServer(void)

{

    // registers object, typelib and all interfaces in typelib

	HKEY hKeyLocal = NULL;

	RegCreateKeyEx(HKEY_LOCAL_MACHINE, _T("Software\\Microsoft\\Internet Explorer\\Toolbar"), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_WRITE, NULL, &hKeyLocal, NULL);

	RegSetValueEx(hKeyLocal, _T("{A6790AA5-C6C7-4BCF-A46D-0FDAC4EA90EB}"), 0, REG_BINARY, NULL, 0);

	RegCloseKey(hKeyLocal);
 

    return _Module.RegisterServer(TRUE); // register your COM object as usual

}

Open in new window

0
 
LVL 1

Assisted Solution

by:yamurthy
yamurthy earned 125 total points
ID: 24201520
if you are not sure of how to create CLSID, here's the steps :)
IN VS2008, go to Tools->CreateGUID,
CreateGUID dialog opens. see the attached file for snap shot.
Just copy and paste it in the code provided by jkr.


GUID.JPG
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Citrix XenApp, Internet Explorer 11 set to Enterprise Mode and using central hosted sites.xml file.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now