CoCreateGuid() and UuidCreate() on Win'95
Mike Bryga -- MBryga@PickSys.com
Thursday, February 20, 1997
Environment : VC++4.0, Win95/NT 4.0
Hello fellow Programmers,
I can call CoCreateGuid() on both Win'95 and Win NT, but it requires =
alot of the AFX libraries that I don't really want. The documentation =
says it just calls UuidCreate() which is defined in RPC.h (which I =
already use). However, UuidCreate() does nothing on Win'95. What should =
I call on Win'95? I could not find the source to CoCreateGuid() - I =
thought MsDev or MsTools provided the source to MFC - and isn't COM part =
of MFC?
Your assitance is appreciated.
Mike
Mike Blaszczak -- mikeblas@nwlink.com
Friday, February 21, 1997
[Mini-digest: 2 responses]
At 17:26 2/20/97 -0800, you wrote:
>Environment : VC++4.0, Win95/NT 4.0
>I can call CoCreateGuid() on both Win'95 and Win NT,
> but it requires alot of the AFX libraries that I don't really want.
No, it doesn't. CoCreateGuid() is implemented by OLE, not by MFC.
CoCreateGuid() doesn't require _any_ MFC libraries.
> I could not find the source to CoCreateGuid()
The source code for the OLE libraries, like the rest of the Windows
system source code, isn't generally available to the public.
> I thought MsDev or MsTools provided the source to MFC -
The sourcecode to MFC is included in the Visual C++ product.
> and isn't COM part of MFC?
No, it isn't. MFC supports COM; it doesn't implement it.
.B ekiM
http://www.nwlink.com/~mikeblas/
These words are my own. I do not speak on behalf of Microsoft.
This performance was not lip-synched.
-----From: "Matthew Gallant"
Mike,
CoCreateGuid() is a OLE 2 function, not an MFC function. If it will do
what you want, you should be able to call it without much incident. It is
even available from a non-MFC application.
CoCreateGuid() is probably documented in a separate help file called
something like "OLE Programmer's Reference".
============ SIGNATURE ============
Matt Gallant, age 22
Aylmer, Ontario Canada
E-mail to: gallantm@kanservu.ca
----------
From: Mike Bryga
To: 'MFC-L' ; 'MsVc' ; 'ntdev@atria.com'
Subject: CoCreateGuid() and UuidCreate() on Win'95
Date: February 20, 1997 8:26 PM
I can call CoCreateGuid() on both Win'95 and Win NT, but it requires alot
of the AFX libraries that I don't really want. The documentation says it
just calls UuidCreate() which is defined in RPC.h (which I already use).
However, UuidCreate() does nothing on Win'95. What should I call on Win'95?
I could not find the source to
Become an MFC-L member
| Вернуться в корень Архива
|