Click here to Skip to main content
16,015,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite3-Feb-04 4:40
KingTermite3-Feb-04 4:40 
GeneralRe: COM/C# datatype mismatch Pin
KingTermite4-Feb-04 7:28
KingTermite4-Feb-04 7:28 
GeneralCalling a .NET Component from a COM Component Pin
Shahin772-Feb-04 9:11
Shahin772-Feb-04 9:11 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart2-Feb-04 9:57
protectorHeath Stewart2-Feb-04 9:57 
GeneralRe: Calling a .NET Component from a COM Component Pin
Shahin772-Feb-04 11:12
Shahin772-Feb-04 11:12 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart2-Feb-04 11:45
protectorHeath Stewart2-Feb-04 11:45 
GeneralUrgent help (Calling a .NET Component from a COM Component) Pin
Shahin773-Feb-04 4:16
Shahin773-Feb-04 4:16 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart3-Feb-04 6:30
protectorHeath Stewart3-Feb-04 6:30 
COM registration - like almost everything else - is in the system registry. Even the categories are nothing more than GUIDs, so you can actually implement a catagory just by adding a GUID to your control's registration. Unfortunately, you can't do this through any attributes. All you could do is add a registration and unregistration method and use the ComRegisterFunctionAttribute and ComUnregisterFunctionAttribute on those methods.

If you just need this for your own development, there are two other things you can do. You can open the VBP project in a vanilla text editor like notepad.exe and add a new component (see the existing lines for examples), save it, then reload your VB project, or you can use regedit.exe to add the catagory like I mentioned above (this shouldn't become a common practice, though, since by implementing some catagories you imply that you support certain interfaces):
  1. Click Start->Run
  2. Type "regedit" (without quotes) and click "OK"
  3. Expand HKEY_CLASS_ROOT\CLSID and find the GUID for your component (the class, not the interface, which you should'be attributed with the GuidAttribute).
  4. Expand the GUID
  5. Expand "Implemented Catagories"
  6. Right-click on "Implemented Catagories" and select "New->Key"
  7. Type "{40FC6ED4-2438-11CF-A3DB-080036F12502}" (without quotes) and hit return.
  8. Restart VB and you should now see it.


 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Shahin774-Feb-04 6:48
Shahin774-Feb-04 6:48 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart4-Feb-04 7:04
protectorHeath Stewart4-Feb-04 7:04 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Shahin774-Feb-04 7:42
Shahin774-Feb-04 7:42 
GeneralRe: Urgent help (Calling a .NET Component from a COM Component) Pin
Heath Stewart4-Feb-04 8:41
protectorHeath Stewart4-Feb-04 8:41 
GeneralRe: Calling a .NET Component from a COM Component Pin
KingTermite2-Feb-04 10:14
KingTermite2-Feb-04 10:14 
GeneralRe: Calling a .NET Component from a COM Component Pin
Heath Stewart3-Feb-04 5:56
protectorHeath Stewart3-Feb-04 5:56 
GeneralIDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 9:05
s.keller2-Feb-04 9:05 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Nick Parker2-Feb-04 9:15
protectorNick Parker2-Feb-04 9:15 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 9:21
s.keller2-Feb-04 9:21 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Heath Stewart2-Feb-04 9:49
protectorHeath Stewart2-Feb-04 9:49 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 9:55
s.keller2-Feb-04 9:55 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Heath Stewart2-Feb-04 9:58
protectorHeath Stewart2-Feb-04 9:58 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 10:45
s.keller2-Feb-04 10:45 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
Heath Stewart2-Feb-04 10:50
protectorHeath Stewart2-Feb-04 10:50 
GeneralRe: IDocHostUIHandler, FilterDataObject Pin
s.keller2-Feb-04 11:02
s.keller2-Feb-04 11:02 
GeneralTextbox: Convert to float and backwards Pin
sps-itsec462-Feb-04 8:09
sps-itsec462-Feb-04 8:09 
GeneralRe: Textbox: Convert to float and backwards Pin
Charlie Williams2-Feb-04 8:37
Charlie Williams2-Feb-04 8:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.