🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.vbasic
Article #104674

IntPtr.Zero

#104674
From: Maciej Tokarz
Date: Tue, 29 Jun 2010 14:04
18 lines
1087 bytes
Witam,

Jaka jest różnica pomiędzy IntPtr.Zero, a 0?
Na przykład w takim zapisie:

	Dim windowHandle As IntPtr
	windowHandle = FindWindow("Tray", Nothing)
	
	If windowHandle <> 0 Then

	a

	If windowHandle <> IntPtr.Zero Then


-- 
  Maciej Tokarz
  My-Poi.pl
Technical Details
Message-ID: <i0cugg$3q6$3@news.onet.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!news.onet.pl!not-for-mail
From: Maciej Tokarz <mactok@hotmail.com>
Newsgroups: pl.comp.lang.vbasic
Subject: IntPtr.Zero
Date: Tue, 29 Jun 2010 16:04:05 +0200
Organization: http://onet.pl
Lines: 18
Message-ID: <i0cugg$3q6$3@news.onet.pl>
NNTP-Posting-Host: xdsl-1224.wroclaw.dialog.net.pl
Mime-Version: 1.0
X-Trace: news.onet.pl 1277820240 3910 81.168.132.200 (29 Jun 2010 14:04:00 GMT)
X-Complaints-To: niusy@onet.pl
NNTP-Posting-Date: Tue, 29 Jun 2010 14:04:00 +0000 (UTC)
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4
X-Antivirus: avast! (VPS 100629-0, 2010-06-29), Outbound message
X-Antivirus-Status: Clean
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit