Hi All
I want to convert string into PCHAR.
How can I do that?
Please help..
Thanks
Ketu
Hi All
I want to convert string into PCHAR.
How can I do that?
Please help..
Thanks
Ketu
If it's a null terminated char string, you do nothing. If it's a std::string, then use the c_str() method.
PCHAR is just a typedef for "char *".
gg
I can't find any reference to this PCHAR that isn't Delphi Pascal. Do you just mean pointer to char, or how have you defined PCHAR?
Hi
This is my codde
iResultCompare=ldap_compare_s(ld,strDN.c_str,vAttT ypeFromFile_m[iCntAtt].c_str(),vAllAttValFromFile_m[iCntAtt][iCntVal].c_str());
and error is
error C2664: 'ldap_compare_s' : cannot convert parameter 2 from 'const char *(void) const' to 'const char *'
There is no context in which this conversion is possible
i got it...
I forgot to put () after c_str
thanks a lot :-)
Damn, at least try learn the language a little bit more before posting VERY basic question to a forum