Results 1 to 13 of 13

Thread: getting the constant values posted on msdn?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Resolved getting the constant values posted on msdn?

    I'm looking at this page on MSDN
    http://msdn.microsoft.com/library/de...etnextitem.asp

    how can I get the values for the constants they have? ie, LVNI_ALL
    Last edited by MrPolite; Jun 3rd, 2005 at 01:11 PM.
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: getting the constant values posted on msdn?

    LVNI_ALL is:

    VB Code:
    1. Private Const LVNI_ALL As Long = &H0

    The best way would be to download the APIViwere from the API Reference link in my signaute. It has most of the function definitions, constants and structures too

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  3. #3
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: getting the constant values posted on msdn?

    I have a win32 api text file with all the constants in. Its just over 600kb when compressed so if you want it I can email it to you, just PM me if you need it!

    Pino

  4. #4
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: getting the constant values posted on msdn?

    Quote Originally Posted by Pino
    I have a win32 api text file with all the constants in. Its just over 600kb when compressed so if you want it I can email it to you, just PM me if you need it!

    Pino

    Are you shure, the one I have is nearly 3.11 Megabytes :S

    It is here if anyone wants it: (Uploaded a minute ago)

    http://www.webdevelopertutorials.com/VB/Win32api.zip

    Cheers,

    RyanJ
    Last edited by sciguyryan; Jun 3rd, 2005 at 06:32 AM.
    My Blog.

    Ryan Jones.

  5. #5
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: getting the constant values posted on msdn?

    Quote Originally Posted by Pino
    Its just over 600kb when compressed
    Compressed - 634 KB (649,837 bytes)
    Txt File On Its Own - 3.10 MB (3,258,861 bytes)



  6. #6
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: getting the constant values posted on msdn?

    Quote Originally Posted by Pino
    Compressed - 634 KB (649,837 bytes)
    Txt File On Its Own - 3.10 MB (3,258,861 bytes)



    Yes... That is quite a bit of difference.

    I will leave that file there just incase anyone else wants it... I should probably zip it up though

    Done, ZIP file uploaded

    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  7. #7
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: getting the constant values posted on msdn?

    Quote Originally Posted by sciguyryan
    Are you shure, the one I have is nearly 3.11 Megabytes :S

    It is here if anyone wants it: (Uploaded a minute ago)

    http://www.webdevelopertutorials.com/VB/Win32api.zip

    Cheers,

    RyanJ
    Handy file to have. Thanks.

  8. #8
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: getting the constant values posted on msdn?

    Note: I downloaded Ryan's zip file and it contains API declares, Type Declares and Constants.

    Because it is a pretty big file, I cut 'n pasted the Type declares into its own text file and the Consts into its own text file. It makes it a bit easier to find stuff.

    Just a tip in case anyone is interested.

  9. #9
    Software Eng. Megatron's Avatar
    Join Date
    Mar 1999
    Location
    Canada
    Posts
    11,286

    Re: getting the constant values posted on msdn?

    Or make a simple C program to do it for you:
    Code:
    #include <windows.h>
    #include <stdio.h>
    
    int main()
    {
        printf("%d", WM_MYMESSAGE);
        return 0;
    }
    Or the alternative is to simply look them up in the C header files (windows.h, winbase.h, winnt.h etc.)

  10. #10
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: getting the constant values posted on msdn?

    Google!

  11. #11
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: getting the constant values posted on msdn?

    Quote Originally Posted by Megatron
    Or make a simple C program to do it for you:
    Code:
    #include <windows.h>
    #include <stdio.h>
    
    int main()
    {
        printf("%d", WM_MYMESSAGE);
        return 0;
    }
    Or the alternative is to simply look them up in the C header files (windows.h, winbase.h, winnt.h etc.)
    Now this is very nice!

  12. #12

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Re: getting the constant values posted on msdn?

    ah some very nice replies!!!!! thanks so much
    thanks to Megatron too, I didnt know you can get it by code
    rate my posts if they help ya!
    Extract thumbnail without reading the whole image file: (C# - VB)
    Apply texture to bitmaps: (C# - VB)
    Extended console library: (VB)
    Save JPEG with a certain quality (image compression): (C# - VB )
    VB.NET to C# conversion tips!!

  13. #13
    PowerPoster
    Join Date
    Dec 2003
    Posts
    4,787

    Re: getting the constant values posted on msdn?

    Mr polite its in the mail

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