![]() ![]() OldProcAddr = SetWindowLong(hWnd, GWL_WNDPROC, AddressOf WndProc)įunction WndProc(ByVal hWnd As Long, ByVal uMsg As Long, _īyVal wParam As Long, ByVal lParam As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias "SetWindowLongA" ( _īyVal hWnd As Long, ByVal ndx As Long, ByVal newValue As Long) As Long To understand what this means, say that you have the following VB6 code: VB.NET supports the AddressOf keyword, but only when the application defines a delegate class that can point to the target method. ![]() You must replace it with a reference to the Math.Abs method (in System namespace) The Abs keyword isn’t implemented in assembly. Second, all string comparisons are carried out in case-insensitive mode under VB6 and in case-sensitive mode under VB.NET. (In this case VB Migration Partner issues a warning.). First, the VB6 test expression can contain the following functions: Abs, Sgn, Len, and LenB, whereas VB.NET doesn’t support these functions in compile-time expressions. The two languages evaluate #If and #ElseIf conditions for two minor details. These compiler directives are supported under VB.NET however, both the Upgrade Wizard and VB Migration Partner convert only the code inside the #If, #ElseIf, or #Else section whose condition is evaluated as “true” VB6 code in other sections isn’t converted. ![]() (In this case VB Migration Partner issues a warning.) VB.NET doesn’t support these functions in compile-time expressions. Both VB6 and VB.NET support this language directive however, VB6 supports and correctly evaluates the following functions: Abs, Sgn, Len, and LenB. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |