Re: [Lcms-user] application crash when calling cmsDoTransform

2007-01-30 Thread jbrembat
Sorry, 2 mistakes: 1-cmsDoTrasform is a Sub, so last Long is to be avoided 2-obviously, the For loop must be completed with a Next Public Declare Sub cmsDoTransform Lib "lcms.dll" _ (ByVal hTransform As Long, _ ByVal InputBufferPtr As Long, _ ByVal OutputBufferPtr As Long, _ ByVal BufferSize As Lo

Re: [Lcms-user] application crash when calling cmsDoTransform

2007-01-30 Thread jbrembat
Hi, You can declare cmsDoTransorm as follows: Public Declare Sub cmsDoTransform Lib "lcms.dll" _ (ByVal hTransform As Long, _ ByVal InputBufferPtr As Long, _ ByVal OutputBufferPtr As Long, _ ByVal BufferSize As Long) As Long BufferSize is the number of pixels. As Marti wrote in tutorial, wi

Re: [Lcms-user] application crash when calling cmsDoTransform

2007-01-28 Thread Glenn Wilton
I have been using LCMS with VBA for over a year. I simply use a Class to handle everything, Would you be interested? Glenn Wilton Kai-Uwe Behrmann wrote: > Does you get a valid pointer from cmsDoTransform? > > regards > Kai-Uwe Behrmann > -- > development for color management > www.behrmann.nam

Re: [Lcms-user] application crash when calling cmsDoTransform

2007-01-26 Thread Kai-Uwe Behrmann
Does you get a valid pointer from cmsDoTransform? regards Kai-Uwe Behrmann -- development for color management www.behrmann.name + www.oyranos.org + www.cinepaint.org Am 26.01.07, 13:39 -0300 schrieb leonardo maggini: > Hi, > > I'm trying to use Little cms with VB6, but when I call > cms

[Lcms-user] application crash when calling cmsDoTransform

2007-01-26 Thread leonardo maggini
Hi, I'm trying to use Little cms with VB6, but when I call cmsDoTransform function my application crashes. I don't know much of API declarations so I think that may be there is a problem there... I don't have any problem calling other functions like cmsOpenProfileFromFile, or cmsCreateTransf