Re: ByVal
From: Karproxid (uce_at_ftc.gov)
Date: 07/15/04
- Next message: cmyik: "bt"
- Previous message: Moggs: "VB6 Reports"
- In reply to: Karproxid: "Re: ByVal"
- Next in thread: Randy Birch: "Re: ByVal"
- Reply: Randy Birch: "Re: ByVal"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 15 Jul 2004 14:37:41 GMT
Karproxid <uce@ftc.gov> wrote in article
<01c46a77$6fffe3f0$fc10ba3f@cooper>...
> Bob Butler <tiredofit@nospam.com> wrote in article
> >
> > What do the FreeImage_GetXXX routines return? I'm guessing that they
are
> > returning pointers to the data so in your API call you have to use
ByVal
> to
> > pass that pointer value in the parameter. If you use ByRef you'd be
> sending
> > a pointer to a pointer which would not be valid.
>
> I see. But then why does the cpp version also fail?
Figured it out:
needs to be:
Public Declare Function BMP_From_DIB Lib "that.dll" (ByVal DIB As Long) As
Long
not
Public Declare Function BMP_From_DIB Lib "that.dll" (ByRef DIB As Long) As
Long
- Next message: cmyik: "bt"
- Previous message: Moggs: "VB6 Reports"
- In reply to: Karproxid: "Re: ByVal"
- Next in thread: Randy Birch: "Re: ByVal"
- Reply: Randy Birch: "Re: ByVal"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|