[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Michael Wagner

11/7/2002 2:10:00 PM

Hi,

I have two questions:
1. Is it possible to load a module at runtime and instanciate some class
from an interface from this module (Like the good old LoadLibrary() call)

2. Is it possible to implement a dual DCOM interface in a way that other
programmers can use the interfaces from VB6?

It would also be nice to get a short hint of how it can be done (no simple
'yes' or 'no's please)

Thanks
Michael


2 Answers

Mattias Sjögren

11/8/2002 6:36:00 PM

0

Michael,

>1. Is it possible to load a module at runtime and instanciate some class
>from an interface from this module (Like the good old LoadLibrary() call)

Yes, read about Reflection in the docs.

http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondiscoveringtypeinformationatr...


>2. Is it possible to implement a dual DCOM interface in a way that other
>programmers can use the interfaces from VB6?

Yes, read about COM interop in the docs.

http://msdn.microsoft.com/library/en-us/cpguide/html/cpconinteroperatingwithunmanag...


>It would also be nice to get a short hint of how it can be done (no simple
>'yes' or 'no's please)

Sample code is included with the Framework SDK, in the
\Samples\Technologies\Reflection and \Samples\Technologies\Interop
directories.



Mattias

===
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.n...
Please reply only to the newsgroup.

Michael Wagner

11/8/2002 7:45:00 PM

0


"Mattias Sjögren" <mattias.dont.want.spam@mvps.org> schrieb im Newsbeitrag
news:OZpxp00hCHA.2400@tkmsftngp08...
> Michael,
>
> >1. Is it possible to load a module at runtime and instanciate some class
> >from an interface from this module (Like the good old LoadLibrary() call)
>
> Yes, read about Reflection in the docs.
>
>
http://msdn.microsoft.com/library/en-us/cpguide/html/cpcondiscover...
ormationatruntime.asp
>
>
> >2. Is it possible to implement a dual DCOM interface in a way that other
> >programmers can use the interfaces from VB6?
>
> Yes, read about COM interop in the docs.
>
>
http://msdn.microsoft.com/library/en-us/cpguide/html/cpconinterope...
unmanagedcode.asp
>
>
> >It would also be nice to get a short hint of how it can be done (no
simple
> >'yes' or 'no's please)
>
> Sample code is included with the Framework SDK, in the
> \Samples\Technologies\Reflection and \Samples\Technologies\Interop
> directories.
>
>
>
> Mattias
>
> ===
> Mattias Sjögren [MVP] mattias @ mvps.org
> http://www.msjogren.n...
> Please reply only to the newsgroup.

Thanks, I will read this
Michael