eol-style:native and some TCHAR fixes

svn path=/trunk/; revision=22293
This commit is contained in:
Brandon Turner 2006-06-09 15:59:56 +00:00
parent 6b4f2e1649
commit 911fec4841
2 changed files with 14 additions and 11 deletions

View file

@ -1,5 +1,6 @@
#include "stdio.h" #include <stdio.h>
#include "Windows.h" #include <tchar.h>
#include <windows.h>
int main() int main()
{ {
@ -20,10 +21,10 @@ int main()
// //
// We print out this char as an int to show that infact a backspace does count as input // We print out this char as an int to show that infact a backspace does count as input
// //
printf("You printed %c :: ", Buffer); _tprintf(TEXT("You printed %c :: "), Buffer);
printf("With a value %d :: ", Buffer); _tprintf(TEXT("With a value %d :: "), Buffer);
printf("Number of chars recieved %lu :: ", Count); _tprintf(TEXT("Number of chars recieved %lu :: "), Count);
printf("Char equal to backspace %d \n", (Buffer == '\b')); _tprintf(TEXT("Char equal to backspace %d \n"), (Buffer == TEXT('\b')));
// //
// :) // :)

View file

@ -1,5 +1,7 @@
<module name="readconsole" type="win32cui" installbase="bin" installname="readconsole.exe"> <module name="readconsole" type="win32cui" installbase="bin" installname="readconsole.exe">
<define name="__USE_W32API" /> <define name="UNICODE" />
<library>kernel32</library> <define name="_UNICODE" />
<file>main.c</file> <define name="__USE_W32API" />
</module> <library>kernel32</library>
<file>main.c</file>
</module>