Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Mar 2003
    Location
    Dallas,TX
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB6 Run-time error 48

    I am trying to use the API in a graphics program.In Visual Basic 6 The StretchBit function resizes images.I copied this from a book and put it in a Module (general declaration):

    Declare Function StretchBit% Lib "GDI" (ByVal hDC%, ByVal X%, ByVal Y%, ByVal nWidth%, ByVal nHeight%, ByVal hSourceDC%, ByVal xSource%, ByVal ySource%, ByVal nSourceWidth%, ByVal nSourceHeight%, ByVal dwRop&)

    When I run the program I get the error 48 which is "file not found:GDI".
    (I am new to VB6,so a little help here?)

  • #2
    Regular Coder
    Join Date
    Dec 2003
    Posts
    367
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Shouldn't it be "gdi32"?

    shmoove

  • #3
    New to the CF scene
    Join Date
    Apr 2004
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi,

    I had similar troubles when i first started with VB and APIs.

    I found a program on the internet that gave you the Api function with all the parameters listed along with examples of how to implement them.

    Description
    http://www.mentalis.org/agnet/apiguide.shtml

    Download
    http://www.mentalis.org/agnet/appdown.shtml

    Regards,

    Hyder Ali

  • #4
    New Coder
    Join Date
    Mar 2003
    Location
    Dallas,TX
    Posts
    37
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanx both of you-

    I'll have to post later when I've had time to run my program, and install the exe I downloaded.

    I don't want to get my hopes up, but this will allow me to fulfill a greater destiny....altering the course of human events for the betterment of all life....

    Got to run, empty the trash....


  •  

    Posting Permissions

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