Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas013.isp.belgacom.be (localhost [127.0.0.1])
        by inav015.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k5S7Cpe4024946
        for <joris.at.lebbeke@skynet.be>; Wed, 28 Jun 2006 09:12:51 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx002.isp.belgacom.be (inmx002.isp.belgacom.be [195.238.5.7])
        by inas013.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k5S7Ck09016299
        for <joris.at.lebbeke@skynet.be>; Wed, 28 Jun 2006 09:12:48 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx002.isp.belgacom.be (8.12.11.20060308/8.12.11/Skynet-IN-2.32) with ESMTP id k5S7CeRH017916
        for <joris.at.lebbeke@skynet.be>; Wed, 28 Jun 2006 09:12:42 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k5S724QG010809;
	Wed, 28 Jun 2006 03:03:17 -0400
Received: from web7614.mail.in.yahoo.com (web7614.mail.in.yahoo.com
	[202.86.4.33])
	by duke.maptools.org (8.12.11/8.12.10) with SMTP id k5S71wVK010798
	for <tiff@lists.maptools.org>; Wed, 28 Jun 2006 03:01:59 -0400
Received: (qmail 57027 invoked by uid 60001); 28 Jun 2006 07:01:41 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in;
	h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=t/x/ohC62WuMCcTjXWlBiB6qibT5uTDdenYOjQY3To4dqxVg9mGazgrFEoj3u/x72g3FMJ1XychQbYGU11Zb6pzUNwupcZ/He6oi9krYqtCmKRqol7mUwqdGp9y2PuEibODDK5Z2qA0oBGMkYBaWkuqyNJO+aicPbnCjtUBzcKI=
	; 
Message-ID: <20060628070141.57025.qmail@web7614.mail.in.yahoo.com>
Received: from [59.144.3.98] by web7614.mail.in.yahoo.com via HTTP;
	Wed, 28 Jun 2006 08:01:41 BST
Date: Wed, 28 Jun 2006 08:01:41 +0100 (BST)
From: malathi p <malathi_p83@yahoo.co.in>
To: TIFF <tiff@lists.maptools.org>
MIME-Version: 1.0
Subject: [Tiff] SOMEBODY HELP ME
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============1985376654=="
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.0000180e
X-MSP-STORE: Wed, 28 Jun 2006 09:12:52 +0200
Status:   

--===============1985376654==
Content-Type: multipart/alternative; boundary="0-1061756774-1151478101=:57016"
Content-Transfer-Encoding: 8bit

--0-1061756774-1151478101=:57016
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

hi experts,
             
             iam trying to create a simple window,but its giving some sort of errors,which i couldnot understand anything,plz somebody help me,i attached my code as well errors
   
   
  my code:
  #include<tiffio.h>
#include<iostream.h>
#include<windows.h>
#include<resource.h>
//void main()
LRESULT CALLBACK wndProc(HWND,UINT,WPARAM,LPARAM);
  int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)
{
 
 
 //uint32 v,cnt;
   
 //TIFF *t=TIFFOpen("c:\\551997.tif","r");
    //v=TIFFGetField(t,256,&cnt);
 //cout<<"The:"<<v<<" "<<cnt;
 //TIFFClose(t);
   
 HWND hwnd;
 HWNDCLASS wndclass;
 if(!hPrevInstance)
 {
  wndclass.style=CS_HREDRAW|CS_VREDRAW;
  wndclass.lpfnwndProc=(WNDPROC)WndProc;
  wndclass.cbClsExtra=0;
  wndclass.cbwndExtra=0;
  wndclass.hInstance=hInstance;
  wndclass.hIcon=LoadIocon(NULL,IDI_APPLICATION);
  wndclass.hCursor=LoadCursor(NULL,IDC_ARROW);
  wndclass.hbrBackground=GetStockobject(WHITE_BRUSH);
  wndclass.lpszMenuName="MYWINDOW";
  if(!RegisterClass(&wndclass))
    
 return 0;
 } 
  hwnd=CreateWindow("MYWINDOW","TIFF",WS_OVERLAPPEDWINDOW,10,110,400,400,NULL,NULL,hInstance,NULL);
ShowWindow(hwnd,nCmdShow);
     //cout<<"hai";
  
}

  
LRESULT CALLBACK WsndProc(HWND hwnd,UINT wMessage,WPARAM wParam,LPARAM lParam)
{
   return 0;
}
  
 error arises while compiling,iam doing in vc++6.0 console application
   
  --------------------Configuration: open - Win32 Debug--------------------
Compiling...
open.cpp
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(21) : error C2065: 'HWNDCLASS' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(21) : error C2146: syntax error : missing ';' before identifier 'wndclass'
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(21) : error C2065: 'wndclass' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(24) : error C2228: left of '.style' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(25) : error C2228: left of '.lpfnwndProc' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(25) : error C2065: 'WndProc' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(26) : error C2228: left of '.cbClsExtra' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(27) : error C2228: left of '.cbwndExtra' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(28) : error C2228: left of '.hInstance' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(29) : error C2228: left of '.hIcon' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(29) : error C2065: 'LoadIocon' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(30) : error C2228: left of '.hCursor' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(30) : error C2664: 'LoadCursorA' : cannot convert parameter 1 from 'void *' to 'struct HINSTANCE__ *'
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(31) : error C2228: left of '.hbrBackground' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(31) : error C2065: 'GetStockobject' : undeclared identifier
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(32) : error C2228: left of '.lpszMenuName' must have class/struct/union type
C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(38) : error C2664: 'CreateWindowExA' : cannot convert parameter 9 from 'void *' to 'struct HWND__ *'
        Conversion from 'void*' to pointer to non-'void' requires an explicit cast
