Re: C COM objects?
I'll give ZooLib another try. If I can build ZooLib with Cygwin, that will mean that ZooLib can be built with gcc on all the platforms that ZooLib supports (Mac OS, Windows, Linux and BeOS). I think that would encourage its acceptance as a framework for writing open source software, if one isn't required to use an expensive compiler to build Windows software with it. I've been able to build wxWindows (http://www.wxwindows.org) apps on cygwin using gcc and the the other OSs you mention (except for BeOS). Pete -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
C COM objects?
I admit to know almost nothing about COM objects, but I have been tasked to find out if they can be built from code that uses cygwin1.dll services. Searching for Cygwin and COM on the web, and in the archives, is difficult for the obvious .com reason. What I think I do know is that C++ COM objects are probably out because of name mangling and vtable issues. I am still unclear about whether the libs that implement COM use msvcrt*.dll. I assume if that is true, then all COM objects are out because of the newlib conflict. Any pointers to C COM object examples or information about using Cygwin based code in them would be *greatly* appreciated. If you feel this subject is too far OT, then please feel free to ignore my Reply-To header and send me personal email. Thanks. -- Brian Ford Senior Realtime Software Engineer VITAL - Visual Simulation Systems FlightSafety International Phone: 314-551-8460 Fax: 314-551-8444 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: C COM objects?
At 06:43 PM 1/29/2004, Brian Ford you wrote: I admit to know almost nothing about COM objects, but I have been tasked to find out if they can be built from code that uses cygwin1.dll services. Searching for Cygwin and COM on the web, and in the archives, is difficult for the obvious .com reason. What I think I do know is that C++ COM objects are probably out because of name mangling and vtable issues. I am still unclear about whether the libs that implement COM use msvcrt*.dll. I assume if that is true, then all COM objects are out because of the newlib conflict. Any pointers to C COM object examples or information about using Cygwin based code in them would be *greatly* appreciated. If you feel this subject is too far OT, then please feel free to ignore my Reply-To header and send me personal email. Thanks. COM doesn't require MSVCRT, though it doesn't preclude it either. So, depending on what you're doing and what you're using in COM-land, it's possible to dodge the MSVCRT bullet. COM is language independent, which means it's possible to use COM objects from C code. I've never done this though. I remember some rumblings about people successfully working with COM under Cygwin but it was long ago and I don't remember any details. Sorry. -- Larry Hall http://www.rfk.com RFK Partners, Inc. (508) 893-9779 - RFK Office 838 Washington Street (508) 893-9889 - FAX Holliston, MA 01746 -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Re: C COM objects?
I tried a couple of times to get ZooLib (http://www.zoolib.org/) to build with Cygwin. ZooLib is a cross-platform application framework, and on Windows uses COM to handle the clipboard and drag and drop. I believe that actually you CAN get COM to work with gcc, even from C++, but you're going to need to build gcc and its libraries a different way than the way it's normally built by the Cygwin developers. I'm afraid I don't remember what is needed, but it has something to do with vtable thunking. You need to set whatever option deals with that differently than the way it's built normally by the cygwin folks. I'm sorry I can't be more specific, but it's been a while. Maybe if you search for my email address or the word zoolib in the list archives you can find where I asked about this before. It's actually not very hard at all to do COM programming in C. A COM interface is little more than a structure full of pointers to functions. I have some sample code from when I gave a talk on writing Mac OS X user clients at MacHack last year. Yes, Apple's Mac OS X actually uses COM! Who would have thought. I've been meaning for months to post the source on my website but I got to fix it up before I do. I'll go have a look and maybe I can post some snippets as a reply to this thread. Mike -- Michael D. Crawford GoingWare Inc. - Expert Software Development and Consulting http://www.goingware.com [EMAIL PROTECTED] Tilting at Windmills for a Better Tomorrow. I give you this one rule of conduct. Do what you will, but speak out always. Be shunned, be hated, be ridiculed, be scared, be in doubt, but don't be gagged. -- John J. Chapman, Make a Bonfire of Your Reputations http://www.goingware.com/reputation/ -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/