How does the project know where to put a dll?

  • Thread starter Thread starter jm
  • Start date Start date
J

jm

I have the project and it compiles, puts the toolband in Internet
Explorer, etc. But I CANNOT figure out how it knows where to put it
in the registry to make it appear in the browser. It is a Windows
Control Library type of project.

Stupid I know, but I downloaded the file, edited it to my needs, and
well, I am trying to understand it more fully:

[Guid("my guid")]
[BandObject("webbar", BandObjectStyles.Horizontal |
BandObjectStyles.ExplorerToolbar , HelpText = "IE Bar")]

but this doesn't tell it where to put the GUID at. So, how does it
know? I'm tired not really understanding things! (sorry for ranting)
Thank you.
 
I assume that the BandObject refere to some form of COM object, since IE
uses COM, not .NET
COM objects are registered in a central location, HKEY_CLASSES_ROOT and
HKEY_CLASSES_ROOT\CLSID

In the Project properties, under "Build", there is a setting "Register for
COM Interop",
if this is True, Visual studio automatically registers the result file. If
you want to register it later, on another machine,
use the regasm.exe program.

Chris
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top