OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: Marina Nudelman (marinaEIFFEL.COM)
Date: Fri Sep 07 2001 - 21:10:55 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    Have you looked at
    CLSIDFromString and
    IIDFromString?

    I use the first one for any GUIDs not necessary CLSID, and
    this works as magic.

    Hope this helps.
    With Best regards,
    Marina Nudelman

    ----------------------------------------------------------
    Interactive Software Engineering Inc.
    ISE Building, 360 Storke Road, Goleta CA 93117
    805-685-1006, fax 805-685-6869,
    Marina.Nudelmaneiffel.com
    http://eiffel.com
    ----------------------------------------------------------

    > Thanks.
    >
    > However, this defines a string. I want the end result
    > to be a GUID that can be passed to a method as type
    > REFIID.
    >
    > David
    > >
    > > Date: Fri, 7 Sep 2001 16:05:08 -0700
    > > Reply-To: Distributed COM-Based Code
    > > <DCOMDISCUSS.MICROSOFT.COM>
    > > Sender: Distributed COM-Based Code
    > > <DCOMDISCUSS.MICROSOFT.COM>
    > > From: Marina Nudelman <marinaEIFFEL.COM>
    > > Organization: ISE Inc.
    > > Subject: Re: Defining guids in IDL
    > > Content-Type: text/plain; charset="iso-8859-1"
    > >
    > > > The clients will compile the idl and include the
    > > > headers. This is why I want the GUID's defined in
    > > the
    > > > IDL.
    > > >
    > > > Again, the best example of my intent is the
    > > > IksPropertySet interface, and its use of a guid to
    > > > define a property set. We have a similar
    > > interface
    > > > and I prefer to have the guids part of the IDL
    > > code.
    > > > So I need to define a "free-standing" GUID in idl,
    > > and
    > > > have the GUID definition part of the .h and _i.c
    > > file.
    > > > I do not see any way to do this other than a
    > > > cpp_quote or a separate .h file. Both of which I
    > > > wanted to avoid.
    > > >
    > > > Hope this makes sense.
    > > >
    > > Yes, it does.
    > >
    > > How about:
    > >
    > > [helpstring("Some GUID")]
    > > const LPSTR someGUID=
    > > "{2F0D8E08-A31A-4f65-AA59-F8A78E91DCBC}";
    > >
    > > MIDL swallows this nicely.
    > >
    > > With Best regards,
    > > Marina Nudelman
    > >
    > >
    > >
    >
    >
    > __________________________________________________
    > Do You Yahoo!?
    > Get email alerts & NEW webcam video instant messaging with Yahoo!
    Messenger
    > http://im.yahoo.com
    >
    > ----------------------------------------------------------------
    > Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    > contains important info. Save time, search the archives at
    > http://discuss.microsoft.com/archives/index.html .
    > To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM
    >

    ----------------------------------------------------------------
    Users Guide http://discuss.microsoft.com/archives/mailfaq.asp
    contains important info. Save time, search the archives at
    http://discuss.microsoft.com/archives/index.html .
    To unsubscribe, mailto:DCOM-signoff-requestDISCUSS.MICROSOFT.COM