Results 1 to 4 of 4
  1. #1
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Where are Thou User (Excel 97 and >)

    <img src=/S/hello.gif border=0 alt=hello width=25 height=29> Loungers

    Is there any thing wrong with this declaration? I keep getting RTE 53 File not found USER?

    Declare Function GetFreeSystemResources Lib "USER" (ByVal fuSysResource As Integer) As Integer

    The only place USER is used is in this declaration, and I am trying to get System Resources such as:

    GDI Resources, User Resources, and System Resources so that things can be documented in a text file as the user works and crashes his PC while the application is running.

    Any ideas how to get these numbers other than the API?

    Thanks

    Wassim
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

  2. #2
    Super Moderator jscher2000's Avatar
    Join Date
    Feb 2001
    Location
    Silicon Valley, USA
    Posts
    23,112
    Thanks
    5
    Thanked 93 Times in 89 Posts

    Re: Where are Thou User (Excel 97 and >)

    Where did you get that declaration? Not win32api.txt, I suspect... Maybe this will help:

    Displaying Memory Information Under Win32 (MS MVPs site)
    HOWTO: Get Free System Resources in 32-Bit Visual Basic (MSKB 190217)

  3. #3
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: Where are Thou User (Excel 97 and >)

    <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> Jefferson

    But I got this API from the MSKB, I did realize that it was a 16-bit version, but then the one you mentioned in one of the links is the same one. So I took it that maybe "USER" should be lower case, <img src=/S/eyeout.gif border=0 alt=eyeout width=15 height=15>, maybe that was the problem, but then I saw the other 32-bit one, and it was the same.

    But I will look into the other link, sorry I don't have them in front of me, this is the 2nd from the VB site, and I think this will work.

    Thanks

    Wassim
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

  4. #4
    Bronze Lounger
    Join Date
    Jun 2001
    Location
    New York, New York, Lebanon
    Posts
    1,449
    Thanks
    1
    Thanked 1 Time in 1 Post

    Re: Where are Thou User (Excel 97 and >)

    <img src=/S/thankyou.gif border=0 alt=thankyou width=40 height=15> Jefferson

    The link that you provided, "Displaying Memory Information Under Win32 (MS MVPs site)" did the trick wondefuly.

    Now I need to adjust the error handler and the text + CSV file, and we are done.

    Thanks again.

    Wassim
    <img src=/S/compute.gif border=0 alt=compute width=40 height=20> in the <img src=/S/bagged.gif border=0 alt=bagged width=22 height=22>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •