Jump to content
  • Advertisement
Sign in to follow this  
synth_cat

how to get string in non-console Win32 app?

This topic is 4326 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
You'll probably have to create the window yourself, and have the okay button return the string in the text box.

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!