Hello,
I got a problem, I can't convert char* or CString to fixed char[]
using VC++, I try many books, but find only this, for example:
#define MAX_ME 100
char szString[MAX_ME];
I want to move from string or char to fixed char[] and add fixed lenght
for char, but not successed, somebody know how to fix this problem.
I want to use like this example:
CString sDEMO;
sDEMO="only for demonstration";
char szString[]=sDEMO; //<- But this method not working
//char szString[]="only for demonstration"; //<- This method working, but I want
get from other location like from file string and add to fixed char[] and add
fixed lenght.
Why I want to use this? Becouse in ISAPI filter, that only supported
some functions fixed char[] and not supported like char* or something else.
P.S. Sorry for my English
I got a problem, I can't convert char* or CString to fixed char[]
using VC++, I try many books, but find only this, for example:
#define MAX_ME 100
char szString[MAX_ME];
I want to move from string or char to fixed char[] and add fixed lenght
for char, but not successed, somebody know how to fix this problem.
I want to use like this example:
CString sDEMO;
sDEMO="only for demonstration";
char szString[]=sDEMO; //<- But this method not working
//char szString[]="only for demonstration"; //<- This method working, but I want
get from other location like from file string and add to fixed char[] and add
fixed lenght.
Why I want to use this? Becouse in ISAPI filter, that only supported
some functions fixed char[] and not supported like char* or something else.
P.S. Sorry for my English