News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

OleCreate bad define

Started by ToutEnMasm, February 27, 2009, 02:35:10 PM

Previous topic - Next topic

ToutEnMasm

Hello,
OleCreate has two different define in SDK 6.1.
Couldn't make a choice,and i have a problem with it.

Quote
define of ole.h:
OLESTATUS   WINAPI  OleCreate(LPCSTR, LPOLECLIENT, LPCSTR, LHCLIENTDOC, LPCSTR, LPOLEOBJECT FAR*, OLEOPT_RENDER, OLECLIPFORMAT);

Quote
dexplore define:
  Copy Code
        WINOLEAPI OleCreate(
  REFCLSID rclsid,  //CLSID of embedded object to be created
  REFIID riid,      //Reference to the identifier of the interface
                    // used to communicate with new object
  DWORD renderopt,  //RENDEROPT value indicating cached capabilities
  FORMATETC * pFormatEtc,
                    //Pointer to a FORMATETC structure
  IOleClientSite * pClientSite,
                    //Pointer to request services from the container
  IStorage * pStg,  //Pointer to storage for the object
  void ** ppvObject //Address of output variable that receives the
                    // interface pointer requested in riid
);


japheth


IIRC then ole.h is for the totally obsolelte OLE v1.0 version, probably 16bit only.