<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.3790.2541" name=GENERATOR>
<STYLE>
<!--
/* Font Definitions */
@font-face
        {font-family:ËÎÌå;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:"\@ËÎÌå";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:Verdana;
        color:windowtext;
        font-weight:normal;
        font-style:normal;
        text-decoration:none none;}
/* Page Definitions */
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</STYLE>
</HEAD>
<BODY>
<DIV><FONT face=Verdana color=#0000ff size=2>Hello,</FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff
size=2> Why
the same code has diferent result? I have the following code in two deferent
seperate program to generate dataset, <FONT color=#000000
size=3>one program (which has only these codes )is ok ,the
other(which has other program writen by qt
) failed. why? seting
mistake?</FONT></FONT></DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#0000ff size=2></FONT> </DIV>
<DIV>int main( int argc, char **argv )<BR>{</DIV>
<DIV>//<BR> GDALDataset *poDataset;<BR> GDALRasterBand
*poBand;</DIV>
<DIV> </DIV>
<DIV> GDALAllRegister();</DIV>
<DIV> </DIV>
<DIV> poDataset = (GDALDataset *) GDALOpen( "c:\output.jpg", GA_ReadOnly
);</DIV>
<DIV> </DIV>
<DIV> // one program (which has only these codes )is ok ,</DIV>
<DIV>//the other(which has other program writen by qt
) failed. </DIV>
<DIV> </DIV>
<DIV>if( poDataset == NULL ) <BR> {<BR> cout<<"fail
to read file!"<<endl;<BR> return 1;<BR> }</DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV align=left>
<DIV align=left><FONT face=Verdana size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" SIZE=2>
</FONT></DIV>
<DIV><FONT color=#c0c0c0><FONT face=Verdana size=2>gislif</FONT></DIV>
<DIV><FONT face=Verdana size=2>2005-12-15</FONT></FONT></DIV></DIV>
<DIV><FONT face=Verdana size=2>
<HR>
</FONT></DIV>
<DIV><FONT face=Verdana size=2> </DIV></FONT></BODY></HTML>