Opened 19 years ago

Last modified 19 years ago

#814 closed defect (fixed)

VB6 Binding Issues

Reported by: warmerdam Owned by: warmerdam
Priority: high Milestone:
Component: GDAL_Raster Version: unspecified
Severity: normal Keywords:
Cc:

Description

For Frank: I've found a few small (non life-threatening) errors in the VB calls
to the DLL....

 

1.    Function to clone color table in DLL should be : _GDALCloneColorTable@4

2.    Function to set color table should point to _GDALSetRasterColorTable@8

3.    I did not get the following line of code working in case of GeoTiff images

 

      dstband.SetColorTable(CTOut)

 

      Although it worked fine with BMP. Any idea what might be wrong?…

Change History (2)

comment:1 by warmerdam, 19 years ago

I have fixed problems 1 and 2 in CVS ... thanks!

For problem 3, GeoTIFF files only support SetColorTable() under limited
circumstances.  It must be called after creating a file, but before any
imagery has been written.  If done later you should get an error. 

Were you setting the color table after a Create() and before any calls to 
write image data? 


comment:2 by warmerdam, 19 years ago

I have made some fixes to the SetColorTable() method.  Everything is
now back in CVS. 

Please re-open if the problem persists. 

Note: See TracTickets for help on using tickets.