Results 1 to 2 of 2

Thread: OLE 2.0 APIs

  1. #1

    Thread Starter
    PowerPoster Evil_Giraffe's Avatar
    Join Date
    Aug 2002
    Location
    Suffolk, UK
    Posts
    2,555

    OLE 2.0 APIs

    In making the leap from VB to C++, I'm slightly puzzled as to how to call APIs. All the tutorials for C++ I've found seem to assume you know how to do this.

    What I need to do is use the OLE 2.0 APIs to open docfiles - specifically Word files. Any help (general tutorials on accessing APIs, documents on the OLE 2.0 APIs, etc.) would be greatly appreciated.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    You include the correct header (only <windows.h> in 99% of the cases) and simply call them. There's no need to explicitly declare them like in VB.

    You might have to look them up in the reference to find out exactly what parameters they expect. The reference also tells you what include file you need.

    As for OLE storage, this is the address of the reference page for VC++7 (.Net).
    ms-help://MS.VSCC/MS.MSDNVS/com/structuredstoragestartpage_19d1.htm

    If you have 6, search for the functions StgCreateStorageEx and StgOpenStorageEx, they should be a good starting point.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width