I am trying to create a message box that allows you to enter a name
then display that name on a window. The program uses win32 but that is
not the issue. I want have a global buf variable. So that it can be
filled in the window then displayed in the main window.
Here is what I have
char * buf = NULL; //In my min program.
extern char * buf; // This is the section where I want buf displayed.
extern char * buf; //This is where I fill the array.
buf = new char[len];
GetDlgItemText(hwnd, IDC_NAME_EDIT, buf, len +1);
I have used extern before and it had made my progam possible but does
it work with a pointer?