[ADVANCED-DOTNET] Container-Addin pattern?

2005-06-22 Thread Michael
Are there any articles or samples discussing implementing a Container/Addin architecture using DotNet and WindowsForms? Or any good books for people coming to DotNet from COM/ATL? I have an app (similar to VS.NET) that I'm considering migrating. Thanks Michael ==

Re: [ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread Ryan Heath
or run charmap.exe ;) On 6/22/05, dave wanta <[EMAIL PROTECTED]> wrote: > www.asciitable.com > === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread dave wanta
www.asciitable.com Cheers! Dave - Original Message - From: "David Rutten" <[EMAIL PROTECTED]> To: Sent: Wednesday, June 22, 2005 8:30 AM Subject: Re: [ADVANCED-DOTNET] Searching classes in an assembly > Thank you Bogdan, this is exactly what I needed to know. > Appearantly I have been

Re: [ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread Adam Sills
Return a list of types in the assembly: Assembly.GetExecutingAssembly().GetTypes() Test if a type implements an interface if( typeof(IYourInterface).IsAssignableFrom(type) ) { Create an instance: Activator.CreateInstance( type, new object[] { any, parameters, the, ctor, needs } ) Adam.. > -

Re: [ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread Ryan Heath
Hi David, you could use foreach( Assembly a in AppDomain.CurrentDomain.GetAssemblies()) foreach( Type t in a.GetTypes()) { if ( t.GetInterface( typeof(IYourInterface).Name) != null) { IYourInterface obj = (IYourInterface)AppDomain.CurrentDomain.CreateInstanceAndUnwrap( a.FullName, t.Name)

Re: [ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread David Rutten
Thank you Bogdan, this is exactly what I needed to know. Appearantly I have been looking in all the wrong places. Maybe I should read something on how to search the msdn :) It took me well over 15 minutes to find the ASCII tables yesterday as well... David - Original Message - From

Re: [ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread Bogdan Lachendro
On 2005-06-22 14:26, David Rutten wrote: Hello all, I've been wondering how to do something tricky, and I can'tfind a single reference about it in the msdn docs... Strange Imagine I have a regular windows program, with a bunchof classes that all implement a certain interface. There are a

[ADVANCED-DOTNET] Searching classes in an assembly

2005-06-22 Thread David Rutten
Hello all, I've been wondering how to do something tricky, and I can'tfind a single reference about it in the msdn docs... Imagine I have a regular windows program, with a bunchof classes that all implement a certain interface. There are also lots of other classes that do not implement it. The in

Re: [ADVANCED-DOTNET] Hard interop marshaling question

2005-06-22 Thread Mattias Sj�gren
> Is there anyway to create a System::Object com object from an unmanaged IDispatch pointer? Sure, with Marshal::GetObjectForIUnknown(). Mattias -- Mattias Sjögren [EMAIL PROTECTED] === This list is hosted by DevelopMentor® http://www.develop.com View archi

Re: [ADVANCED-DOTNET] Really weird compiler warnings

2005-06-22 Thread David Rutten
Darn, I didn't know about that. I don't think I tried that. I'm too far now with my alternative approach to revert, but this is one piece of advice that I shall tattoo in my brain. Thanks, David - Original Message - From: "Joris Zwaenepoel" <[EMAIL PROTECTED]> To: Sent: Monday, June 20

Re: [ADVANCED-DOTNET] encryption

2005-06-22 Thread Alex Smotritsky
Thanks! -Original Message- From: Unmoderated discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Heath Sent: Wednesday, June 22, 2005 12:40 AM To: ADVANCED-DOTNET@DISCUSS.DEVELOP.COM Subject: Re: [ADVANCED-DOTNET] encryption Hi Alex, Are you returning the base

[ADVANCED-DOTNET] Hard interop marshaling question

2005-06-22 Thread Ragnvald Barth
How do I marshal arguments when a method is called through a gcroot pointer? I have an IDispatch pointer in unmanaged code, and I want to pass it as a method parameter to an instance of a managed interface. The reference to the managed object is a gcroot pointer. I have tried everything I could thi

Re: [ADVANCED-DOTNET] encryption

2005-06-22 Thread Ryan Heath
Hi Alex, Are you returning the base64 encoded cipher text? In that case it will never contain a " character. HTH // Ryan === This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com

Re: [ADVANCED-DOTNET] COM interop with .NET byte arrays?

2005-06-22 Thread Mattias Sj�gren
Kirk, If managed code is the only client of this wrapper, wouldn't it be easier to write it in MC++? Anyway, if you expose it as a void* in the COM library it should be imported as an IntPtr. Mattias -- Mattias Sjögren [EMAIL PROTECTED] === This list is hoste