Pelles C forum

C language => Beginner questions => Topic started by: jj2007 on March 19, 2013, 06:36:40 PM

Title: Win-64 GUI Hello World app?
Post by: jj2007 on March 19, 2013, 06:36:40 PM
Hi,

I've searched the forum, the wizard and the sample folder but no success. Does anybody have a Win-64 GUI example that compiles without cryptic errors about APIs not found etc?

Thanxalot in advance.
Title: Re: Win-64 GUI Hello World app?
Post by: CLR on March 20, 2013, 04:38:59 AM
Hi jj2007

This works for me:

File -> New -> Project
Select 'Windows application wizard'
Enter a name for the project -> OK
Select 'A Hello world program', select 'Win64' -> Next -> Finish
Project -> Build

Title: Re: Win-64 GUI Hello World app?
Post by: jj2007 on March 20, 2013, 10:58:21 AM
Thanks, CLR - it works.

I guess I got confused by seeing

* Purpose : Generic Win32 application
...
#define WIN32_LEAN_AND_MEAN

in Main.c created by the wizard ;-

FWIW, I am testing IPC between 32- and 64-bit apps using RegisterWindowMessage & SendMessage. A single exchange of, well, two dwords eats around 11000 ... 17000 cycles, depending on the CPU. Results are very similar for 32- and 64-bit "servers".