Sign in to follow this  
Sir Sapo

String question

Recommended Posts

Hey everyone, Is there anyway to convert a string into a const char*? I'm using GLUT popup menus in a little editor I wrote for a game I'm making, and I'm trying to have the popup menus contain buttons that are defined in an outside file. The problem arises when I try and create the sub menu buttons because the information for the button's name is saved as a string, but the function that creates the menu requires a const char *. Thanks in advance.

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