The MASM Forum Archive 2004 to 2012

General Forums => The Workshop => Topic started by: ToutEnMasm on February 27, 2009, 02:35:10 PM

Title: OleCreate bad define
Post by: ToutEnMasm on February 27, 2009, 02:35:10 PM
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
);

Title: Re: OleCreate bad define
Post by: japheth on February 27, 2009, 02:47:04 PM

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