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
 
Back
Top