Results 1 to 2 of 2

Thread: Counting ICON's in a DLL/EXE file?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Nov 1999
    Location
    Melbourne, Victoria, Australia
    Posts
    126

    Post

    In regards to http://www.vb-world.net/tips/tip136.html (Extract Icons From Files) is there a way we can someone count or calulate how many icons are in a DLL file?

    Cheers

    Edited by privoli on 02-26-2000 at 01:36 AM
    Regards,

    Paul Rivoli
    ---------------------
    [email protected]
    http://members.dingoblue.net.au/~privoli

  2. #2
    Addicted Member
    Join Date
    May 1999
    Location
    Californ-I- A
    Posts
    207

    Post

    Yes. The ExtractIconEX function will do that as well ... here's how:

    Declare Function ExtractIconEx Lib "shell32.dll" Alias "ExtractIconExA" (ByVal lpszFile As String, ByVal nIconIndex As Long, phiconLarge As Long, phiconSmall As Long, ByVal nIcons As Long) As Long



    dim lReturn as long

    lReturn = ExtractIconEx("C:\Windows\System\Shell32.dll", -1, ByVal 0, ByVal0, 0)

    Debug.print "There are " & lReturn - 1 & " icons in the file."
    Micah Carrick
    Visual Basic 6 SP5
    Visual Basic.NET
    Quixotix Software
    [email protected]
    Download QCM 1.0 - Intelligent ActiveX Control Management

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