Error executing cl.exe.
  open.obj - 17 error(s), 0 warning(s)

   
   
  rgds
  Malathi
   
   
          

 				
---------------------------------
 Yahoo! India Answers: Share what you know. Learn something new Click here
Catch all the FIFA World Cup 2006 action on Yahoo! India Click here
--0-1061756774-1151478101=:57016
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 8bit

<div>hi experts,</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; iam trying to create a simple window,but its giving some sort of errors,which i couldnot understand anything,plz somebody help me,i attached my code as well errors</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>my code:</div>  <div>#include&lt;tiffio.h&gt;<BR>#include&lt;iostream.h&gt;<BR>#include&lt;windows.h&gt;<BR>#include&lt;resource.h&gt;<BR>//void main()<BR>LRESULT CALLBACK wndProc(HWND,UINT,WPARAM,LPARAM);</div>  <div>int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,LPSTR lpCmdLine,int nCmdShow)<BR>{<BR>&nbsp;<BR>&nbsp;<BR>&nbsp;//uint32 v,cnt;<BR>&nbsp;&nbsp; <BR>&nbsp;//TIFF *t=TIFFOpen("c:\\551997.tif","r");<BR>&nbsp;&nbsp;&nbsp; //v=TIFFGetField(t,256,&amp;cnt);<BR>&nbsp;//cout&lt;&lt;"The:"&lt;&lt;v&lt;&lt;" "&lt;&lt;cnt;<BR>&nbsp;//TIFFClose(t);</div>  <div>&nbsp;<BR>&nbsp;HWND
 hwnd;<BR>&nbsp;HWNDCLASS wndclass;<BR>&nbsp;if(!hPrevInstance)<BR>&nbsp;{<BR>&nbsp; wndclass.style=CS_HREDRAW|CS_VREDRAW;<BR>&nbsp; wndclass.lpfnwndProc=(WNDPROC)WndProc;<BR>&nbsp; wndclass.cbClsExtra=0;<BR>&nbsp; wndclass.cbwndExtra=0;<BR>&nbsp; wndclass.hInstance=hInstance;<BR>&nbsp; wndclass.hIcon=LoadIocon(NULL,IDI_APPLICATION);<BR>&nbsp; wndclass.hCursor=LoadCursor(NULL,IDC_ARROW);<BR>&nbsp; wndclass.hbrBackground=GetStockobject(WHITE_BRUSH);<BR>&nbsp; wndclass.lpszMenuName="MYWINDOW";<BR>&nbsp; if(!RegisterClass(&amp;wndclass))<BR>&nbsp;&nbsp; &nbsp;<BR>&nbsp;return 0;<BR>&nbsp;}&nbsp;</div>  <div>hwnd=CreateWindow("MYWINDOW","TIFF",WS_OVERLAPPEDWINDOW,10,110,400,400,NULL,NULL,hInstance,NULL);<BR>ShowWindow(hwnd,nCmdShow);</div>  <div>&nbsp; &nbsp;//cout&lt;&lt;"hai";</div>  <div><BR>}</div>  <div><BR>LRESULT CALLBACK WsndProc(HWND hwnd,UINT wMessage,WPARAM wParam,LPARAM lParam)<BR>{</div>  <div>&nbsp;return 0;<BR>}</div>  <div><BR>&nbsp;error arises while
 compiling,iam doing in vc++6.0 console application</div>  <div>&nbsp;</div>  <div>--------------------Configuration: open - Win32 Debug--------------------<BR>Compiling...<BR>open.cpp<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(21) : error C2065: 'HWNDCLASS' : undeclared identifier<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(21) : error C2146: syntax error : missing ';' before identifier 'wndclass'<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(21) : error C2065: 'wndclass' : undeclared identifier<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(24) : error C2228: left of '.style' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(25) : error C2228: left of '.lpfnwndProc' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(25) : error C2065: 'WndProc' : undeclared
 identifier<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(26) : error C2228: left of '.cbClsExtra' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(27) : error C2228: left of '.cbwndExtra' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(28) : error C2228: left of '.hInstance' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(29) : error C2228: left of '.hIcon' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(29) : error C2065: 'LoadIocon' : undeclared identifier<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(30) : error C2228: left of '.hCursor' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(30) : error C2664: 'LoadCursorA' : cannot convert parameter 1 from 'void *' to
 'struct HINSTANCE__ *'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Conversion from 'void*' to pointer to non-'void' requires an explicit cast<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(31) : error C2228: left of '.hbrBackground' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(31) : error C2065: 'GetStockobject' : undeclared identifier<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(32) : error C2228: left of '.lpszMenuName' must have class/struct/union type<BR>C:\Program Files\Microsoft Visual Studio\MyProjects\prj\open.cpp(38) : error C2664: 'CreateWindowExA' : cannot convert parameter 9 from 'void *' to 'struct HWND__ *'<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Conversion from 'void*' to pointer to non-'void' requires an explicit cast<BR>Error executing cl.exe.</div>  <div>open.obj - 17 error(s), 0 warning(s)<BR></div>  <div>&nbsp;</div>  <div>&nbsp;</div> 
 <div>rgds</div>  <div>Malathi</div>  <div>&nbsp;</div>  <div>&nbsp;</div>  <div>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </div><p>&#32;
	

	
		<hr size=1></hr> 
Yahoo! India Answers: Share what you know. Learn something new <a href="http://us.rd.yahoo.com/mail/in/mailanswersshare/*http://in.answers.yahoo.com/">Click here</a><br>
Catch all the FIFA World Cup 2006 action on Yahoo! India <a href="http://us.rd.yahoo.com/mail/in/mailfifa/*http://in.sports.yahoo.com/football/football_fifa.html">Click here</a>
--0-1061756774-1151478101=:57016--

--===============1985376654==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
--===============1985376654==--
