Re: need help with COM in C



xwskx wrote:
I need some help using COM in c.

Asphyxiating yourself with a handkerchief is more fun, and has a far better chance of success. But obviously this is a personal preference.

i've been using them sucessfully in
C#, C++, and java. But i can't find any tutorials for using them in c.
Does any have any good examples or a link to a tutorial. the COMs i'm
interested in is the OLE and GDI+.


The usual approach is to hide all the COM rigmarole behind macros that happen to work both in C and C++, with the C versions doing a lot of pointer indirection through "lpVtbl". In any case, lots of macro magic is practically a necessity. Readable code is attainable; pretty code is not.

Try comp.os.ms-windows.programmer.win32 and/or microsoft.public.win32.programmer.ole.

S.
.



Relevant Pages

  • Re: An extremely simple example on how to build a lib (fortran) with automake
    ... I read lots of tutorials and examples from the net (the ... > goat book is one of them) but to no avail. ... I briefly tried f95makesys some time ago, with little success ...
    (comp.lang.fortran)
  • Re: Any hope for a Classic mode?
    ... I've spent hours without success trying to get it to work, ... fact that I followed the instructions at ... I just joined the group and found the list of several tutorials. ...
    (comp.sys.mac.system)
  • Re: PHP tutorial with a real samples
    ... I suggest you look for tutorials that let you build simple applications. ... Success, ... > I'm having fun learning php. ... > I'm using w3schools, it is very good site and I use it allot, but I'm ...
    (alt.php)
  • Sending mail with Javamail over ssl...
    ... are there any tutorials for sending a mail with Javamail? ... I've tried it on my own with SMTPSSLTranport with no success... ...
    (comp.lang.java.programmer)