|
RAD Studio for Microsoft .NET
|
Changes have been made to support 64-bit .NET 2.0. These changes might require minor code changes so that existing applications work correctly. This document describes these changes in detail. There are two general areas:
case Msg.WParam of
with one of the following:
case Msg.WParam.ToInt64 of // VCL.NET specific case Int64(Msg.WParam) of // Compatibile with VCL/Win32
LEnum := TEnum(GetWindowLong(...));
with this:
LEnum := TEnum(GetWindowLong(...).ToInt64);
if Msg.WParam in [1..5] then
must be replaced with one of the following:
if Msg.WParam.ToInt64 in [1..5] then // VCL.NET specific if Int64(Msg.WParam) in [1..5] then // Compatibile with VCL/Win32
S := StrArray[Msg.WParam];
must be changed to one of the following:
S := StrArray[Msg.WParam.ToInt64]; // VCL.NET specific S := StrArray[Int64(Msg.WParam)]; // Compatibile with VCL/Win32
LIntPtr := IntPtr.Create(Buffer.ToInt32 + 10);
needs to be changed to this form:
LIntPtr := IntPtr.Create(Buffer.ToInt64 + 10);
Similarly, the following code:
var DC: HDC; begin ... SendMessage(Window, Message, Integer(DC), 0); end;
must be replaced by:
var DC: HDC; begin ... SendMessage(Window, Message, WPARAM(DC), 0); end;
|
Unit |
Callback |
Details |
|
DDEml |
TFNCallback |
Data1 and Data2 param types changed |
|
MMSystem |
TFNDriverProc |
dwDriverId param type changed |
|
MMSystem |
TFNDrvCallBack |
dwUser, dw1 and dw2 param types changed |
|
MMSystem |
TFNTimeCallBack |
dwUser, dw1 and dw2 param types changed |
|
RichEdit |
TEditStreamCallBack |
dwCookie param type changed |
|
Windows |
TFNWndProc |
WParam, LParam and Result types changed |
|
Windows |
TFNWndEnumProc |
LParam param type changed |
|
Windows |
TFNTimerProc |
P3 param type changed |
|
Windows |
TFNAPCProc |
dwParam param type changed |
|
Windows |
TFNDlgProc |
Result type changed |
|
Windows |
TFNSendAsyncProc |
P3 param type changed |
|
Windows |
TFNPropEnumProcEx |
P4 param type changed |
|
WinInet |
PFN_AUTH_NOTIFY |
dwContext param type changed |
|
Unit |
Record |
|
ActiveX |
TPictDesc |
|
ActiveX |
TPropSpec |
|
ActiveX |
TStgMedium |
|
ActiveX |
TTypeDesc |
|
ActiveX |
TVarDesc |
|
ActiveX |
TVariantArg |
|
CommCtrl |
TPropSheetHeader |
|
CommCtrl |
TPropSheetPage |
|
CommCtrl |
TTVInsertStruct |
|
CommCtrl |
TTVInsertStructA |
|
CommCtrl |
TTVInsertStructW |
|
MMSystem |
TMixerControlDetails |
|
ShlObj |
TStrRet |
|
Windows |
TInput |
|
Windows |
TProcessHeapEntry |
|
Windows |
TSystemInfo |
|
WinSpool |
TPrinterNotifyInfoData |
|
Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
|
|
What do you think about this topic? Send feedback!
|