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?)
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?)