Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 380
  • Last Modified:

Registry explorer bar

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
valerius2003
Asked:
valerius2003
2 Solutions
 
jkrCommented:
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
 
yamurthyCommented:
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now