By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,050 Members | 1,564 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,050 IT Pros & Developers. It's quick & easy.

Register a c# class

P: n/a
Hi,
How can I register a c# class ?

Yoav.
Sep 25 '06 #1
Share this Question
Share on Google+
6 Replies


P: n/a
register it with what? - If you mean that you cannot access the class you
have created then you may want to add a reference to the assembly that
contains the class you require..

James Jenkins
http://www.bandwidthvista.com

"Yoavo" <yo**@cimatron.co.ilwrote in message
news:O2*************@TK2MSFTNGP02.phx.gbl...
Hi,
How can I register a c# class ?

Yoav.

Sep 25 '06 #2

P: n/a
If you want to add it to the registry for use in COM the look up regasm.exe
Use regasm.exe
heres the help output for starters:

Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

Syntax: RegAsm AssemblyName [Options]
Options:
/unregister Unregister types
/tlb[:FileName] Export the assembly to the specified type library
and register it
/regfile[:FileName] Generate a reg file with the specified name
instead of registering the types. This option
cannot be used with the /u or /tlb options
/codebase Set the code base in the registry
/registered Only refer to already registered type libraries
/asmpath:Directory Look for assembly references here
/nologo Prevents RegAsm from displaying logo
/silent Silent mode. Prevents displaying of success messages
/verbose Displays extra information
/? or /help Display this usage message

HTH
Ciaran O'Donnell

"Yoavo" wrote:
Hi,
How can I register a c# class ?

Yoav.
Sep 25 '06 #3

P: n/a
I have an unmanged code in C++ (COM).
I want to write a c# class which implements the c++ interfaces.
I need that the c# class will be registered in the registry (when I build my
c# project).

"James" <ja*********@tamarsolutions.co.ukwrote in message
news:%2****************@TK2MSFTNGP04.phx.gbl...
register it with what? - If you mean that you cannot access the class you
have created then you may want to add a reference to the assembly that
contains the class you require..

James Jenkins
http://www.bandwidthvista.com

"Yoavo" <yo**@cimatron.co.ilwrote in message
news:O2*************@TK2MSFTNGP02.phx.gbl...
>Hi,
How can I register a c# class ?

Yoav.


Sep 25 '06 #4

P: n/a
Hi,
I used regasm, but my c# class is not shown in the registry.
what am I doing wrong ?

"Ciaran O''Donnell" <Ci************@discussions.microsoft.comwrote in
message news:C8**********************************@microsof t.com...
If you want to add it to the registry for use in COM the look up
regasm.exe
Use regasm.exe
heres the help output for starters:

Microsoft (R) .NET Framework Assembly Registration Utility 2.0.50727.42
Copyright (C) Microsoft Corporation 1998-2004. All rights reserved.

Syntax: RegAsm AssemblyName [Options]
Options:
/unregister Unregister types
/tlb[:FileName] Export the assembly to the specified type library
and register it
/regfile[:FileName] Generate a reg file with the specified name
instead of registering the types. This option
cannot be used with the /u or /tlb options
/codebase Set the code base in the registry
/registered Only refer to already registered type libraries
/asmpath:Directory Look for assembly references here
/nologo Prevents RegAsm from displaying logo
/silent Silent mode. Prevents displaying of success
messages
/verbose Displays extra information
/? or /help Display this usage message

HTH
Ciaran O'Donnell

"Yoavo" wrote:
>Hi,
How can I register a c# class ?

Yoav.

Sep 25 '06 #5

P: n/a
>I used regasm, but my c# class is not shown in the registry.
>what am I doing wrong ?
Where in the registry are you looking?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Sep 25 '06 #6

P: n/a
I am looking in HKEY_CLASSES_ROOT
But I also made a search for my class name in the entire registry, and didnt
find it anywere.

"Mattias Sjögren" <ma********************@mvps.orgwrote in message
news:uX*************@TK2MSFTNGP06.phx.gbl...
I used regasm, but my c# class is not shown in the registry.
what am I doing wrong ?

Where in the registry are you looking?
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Sep 26 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.