Hi all!
I want to write a program that can be extended with class-DLLs. All class-DLLs have the same methods.
I thought abaout the following procedure: When the application is starting, it looks, which DLLs are in it's folder (for example "test1.dll" (class: CTest1) and "test3.dll" (class: CTest3)), loads them and creates instances from the classes(Dim test1 As New CTest1, Dim test3 As New CTest3).
All class-DLLs have the same functions, for example DoSomething() (test1.DoSomething, test3.DoSomething).
But how can I do this at runtime? To create an instance from a class in a DLL, normally I have to add the DLL to the "References"-section in the "Solution Explorer" AND add the line "Imports CTestX" (X = number) to my code... how can I do this at runtime?
Please help me, any hint is welcome!
Thanx, Fazzyer
I want to write a program that can be extended with class-DLLs. All class-DLLs have the same methods.
I thought abaout the following procedure: When the application is starting, it looks, which DLLs are in it's folder (for example "test1.dll" (class: CTest1) and "test3.dll" (class: CTest3)), loads them and creates instances from the classes(Dim test1 As New CTest1, Dim test3 As New CTest3).
All class-DLLs have the same functions, for example DoSomething() (test1.DoSomething, test3.DoSomething).
But how can I do this at runtime? To create an instance from a class in a DLL, normally I have to add the DLL to the "References"-section in the "Solution Explorer" AND add the line "Imports CTestX" (X = number) to my code... how can I do this at runtime?
Please help me, any hint is welcome!
Thanx, Fazzyer