Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: C# Transelation :blush: Pin
Guffa13-Jul-07 23:57
Guffa13-Jul-07 23:57 
GeneralRe: C# Transelation :blush: Pin
Muammar©14-Jul-07 0:25
Muammar©14-Jul-07 0:25 
GeneralRe: C# Transelation :blush: [modified] Pin
Luc Pattyn14-Jul-07 2:46
sitebuilderLuc Pattyn14-Jul-07 2:46 
GeneralRe: C# Transelation :blush: Pin
Muammar©17-Jul-07 23:41
Muammar©17-Jul-07 23:41 
QuestionCompiling C# application using another C# code Pin
satsumatable13-Jul-07 22:12
satsumatable13-Jul-07 22:12 
QuestionC# COM entry point function Pin
George_George13-Jul-07 21:56
George_George13-Jul-07 21:56 
AnswerRe: C# COM entry point function Pin
Mike Dimmick14-Jul-07 7:52
Mike Dimmick14-Jul-07 7:52 
GeneralRe: C# COM entry point function Pin
George_George15-Jul-07 2:56
George_George15-Jul-07 2:56 
Thanks Mike,


I have made some practices using regasm and following your comments. C# COM development is really defferent from C++ development from entry point. Smile | :)

I am using MSDN sample COM server,

http://msdn2.microsoft.com/en-us/library/t9yw5271(VS.80).aspx[^]

Then regasm will generate the following statements,

REGEDIT4<br />
<br />
[HKEY_CLASSES_ROOT\CSharpServer.InterfaceImplementation]<br />
@="CSharpServer.InterfaceImplementation"<br />
<br />
[HKEY_CLASSES_ROOT\CSharpServer.InterfaceImplementation\CLSID]<br />
@="{C6659361-1625-4746-931C-36014B146679}"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}]<br />
@="CSharpServer.InterfaceImplementation"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\InprocServer32]<br />
@="mscoree.dll"<br />
"ThreadingModel"="Both"<br />
"Class"="CSharpServer.InterfaceImplementation"<br />
"Assembly"="CSharpServer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"<br />
"RuntimeVersion"="v2.0.50727"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\InprocServer32\0.0.0.0]<br />
"Class"="CSharpServer.InterfaceImplementation"<br />
"Assembly"="CSharpServer, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null"<br />
"RuntimeVersion"="v2.0.50727"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\ProgId]<br />
@="CSharpServer.InterfaceImplementation"<br />
<br />
[HKEY_CLASSES_ROOT\CLSID\{C6659361-1625-4746-931C-36014B146679}\Implemented Categories\{62C8FE65-4EBB-45E7-B440-6E39B2CDBF29}]<br />


I find only public class InterfaceImplementation is in the reg file, but public interface IManagedInterface is not in reg file. I think the reason is -- just as you mentioned -- only public public classes with no constructors, or a constructor that takes no arguments are in reg file. Is it correct?

I do not know why regasm only cares about public classes with no constructors, or a constructor that takes no arguments -- why interface is not in reg file?


regards,
George
QuestionFree Audio/Video Library for C# Pin
Sukhjinder_K13-Jul-07 21:42
Sukhjinder_K13-Jul-07 21:42 
AnswerRe: Free Audio/Video Library for C# Pin
Thomas Stockwell14-Jul-07 7:39
professionalThomas Stockwell14-Jul-07 7:39 
QuestionHow to check if RPC Server is available [modified] Pin
beatles169213-Jul-07 21:41
beatles169213-Jul-07 21:41 
AnswerRe: How to check if RPC Server is available Pin
Mike Dimmick14-Jul-07 8:09
Mike Dimmick14-Jul-07 8:09 
GeneralRe: How to check if RPC Server is available Pin
beatles169214-Jul-07 22:39
beatles169214-Jul-07 22:39 
Questionmouse enter event [modified] Pin
treah13-Jul-07 20:49
treah13-Jul-07 20:49 
AnswerRe: mouse enter event Pin
satsumatable13-Jul-07 22:08
satsumatable13-Jul-07 22:08 
GeneralRe: mouse enter event Pin
treah14-Jul-07 0:23
treah14-Jul-07 0:23 
GeneralRe: mouse enter event Pin
Luc Pattyn14-Jul-07 2:54
sitebuilderLuc Pattyn14-Jul-07 2:54 
QuestionC# Layout Pin
satsumatable13-Jul-07 20:03
satsumatable13-Jul-07 20:03 
AnswerRe: C# Layout Pin
Michael Sync13-Jul-07 20:10
Michael Sync13-Jul-07 20:10 
GeneralRe: C# Layout Pin
satsumatable13-Jul-07 20:13
satsumatable13-Jul-07 20:13 
GeneralRe: C# Layout Pin
Michael Sync13-Jul-07 20:24
Michael Sync13-Jul-07 20:24 
GeneralRe: C# Layout Pin
satsumatable13-Jul-07 20:28
satsumatable13-Jul-07 20:28 
GeneralRe: C# Layout Pin
Michael Sync13-Jul-07 20:45
Michael Sync13-Jul-07 20:45 
QuestionHow do I make a URL safe? Pin
Winkles13-Jul-07 19:13
Winkles13-Jul-07 19:13 
AnswerRe: How do I make a URL safe? Pin
Michael Sync13-Jul-07 20:07
Michael Sync13-Jul-07 20:07 

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.