A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2000-July/005835.html below:

[Python-Dev] RE: [Python-checkins] CVS: python/dist/src/PC WinMain.c,1.3,1.4

[Python-Dev] RE: [Python-checkins] CVS: python/dist/src/PC WinMain.c,1.3,1.4Bill Tutt billtut@microsoft.com
Sat, 8 Jul 2000 13:54:36 -0700
Heh, if the CRT really returns a long from the get OS handle function, then
its typed wrong. :)
For Win32 sizeof(HANDLE) == sizeof(long), that isn't the case for Win64. 

Bill

 -----Original Message-----
From: 	Barry Scott [mailto:barry@scottb.demon.co.uk] 
Sent:	Saturday, July 08, 2000 1:37 PM
To:	Bill Tutt; python-dev@python.org
Subject:	RE: [Python-checkins] CVS: python/dist/src/PC
WinMain.c,1.3,1.4

Bill,
	Your code is a far better solution.

> B)	The -1's below really should be: INVALID_HANDLE_VALUE

	Check with the implementation and MSDN you will see that
	the return type is long and the error condition is -1.
	INVALID_HANDLE_VALUE is not of type long and will give
	a compile warning C4047.

		Barry



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4