MFC Automation Server Truncates Return Values for Methods That Return the LONGLONG or the ULONGLONG Data Type (828644)



The information in this article applies to:

  • The Microsoft Foundation Classes (MFC), when used with:
    • Microsoft Visual C++ .NET (2002)

SYMPTOMS

If your Microsoft Foundation Classes (MFC) automation server has a method that returns a LONGLONG data type or a ULONGLONG data type, the MFC automation server truncates the Int64 data type return value to an Int32 data type return value.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.

MORE INFORMATION

An MFC automation server that has a method that returns a LONGLONG (VT_I8) data type or a ULONGLONG (VT_UI8) data type truncates the high-order 32 bits of the return value before the server returns the value to a client. Additionally, MFC does not completely support the COleVariant class for the LONGLONG data type and for the ULONGLONG data type. Therefore, you may receive results that are not valid.

Modification Type:MinorLast Reviewed:1/22/2004
Keywords:kbpending kbBug kbAutomation KB828644 kbAudDeveloper