Solved

Registry explorer bar

Posted on 2009-04-15
3
370 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

#Citrix #Internet Explorer #Enterprise Mode #IE 11 #IE 8
Part One of the two-part Q&A series with MalwareTech.
This video teaches viewers about errors in exception handling.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

623 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