Has anyone tried to implement a COM server with FPC?(on windows)
Mailing lists / fpc-pascal / 2009-09
Is it possible to create COM server with fpc?
4 messages · 2 people ·
- CCorrado Valeri 2
- Yyu ping 2
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
2009/9/8 yu ping
Has anyone tried to implement a COM server with FPC?(on windows) _______________________________________________
I think that couldn't be possible: COM is a proprietary techonolgy of Microsoft used in windows platform, with a crossplatform compiler like FPC would be impossible to generate native code for linux and other os's..
You can instead use interfaces if you really need an object like COM control. Bye
Thanks for reply,
in fact,I'm interest in OPC programming, which based on COM tech on windows. Just think it would be best if can implement it in FPC.
I shaw in the FPC future plan for Version 2.4 has a item: ------------------
Support for DispInterface and dispid (OLE binding on Windows). ------------------
is this near to COM?
2009/9/8 Corrado Valeri :
Show quoted text 15 lines
Show quoted text 5 lines
Yes it is.
But I'm waiting for most value comments of any FPC developers: teorically if FPC supports interfaces, implementing a reference counting mechanism (DispInterface is related to it) should it is not impossible. But i'm only supposing.. i'm only an early FPC programmer. I also worked for two year developing COM servers with delphi 7.. and it was a nightmare.. :-/
Bye!
Corrado
