[Gdal-dev] same code, different result?
gislif
gislf at 126.com
Thu Dec 15 02:01:29 EST 2005
Hello,
Why the same code has diferent result? I have the following code in two deferent seperate program to generate dataset, one program (which has only these codes )is ok ,the other(which has other program writen by qt ) failed. why? seting mistake?
int main( int argc, char **argv )
{
//
GDALDataset *poDataset;
GDALRasterBand *poBand;
GDALAllRegister();
poDataset = (GDALDataset *) GDALOpen( "c:\output.jpg", GA_ReadOnly );
// one program (which has only these codes )is ok ,
//the other(which has other program writen by qt ) failed.
if( poDataset == NULL )
{
cout<<"fail to read file!"<<endl;
return 1;
}
gislif
2005-12-15
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/gdal-dev/attachments/20051215/fccb6070/attachment.html
More information about the Gdal-dev
mailing list