954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

making multiple windows

Hello everyone
I am trying to make a app. witch uses windows that pop-up if a button is pressed.
the problem is, i don't know how to make more than one window. Can anyone tell me how to do that?
I am using Microsoft Visual Studio 2010 Express, in a Win32 file.

kirenemook12
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

I'm guessing your wanting to load a second form from a button click?, if so watch this video tutorial.

http://www.youtube.com/watch?v=gpIZ3wvNxbo

Also google "visual c++ MessageBox Class" & "visual c++ dialogresult"...

ziggystarman
Junior Poster in Training
79 posts since Sep 2010
Reputation Points: 23
Solved Threads: 5
 

i don't use a windows form.
the second window has to receive input from the keyboard and mouse either.
i had tried to use the createWindow() function, but that did not work.

kirenemook12
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

Have you studied this tutorial ?

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

in that tutorial, I understood that i need to compile it as C, but i am using C++, or is it exactly the same?

kirenemook12
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

You can compile C code as c++ with no problems. All win32 api functions are C, none of them are pure c++.

Ancient Dragon
Retired & Loving It
Team Colleague
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
 

thanks a lot, i shall read that tutorial

kirenemook12
Newbie Poster
8 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: