Sign in to follow this  
synth_cat

how to get string in non-console Win32 app?

Recommended Posts

Hello everyone - I was wondering if there is any simple way for the user to input a string into a Win32 app (_not_ a console app.) I'm assuming there is some sort of MessageBox()-ish function that you can do this with (ie., a function that creates a simple dialog box with an "OK" button and a field for entering a string. But I've never heard the specifics for how to do this. Thanks in advance for any help! -synth_cat

Share this post


Link to post
Share on other sites
You can include a dialogbox as a resource in your application. Then you will have to supply your own dialogbox messagehandler.
To create the actual DialogBox you can use the DialogBox, DialogBoxParam functions or similar.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
there are MANY ways to do this.
it depends on the library you use.
you could use:
.NET, MFC, WinAPI,...
or "external" libs like QT, SDL, etc.

Share this post


Link to post
Share on other sites
Thanks for all the replies!

The DialogBox is new to me - is this something that you have to write a CALLBACK function for?

Quote:

there are MANY ways to do this.
it depends on the library you use.
you could use:
.NET, MFC, WinAPI,...
or "external" libs like QT, SDL, etc.

I would be using WinAPI, with no MFC or externals.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this