Delphi - COM/OLE starting example needed

Posted by durumdara on Stack Overflow See other posts from Stack Overflow or by durumdara
Published on 2010-06-08T08:35:14Z Indexed on 2010/06/08 8:42 UTC
Read the original article Hit count: 347

Filed under:
|
|
|
|

Hi!

10 years have ellapsed since I used COM/OLE, and I forget 90% of them. Now we need to make a COM object to access some data from PHP/Python (this is specific thing, the php ODBC don't access the output params of a DataBase - like stored proc output), and my idea the I realize 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 a very little example, how to start it? I need only this, but I'm confused by many ActiveX/COM in the palette. What I need to use to make a simple COM DLL, and how to register my COM object with this DLL?

Thanks: dd

© Stack Overflow or respective owner

Related posts about delphi

Related posts about com