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
==
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
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
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..
> -
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)
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
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
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
> 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
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
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
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
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
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
14 matches
Mail list logo