Delphi - an example of starting COM / OLE is needed

10 years have been enameled since I used COM / OLE and I forgot 90% of them. Now we need to make a COM object to access some data from PHP / Python (this is a certain thing, php ODBC does not have access to the output parameters of the DataBase - like a stored proc file), and my idea: I understand a minimal object with one method, and PHP / Python can call this to get the output ...

procedure ExecSQL(Config, IP, Port, DBName, SQL, IDFieldName : variant) : output
output is [IDValue, ErrorMsg, HResult] 

Please help me in a very small example, how to start it? I only need this, but I am confused by a lot of ActiveX / COM in the palette. What do I need to do to create a simple COM DLL and how to register my COM object with this DLL?

Thanks: dd

+3
source share
2
+5
  • "\\ ActiveX" - DLL ActiveX.
  • File\New\Automation Object -
  • , /
  • Run\Register ActiveX Server - DLL COM-
+6

Source: https://habr.com/ru/post/1748977/


All Articles