...

View Full Version : VB6 Run-time error 48



malform
05-10-2004, 07:06 AM
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?)

shmoove
05-10-2004, 08:34 AM
Shouldn't it be "gdi32"?

shmoove

Hyder Ali
05-11-2004, 03:52 PM
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

malform
05-11-2004, 06:55 PM
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....



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum