Solved

Registry explorer bar

Posted on 2009-04-15
3
363 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
allswap challenge 6 96
Beginner to Unreal Engine 4 5 79
Not seen Link button 5 37
WebSite Direction 1 40
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Several part series to implement Internet Explorer 11 Enterprise Mode
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This Micro Tutorial will demonstrate how to add subdomains to your content reports. This can be very importing in having a site with multiple subdomains.

776 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