[gmpi] Re: low level API - Abstract Factory summary

  • From: Tim Hockin <thockin@xxxxxxxxxx>
  • To: gmpi@xxxxxxxxxxxxx
  • Date: Mon, 7 Feb 2005 17:36:36 -0800

On Tue, Feb 08, 2005 at 01:30:33PM +1300, Jeff McClintock wrote:
> plain-C function pointers.  Bit mind-boggling yes.  But with COM, you 
> don't have to write any plain-C, yet that code is completly plain-C 
> Compatible, once you know the equivalent plain-C signature...

I want to write plain C.  Please don't make it hurt too badly.

> // plain C version, two pointers-to-functions. easily derived from the 
> C++ version
> struct IGMPI_Plugin
> {
>    void (*placeholder1)(IGMPI_Plugin *object_ptr);
>    void (*placeholder2)(IGMPI_Plugin *object_ptr);
> }

OK, that's so much clearer. :)

> here's the best explanation i've found so far, not great, but might help..
> http://www.codeproject.com/com/COM_from_scratch_1.asp

Will read.

Generalized Music Plugin Interface (GMPI) public discussion list
Participation in this list is contingent upon your abiding by the
following rules:  Please stay on topic.  You are responsible for your own
words.  Please respect your fellow subscribers.  Please do not
redistribute anyone else's words without their permission.

Archive: //www.freelists.org/archives/gmpi
Email gmpi-request@xxxxxxxxxxxxx w/ subject "unsubscribe" to unsubscribe

Other related posts: