LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Porting COM application to Linux (https://www.linuxquestions.org/questions/programming-9/porting-com-application-to-linux-489599/)

gnraghu 10-05-2006 02:09 AM

Porting COM application to Linux
 
I have a COM server and a COM client that is written using ATL and I need to port these to Linux.
How to create a COM server and client in linux?
Or, Are there any equivalent technologies in linux to support the same?
Can anyone help me in this regard?

paulsm4 10-05-2006 10:55 PM

Hi -

You're asking the wrong question.

The fact that these two pieces happen to be written in ATL to use COM simply means that you can't recompile them and use them as-is on Linux. As you know, the ATL template library is exclusively a Microsoft product and, AFAIK, needs Visual Studio to write. As you also know, COM isn't just a protocol (IUnknown, AddRef (), Release(), etc etc). It also requires library support (CoCreateInstance (), etc) at build time, and extensive runtime support (the registry, for example) in order to execute.

In short, both ATL and COM are pretty non-portable outside of Windows.

Does that mean you give up?

No. You need to ask what this component *does*. The fact that it's ATL and COM are just *implementation details*. You need to understand the actual requirements.

And I'm sure you'll find a *wealth* of possible solutions to choose from under Linux.

Good luck .. PSM

PS:
As you also know, COM and ATL are themselves obsolete. Microsoft is actively telling everybody to re-write the world ... only this time, to do it in C# or VB.Net... Keep those MSDN subscription dollars rolling, folks!


All times are GMT -5. The time now is 09:48 PM.