Hello guys,
some weeks ago I told you about some conflicts with the TestRunner.dll I had.
That was because TestRunner.dll is MFC Extension DLL. That also means that it can only be used directly by a hosting application (e.g. HostApp project).
I also told you that I want to use the TestRunner out of another DLL or out from an ActiveX component.
Now I found a way to use TestRunner.dll in both ways. For this I just had to modify the file TestRunnerApp.cpp.
By adding following code to TestRunnerApp.cpp this can be achieved:
extern "C" AFX_EXT_CLASS void _cdecl initTestRunnerDLL()
{
new CDynLinkLibrary(TestRunnerDLL);
}
Before you use TestRunner out from another DLL or an ActiveX component you just have to call "initTestRunnerDLL()".
I think this is a helpful feature because usage of TestRunner does no longer depend on a hosting application.
Please tell me what you think about that.
Best regards
Steffen
________________________________________________________________
Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr!
Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13
|