Click here to Skip to main content
16,008,183 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: dot.net application error Pin
Heath Stewart15-Jul-03 8:55
protectorHeath Stewart15-Jul-03 8:55 
Generalnext dot.net application error Pin
misiek16-Jul-03 6:20
misiek16-Jul-03 6:20 
GeneralGarbage Collection in DotNet Pin
dskumar9914-Jul-03 4:24
dskumar9914-Jul-03 4:24 
GeneralRe: Garbage Collection in DotNet Pin
Philip Fitzsimons15-Jul-03 2:32
Philip Fitzsimons15-Jul-03 2:32 
GeneralRe: Garbage Collection in DotNet Pin
Heath Stewart15-Jul-03 8:58
protectorHeath Stewart15-Jul-03 8:58 
GeneralSocket Problems on particular machine Pin
stonee7413-Jul-03 5:43
stonee7413-Jul-03 5:43 
GeneralRe: Socket Problems on particular machine Pin
stonee7428-Jul-03 4:49
stonee7428-Jul-03 4:49 
GeneralAnother "Interop" question. Pin
igor196012-Jul-03 12:46
igor196012-Jul-03 12:46 
The more I work on my original idea and deeper into .NET Interop -- the more I'm confused. Maybe somebody could explain to me.
Here is the scenario:
1. Suppose I want to automatically export my Assembly to TypeLibrary, so other possible COM clients could use it;
2. I'm doing the following: from inside of assembly I'm using TypeLib Converter like that:

TypeLibConverter converter = new TypeLibConverter();
ConversionEventHandler eventHandler = new ConversionEventHandler();
UCOMICreateITypeLib typeLib = (UCOMICreateITypeLib)converter.ConvertAssemblyToTypeLib( GetExecutingAssembly(), TypeLibFileName, 0, eventHandler );
typeLib.SetName("SomeLib");
typeLib.SaveAllChanges();

Everything works as expected and TypeLibFileName after has all interfaces, coclasses and etc.

The problem is: all types in created typelibrary that are not of Primitive Types, except System.String were changed, either to become smaller in length(example: System.Drawing.Size is now just Size) or got converted, so they don't contain "." (like System.Drawing.Point is now System_Drawing_Point).
However, some of CLR types were converted to COM types, like System.Windows.Forms.Form was changed to IUnknown*.

And here I'm completely confused:
What get's converted and what is not?
How changed names ("." - "_") are supposed to be found in refferenced type libaries?
How you suppose to use those TLB files in your UNMANAGED projects if they are not complete -- by not complete I mean: there is no chance System_Drawing_Point could be found in refferenced typelibs (or maybe I'm wrong)?
Is there anyway of changing that behavior?

Maybe I don't understand some main principles here. Maybe Idea of typelib exporting is designed just for types you manually defined and therefore they are already COM complient. Or each of defualt Object types should be wrapped before being able to use it from COM? I thought that default dynamic CCW could be created for any Object derived .NET type -- and if so it's just typelib restriction or grammar errors i'm facing? But then, why "." was selected as name/class divider by .NET team if it's in conflict with typelib grammar?

Again, waiting for some help here...
GeneralRe: Another "Interop" question. Pin
igor196012-Jul-03 15:23
igor196012-Jul-03 15:23 
GeneralRe: Another "Interop" question. Pin
Mike Dimmick13-Jul-03 1:16
Mike Dimmick13-Jul-03 1:16 
GeneralRe: Another "Interop" question. Pin
igor196013-Jul-03 9:25
igor196013-Jul-03 9:25 
GeneralRe: Another "Interop" question. Pin
Heath Stewart15-Jul-03 9:09
protectorHeath Stewart15-Jul-03 9:09 
GeneralRe: Another "Interop" question. Pin
Jeffster15-Jul-03 12:07
Jeffster15-Jul-03 12:07 
GeneralRe: Another "Interop" question. Pin
Heath Stewart15-Jul-03 12:50
protectorHeath Stewart15-Jul-03 12:50 
GeneralRe: Another "Interop" question. Pin
igor196016-Jul-03 5:29
igor196016-Jul-03 5:29 
GeneralRe: Another "Interop" question. Pin
Nick Parker13-Jul-03 9:57
protectorNick Parker13-Jul-03 9:57 
GeneralRe: Another "Interop" question. Pin
igor196013-Jul-03 10:52
igor196013-Jul-03 10:52 
GeneralWIN CE and .NET Pin
Dato12-Jul-03 10:24
Dato12-Jul-03 10:24 
GeneralRe: WIN CE and .NET Pin
Heath Stewart15-Jul-03 9:16
protectorHeath Stewart15-Jul-03 9:16 
GeneralSpeech SDK question... Pin
JoeSox11-Jul-03 7:43
JoeSox11-Jul-03 7:43 
GeneralTrial version Pin
Anonymous11-Jul-03 3:51
Anonymous11-Jul-03 3:51 
GeneralRe: Trial version Pin
Heath Stewart11-Jul-03 4:37
protectorHeath Stewart11-Jul-03 4:37 
GeneralRe: Trial version Pin
Nick Parker12-Jul-03 4:59
protectorNick Parker12-Jul-03 4:59 
GeneralRe: Trial version Pin
Heath Stewart12-Jul-03 7:28
protectorHeath Stewart12-Jul-03 7:28 
GeneralRe: Trial version Pin
Nick Parker12-Jul-03 7:50
protectorNick Parker12-Jul-03 7:50 

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.