Results 1 to 6 of 6

Thread: As Any!!!! Aaargh

  1. #1

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172

    Angry 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:
    1. 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
    2.     Const SPI_SETDESKWALLPAPER = 20
    3.     Const SPIF_UPDATEINIFILE = &H1

    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  2. #2
    Frenzied Member DevGrp's Avatar
    Join Date
    Nov 2001
    Location
    Charlotte, NC
    Posts
    1,256
    Dude whats the problem??

  3. #3

    Thread Starter
    Frenzied Member Ultimasnake's Avatar
    Join Date
    Feb 2002
    Location
    Amsterdam, holland
    Posts
    1,172
    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.
    For my PC and MS Smartphone 2003 software visit
    http://www.ultimasoftware.nl

  4. #4
    Frenzied Member trisuglow's Avatar
    Join Date
    Jan 2002
    Location
    Horsham, Sussex, UK
    Posts
    1,536
    Maybe this thread will help.
    This world is not my home. I'm just passing through.

  5. #5
    PowerPoster
    Join Date
    Jul 2002
    Location
    Dublin, Ireland
    Posts
    2,148
    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....

  6. #6
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Or try this :

    VB Code:
    1. As Any = As Object
    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
  •  



Click Here to Expand Forum to Full Width