|
-
Sep 24th, 2003, 06:23 AM
#1
Thread Starter
Frenzied Member
As Any!!!! Aaargh
As any doesn't seem to exist in VB.NET anymore
most api's have it... what can i replace it for?
here is an example
VB Code:
Private Declare Function SystemParametersInfo Lib "user32" Alias "SystemParametersInfoA" (ByVal uAction As Long, ByVal uParam As Long, ByVal lpvParam As Any, ByVal fuWinIni As Long) As Long
Const SPI_SETDESKWALLPAPER = 20
Const SPIF_UPDATEINIFILE = &H1
-
Sep 24th, 2003, 06:36 AM
#2
Frenzied Member
Dude whats the problem??
-
Sep 24th, 2003, 06:39 AM
#3
Thread Starter
Frenzied Member
As any.. was a declaration in Vb6 and lower... but doesnt exist in vb.Net anymore.. so what is a new declaration that does the same thing...
apis have loads of As any declarations .. and thus i cant use api's
that is the problem
Last edited by Ultimasnake; Sep 24th, 2003 at 06:43 AM.
-
Sep 24th, 2003, 07:36 AM
#4
Maybe this thread will help.
This world is not my home. I'm just passing through.
-
Sep 24th, 2003, 07:36 AM
#5
VB.Net provides overloaded functions so As Any is no longer needed. Just write one copy for each of the possible data types.
Note: "As Any" was a bad thing....
-
Sep 24th, 2003, 02:07 PM
#6
Sleep mode
Or try this :
try replacing all Any to Object data type .
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|