How to make a buffer in this case. Is there something like Space(n) in VB in C++.
Code:
OPENFILENAME op;
op.lStructSize  = sizeof(op);
op.hwndOwner  = hDlg;
op.nMaxFile  = 256; //something is wrong here
char a[255]; //something is wrong here
op.lpstrFile  = a; //something is wrong here
op.Flags  = OFN_CREATEPROMPT;
GetOpenFileName(&op);
The Fileopen dialog is looking like !#$@!@#!!# ,i can't see the file names.