Click here to Skip to main content
15,896,606 members
Home / Discussions / C#
   

C#

 
GeneralComponent based programming in C# (newbie!) Pin
AaronStibich7-Nov-02 16:41
AaronStibich7-Nov-02 16:41 
I work on a company that makes heavy use of the COM\ATL framework for C++ component based programming. We would like to move to .Net\C#, but haven't quite resolved how to achieve all of our criteria. Outstanding issues are:

1. Type libraries
I don't yet see a concept of a binary type definition file in C#. Every C# example I've seen that defines an interface does so in a .cs file.

public interface ISayHello
{
// define properties and methods
}

This has two problems: you cannot register your interface (tlb's can be registered) and it is editable(I like giving out tlb's, knowing that the interface won't be tampered with). Can you still use idl in C#? Can you import tlb's?

2. Registry Groups
We register our COM components using a registry groups. This allows us to programmatically query the registry for a list of our company's servers. It is very important for us to be able to filter the registry contents in this way. I think I understand that the global assembly cache now replaces the registry, but I don't see a way to programattically search it, much less search it with a group filter.

3. MTA\STA
We currently create our servers in the MTA for performance reasons, and because it's more deterministic. Is there a MTA\STA concept in .Net? Is there still a message pump?

Sorry for the long post. I'd appreciate whatever advise, links or book titles that come to mind.

Aaron
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker7-Nov-02 17:44
protectorNick Parker7-Nov-02 17:44 
GeneralRe: Component based programming in C# (newbie!) Pin
Stephane Rodriguez.7-Nov-02 19:11
Stephane Rodriguez.7-Nov-02 19:11 
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker8-Nov-02 1:54
protectorNick Parker8-Nov-02 1:54 
GeneralRe: Component based programming in C# (newbie!) Pin
Stephane Rodriguez.8-Nov-02 2:26
Stephane Rodriguez.8-Nov-02 2:26 
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker8-Nov-02 3:36
protectorNick Parker8-Nov-02 3:36 
GeneralRe: Component based programming in C# (newbie!) Pin
Stephane Rodriguez.8-Nov-02 3:45
Stephane Rodriguez.8-Nov-02 3:45 
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker8-Nov-02 17:20
protectorNick Parker8-Nov-02 17:20 
GeneralRe: Component based programming in C# (newbie!) Pin
Stephane Rodriguez.8-Nov-02 19:26
Stephane Rodriguez.8-Nov-02 19:26 
GeneralRe: Component based programming in C# (newbie!) Pin
Nick Parker9-Nov-02 2:07
protectorNick Parker9-Nov-02 2:07 
General.INI file usage in C# Pin
Darryl Borden7-Nov-02 11:54
Darryl Borden7-Nov-02 11:54 
GeneralRe: .INI file usage in C# Pin
Nick Parker7-Nov-02 13:20
protectorNick Parker7-Nov-02 13:20 
GeneralBy the way, ... Pin
Anonymous7-Nov-02 20:33
Anonymous7-Nov-02 20:33 
GeneralRe: By the way, ... Pin
Nick Parker8-Nov-02 3:40
protectorNick Parker8-Nov-02 3:40 
GeneralRe: .INI file usage in C# Pin
Karavaev Denis8-Nov-02 1:10
Karavaev Denis8-Nov-02 1:10 
GeneralClass/Collection tutorial Pin
hammackj7-Nov-02 10:34
hammackj7-Nov-02 10:34 
GeneralBeginner Q: How to create a splash screen Pin
matthias s.7-Nov-02 8:28
matthias s.7-Nov-02 8:28 
GeneralRe: Beginner Q: How to create a splash screen Pin
Daniel Turini7-Nov-02 8:43
Daniel Turini7-Nov-02 8:43 
GeneralRe: Beginner Q: How to create a splash screen Pin
matthias s.8-Nov-02 0:29
matthias s.8-Nov-02 0:29 
GeneralRe: Beginner Q: How to create a splash screen Pin
Ray Cassick8-Nov-02 8:16
Ray Cassick8-Nov-02 8:16 
GeneralSerializing an Exception object Pin
solidstore7-Nov-02 7:12
solidstore7-Nov-02 7:12 
GeneralRe: Serializing an Exception object Pin
Franz Pikal7-Nov-02 22:00
Franz Pikal7-Nov-02 22:00 
GeneralRe: Serializing an Exception object Pin
solidstore7-Nov-02 22:47
solidstore7-Nov-02 22:47 
GeneralRe: Serializing an Exception object Pin
Franz Pikal7-Nov-02 23:05
Franz Pikal7-Nov-02 23:05 
GeneralDynamic load of objects and its effects Pin
LongRange.Shooter7-Nov-02 3:46
LongRange.Shooter7-Nov-02 3:46 

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.