Собственно сабж
Как задекларировать чтобы принимала данные многих типов (any не поддерживается ) ну или чем заменить.
In Visual Basic .NET, the As Any keyword is no longer supported. To ensure type safety, you must specifically declare the data type of all arguments and return values.
What to do next
- Determine where the declared function is being used in your code and what data type is being passed. If all occurrences pass the same data type, change the declaration to include that data type instead of As Any:
Declare Function LoadCursor Lib "user32" Alias "LoadCursorA"(ByVal hInstance As Integer, ByVal lpCursorName As String) As Integer
If you need to support multiple data types, create an overloaded version of the declaration for each data type:
Declare Function LoadCursor Lib "user32" Alias "LoadCursorA"(ByVal hInstance As Integer, ByVal lpCursorName As String) As Integer
Declare Function LoadCursor Lib "user32" Alias "LoadCursorA"(ByVal hInstance As Integer, ByVal lpCursorName As Integer) As Long
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 88