• (2 Pages)
  • +
  • 1
  • 2

Intro to Win32 Will teach you the basics of Win32 Rate Topic: ***** 3 Votes

#1 Mrafcho001  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 41
  • View blog
  • Posts: 769
  • Joined: 01-November 05

Posted 19 December 2005 - 08:29 PM

*
POPULAR

This is my first programming tutorial i've ever written. Also I am not all that great with english, spell checker fixed the spelling but grammer and sentence structure still sucks. Please ask if you want anything clearfied.

Thank you.

.txt version here:
http://www.martin.th...0to%20Win32.txt
or .doc version as at attachment

the .doc has colors

Attached File(s)


This post has been edited by Mrafcho001: 19 December 2005 - 08:49 PM


Is This A Good Question/Topic? 12
  • +

Replies To: Intro to Win32

#2 Piperlester  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 131
  • Joined: 18-October 05

Posted 20 December 2005 - 01:32 AM

Excellent!

I just read through the entire tutorial, and actually understand it.

I'll be sure to recommend it from now on :)
Was This Post Helpful? 0
  • +
  • -

#3 Xenophobia  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 23-February 06

Posted 01 April 2006 - 02:23 PM

[FONT=Courier]Very nice tutorial. I needed to learn more about creating common controls and your tutorial helped. Thank you.
Was This Post Helpful? 0
  • +
  • -

#4 shikha  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 30
  • Joined: 23-May 06

Posted 25 May 2006 - 02:36 AM

:rolleyes: i was trying the samr prg....... n everything was gr8 until it came to running of the prg.... i was triying to run it but i couldnt ....... plz suggest me some ways.....................
Was This Post Helpful? 0
  • +
  • -

#5 Mrafcho001  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 41
  • View blog
  • Posts: 769
  • Joined: 01-November 05

Posted 26 May 2006 - 07:30 PM

Post your questions in the correct forum, please.

You can start by showing is us the code, what you expect to happen and what is actually happening.
We will then help you solve the problem.

Thank you.
Was This Post Helpful? 0
  • +
  • -

#6 2fletch  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 5
  • Joined: 30-November 08

Posted 01 February 2009 - 01:41 PM

This is a great tutorial.
Was This Post Helpful? 0
  • +
  • -

#7 rs4  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 29
  • View blog
  • Posts: 153
  • Joined: 01-February 09

Posted 12 July 2009 - 08:39 PM

This is a great tutorial, thanks.
If it doesn't work for you(I know this was the case for me in VS express C++ 2008), it could be because strings and characters need to be specified as wchar_t and precede strings with L, like this L"......".
Was This Post Helpful? 1
  • +
  • -

#8 ScytheXV8  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 02-November 09

Posted 30 November 2009 - 04:08 AM

Hey, thank you for the great tutorial. It worked great as an introduction to windows programming, explaining things satisfactory without getting too complicated(that's what msdn is for :)).

One note though; in the Controls program, handling the close button using PostQuitMessage(0) didn't close the application. According to msdn, the DestroyWindow() function performs all closure operations for the window and the PostQuitMessage(0) posts a message to exit the message loop, so I used DestroyWindow() which worked fine(sending the WM_DESTROY message which is handled later in the loop using PostQuitMessage(0)).
Was This Post Helpful? 0
  • +
  • -

#9 Aldahbra  Icon User is offline

  • New D.I.C Head

Reputation: 1
  • View blog
  • Posts: 16
  • Joined: 02-January 10

Posted 20 April 2011 - 08:57 AM

View Postrs4, on 12 July 2009 - 09:39 PM, said:

This is a great tutorial, thanks.
If it doesn't work for you(I know this was the case for me in VS express C++ 2008), it could be because strings and characters need to be specified as wchar_t and precede strings with L, like this L"......".


I couldn't get it to work in VS2010 until I read this. I just added the L

 MessageBox(NULL, L"Hello World!", L"Dream in code", MB_OK);


Now a nice little box pops up
Was This Post Helpful? 0
  • +
  • -

#10 Nuked  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 4
  • Joined: 23-April 11

Posted 23 April 2011 - 11:07 AM

Ooooh.. Really nice! I like it alot
Was This Post Helpful? 0
  • +
  • -

#11 kiasta  Icon User is offline

  • D.I.C Regular

Reputation: 20
  • View blog
  • Posts: 258
  • Joined: 18-November 07

Posted 26 September 2011 - 10:43 AM

I know this is an old post but the first link no longer works.
Was This Post Helpful? 0
  • +
  • -

#12 Wuzseen  Icon User is offline

  • D.I.C Head

Reputation: 3
  • View blog
  • Posts: 72
  • Joined: 04-October 11

Posted 06 October 2011 - 12:30 PM

For those looking at this helpful guide. If you're using visual studio, it might not work. As someone suggested above you can put L in front of your strings as such:

L"test"



ALSO (this is probably the easiest way to fix it)

Go to project -> project properties. Expand configuration properties and change from unicode to multi-byte character set.
Was This Post Helpful? 0
  • +
  • -

#13 Aphex19  Icon User is offline

  • Born again Pastafarian.
  • member icon

Reputation: 615
  • View blog
  • Posts: 1,873
  • Joined: 02-August 09

Posted 11 October 2011 - 04:42 AM

Excellent, well done.
Was This Post Helpful? 0
  • +
  • -

#14 MirrorFish  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 7
  • View blog
  • Posts: 27
  • Joined: 29-March 11

Posted 11 October 2011 - 06:27 AM

Hello,
Good intro to GUI with Win32 API! Keep going.

I myself collect samples of code to quickly reuse. Something alike is in my collection.

What about something more sophisticated ? Like dialog with "TreeView" control that works as the navigation bar for something to the right ? Greed control ? Tabs ?

Also I would like to read more about using "Owner draw" for the window borders (like custom and system independent gradient), caption and controls inside the window.

Regards
Was This Post Helpful? 0
  • +
  • -

#15 Jimbo7136  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 33
  • Joined: 01-July 12

Posted 05 July 2012 - 07:11 AM

This is something I have been wishing I could read for awhile.

So glad to find a tutorial like this, explains so many things I've been wondering.

Thank You
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2