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.

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"...

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.

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

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

thanks a lot, i shall read that tutorial

comands are not clear..can u tel me what are the commands

coding with pure win32 api functions is pretty complicated. There are introductory tutorials such as this one. Expect to take several months to learn it.

If you don't have that much time then I suggest you code in Windows Forms CLR/C++ instead of c++

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.