Solved

Registry explorer bar

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
WPF issue with Trigger 2 91
Adjust the position 3 45
server DNS address could not be found 22 124
Cannot convert Web page to Adobe PDF with Adobe Chrome extension 3 61
Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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…
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.

932 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

13 Experts available now in Live!

Get 1:1 Help Now