get players name

Started by
3 comments, last by evolutional 19 years, 8 months ago
What is the best way to get a players name in a windows program. I am using directx 8.1, visual c++ Thanks
Advertisement
The quickest and dirtiest way is to throw up a Dialog with a TextEdit control in it. Otherwise, you'll need to use a GUI library within your game to do a similar thing.
That is unless you have that information roaming around in a file or class somewhere and then you would just poll the "object" (assuming OOP) for the information or read the file for the information (such as the character's file containing the player's name). But this way assumes previous setup.
God bless-Gryfang
A windows input box.
I teleported home one night; With Ron and Sid and Meg; Ron stole Meggie's heart away; And I got Sydney's leg. <> I'm blogging, emo style
As you've mentioned that you're using DirectX, how about looking at Crazy Eddie's GUI system? This way you could build the edit box and much more should you need it.

This topic is closed to new replies.

Advertisement