Microsoft KB Archive/828644

= MFC Automation Server Truncates Return Values for Methods That Return the LONGLONG or the ULONGLONG Data Type =

Article ID: 828644

Article Last Modified on 11/21/2006

-

APPLIES TO


 * Microsoft Foundation Class Library 4.2, when used with:
 * Microsoft Visual C++ .NET 2002 Standard Edition

-



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.

Keywords: kbpending kbbug kbautomation KB828644

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.