Click here to Skip to main content
15,868,016 members
Home / Discussions / C#
   

C#

 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 6:52
nc3b31-Jan-06 6:52 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 7:07
nc3b31-Jan-06 7:07 
GeneralRe: Ugly error Pin
S. Senthil Kumar31-Jan-06 15:50
S. Senthil Kumar31-Jan-06 15:50 
GeneralRe: Ugly error Pin
nc3b31-Jan-06 21:41
nc3b31-Jan-06 21:41 
QuestionInstantiating a class from a third party DLL and calling methods on it Pin
Vikram A Punathambekar30-Jan-06 20:08
Vikram A Punathambekar30-Jan-06 20:08 
AnswerRe: Instantiating a class from a third party DLL and calling methods on it Pin
Kodanda Pani30-Jan-06 20:42
Kodanda Pani30-Jan-06 20:42 
GeneralRe: Instantiating a class from a third party DLL and calling methods on it Pin
Vikram A Punathambekar30-Jan-06 21:59
Vikram A Punathambekar30-Jan-06 21:59 
AnswerRe: Instantiating a class from a third party DLL and calling methods on it Pin
S. Senthil Kumar31-Jan-06 15:57
S. Senthil Kumar31-Jan-06 15:57 
Reflection is the way to go. You can use Assembly.Load[^] or one of its variations to get an Assembly object, then use the GetExportedTypes[^] method on that Assembly object to retrieve types in that assembly. You can then iterate over the types and use FindInterfaces[^] to check if that type implements the interface you want. Activator.CreateInstance[^] creates instances given the type and you should find it simple from there on.

Remember though, the assembly gets loaded in your AppDomain, so it won't get unloaded till your app (or your AppDomain) shuts down. So if some other process tries to write to that assembly, it will fail.

Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
GeneralRe: Instantiating a class from a third party DLL and calling methods on it Pin
Vikram A Punathambekar31-Jan-06 16:18
Vikram A Punathambekar31-Jan-06 16:18 
QuestionGet html flow when the page is called Pin
porgy30-Jan-06 19:51
porgy30-Jan-06 19:51 
AnswerRe: Get html flow when the page is called Pin
leppie30-Jan-06 20:33
leppie30-Jan-06 20:33 
GeneralRe: Get html flow when the page is called Pin
porgy31-Jan-06 9:21
porgy31-Jan-06 9:21 
QuestionLaunch Mail Recipient programmatically Pin
NewbieDude30-Jan-06 19:37
NewbieDude30-Jan-06 19:37 
AnswerRe: Launch Mail Recipient programmatically Pin
tarasn30-Jan-06 22:40
tarasn30-Jan-06 22:40 
GeneralRe: Launch Mail Recipient programmatically Pin
NewbieDude31-Jan-06 1:31
NewbieDude31-Jan-06 1:31 
GeneralRe: Launch Mail Recipient programmatically Pin
tarasn31-Jan-06 4:39
tarasn31-Jan-06 4:39 
QuestionAdding annotations to PDF's programmatically Pin
NewbieDude30-Jan-06 19:34
NewbieDude30-Jan-06 19:34 
AnswerRe: Adding annotations to PDF's programmatically Pin
Member 777370224-Aug-11 7:22
Member 777370224-Aug-11 7:22 
Questionget now playing from media player Pin
cozmo202330-Jan-06 19:32
cozmo202330-Jan-06 19:32 
AnswerRe: get now playing from media player Pin
James Gupta30-Jan-06 21:29
professionalJames Gupta30-Jan-06 21:29 
QuestionopenGL in c# Pin
gulmisal30-Jan-06 18:52
gulmisal30-Jan-06 18:52 
AnswerRe: openGL in c# Pin
Joshua Quick30-Jan-06 21:21
Joshua Quick30-Jan-06 21:21 
AnswerRe: openGL in c# Pin
[Marc]31-Jan-06 3:07
[Marc]31-Jan-06 3:07 
QuestionHow can i do that please Pin
snouto30-Jan-06 13:50
snouto30-Jan-06 13:50 
AnswerRe: How can i do that please Pin
Gavin Taylor30-Jan-06 16:12
professionalGavin Taylor30-Jan-06 16:12 

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.