Здравствуйте у меня такая беда: использую функцию
#define BUF_SIZE 50
char buf[BUF_SIZE];GetDlgItemText(hDlg, IDD_USER_NAME, buf, BUF_SIZE); //а потом
file = fopen( file_name, "w" );
fputs( buf, file );
fclose( file );
в результате вадается ошибка
warning C4133: 'function' : incompatible types — from 'char [50]' to 'unsigned short *' на строку с функцией.В help написано что buf это указатель (Pointer to the null-terminated string that contains the text to be copied to the control), тогда вопрос как достать оттуда текст.