Ole automation: COM server inside EXE is not usable
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
By default Ole automation used to control applications (exe modules) for specific task execution.
COM loads the server exe automatically or the Automation server is accessible when application (e.g. Word) is running.
Attached demo runs with D7 but not with FPC.
Test appropriate both for i386 and x86_64.
Steps to reproduce:
The attached program compiled with D7 works properly and registers itself as
LocalServer32
FPC-built exe assumes it is DLL and registers itself always as InprocServer32.
Something is missing in message handling - so TTestApp COM object is not created.
test.vbs is used for invoking ITestApp.test(bstr) method