www.digitalmars.com         C & C++   DMDScript  

c++.mfc - Update DMC to new MFC

reply Andy C <Andy_member pathlink.com> writes:
And todays problem...
The source line that is failing is: template <class T, const IID* piid =
&__uuidof(T)>

The C++ keyword "__uuidof()" which is defined at http://www.msdn.com as: "The
__uuidof keyword retrieves the 
GUID attached to the expression. The expression can be a type name, pointer,
reference, or array of that type,
a template specialized on these types, or a variable of these types. The
argument is valid as long as the 
compiler can use it to find the attached GUID.   A special case of this
intrinsic is when either 0 or 
NULL is supplied as the argument. In this case, __uuidof will return a GUID made
up of zeros.  Use this keyword to 
extract the GUID attached to:  An object by the uuid extended attribute or A
library block created with 
the module attribute."
Nov 17 2003
next sibling parent "Walter" <walter digitalmars.com> writes:
"Andy C" <Andy_member pathlink.com> wrote in message
news:bpbiae$2ugl$1 digitaldaemon.com...
 And todays problem...
 The source line that is failing is: template <class T, const IID* piid =
 &__uuidof(T)>

 The C++ keyword "__uuidof()" which is defined at http://www.msdn.com as:
"The
 __uuidof keyword retrieves the
 GUID attached to the expression. The expression can be a type name,
pointer,
 reference, or array of that type,
 a template specialized on these types, or a variable of these types. The
 argument is valid as long as the
 compiler can use it to find the attached GUID.   A special case of this
 intrinsic is when either 0 or
 NULL is supplied as the argument. In this case, __uuidof will return a
GUID made
 up of zeros.  Use this keyword to
 extract the GUID attached to:  An object by the uuid extended attribute or
A
 library block created with
 the module attribute."
That can be worked around by suppling the guid manually.
Nov 18 2003
prev sibling parent Jan Knepper <jan smartsoft.us> writes:
Yes, this was one of the reasons why it stopped the port about 4 years 
ago...



Andy C wrote:

 And todays problem...
 The source line that is failing is: template <class T, const IID* piid =
 &__uuidof(T)>
 
 The C++ keyword "__uuidof()" which is defined at http://www.msdn.com as: "The
 __uuidof keyword retrieves the 
 GUID attached to the expression. The expression can be a type name, pointer,
 reference, or array of that type,
 a template specialized on these types, or a variable of these types. The
 argument is valid as long as the 
 compiler can use it to find the attached GUID.   A special case of this
 intrinsic is when either 0 or 
 NULL is supplied as the argument. In this case, __uuidof will return a GUID
made
 up of zeros.  Use this keyword to 
 extract the GUID attached to:  An object by the uuid extended attribute or A
 library block created with 
 the module attribute."
-- ManiaC++ Jan Knepper
Nov 18 2003