Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
BhaskarBora3-Sep-03 19:54
BhaskarBora3-Sep-03 19:54 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 20:11
rohit.dhamija3-Sep-03 20:11 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
BhaskarBora3-Sep-03 20:21
BhaskarBora3-Sep-03 20:21 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
J. Dunlap3-Sep-03 20:30
J. Dunlap3-Sep-03 20:30 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 20:49
rohit.dhamija3-Sep-03 20:49 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
chifor3-Sep-03 21:19
chifor3-Sep-03 21:19 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija3-Sep-03 23:35
rohit.dhamija3-Sep-03 23:35 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Braulio Dez3-Sep-03 23:49
Braulio Dez3-Sep-03 23:49 
Hi,


I think just with a casting could be enough ?

CString Mystring;
myfunc((LPCSTR) Mystring);

If not, try this:

CString MyString;
myfunc(MyString.GetBuffer(0));
MyString.ReleaseBuffer();

HTH
Braulio
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Maverick4-Sep-03 22:30
Maverick4-Sep-03 22:30 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
Dangleberry22-Sep-03 0:00
sussDangleberry22-Sep-03 0:00 
GeneralRe: Help Experts...CString to LPCSTR conversion Pin
rohit.dhamija22-Sep-03 0:11
rohit.dhamija22-Sep-03 0:11 
Questionhow to get IP Pin
igala.net3-Sep-03 19:21
igala.net3-Sep-03 19:21 
AnswerRe: how to get IP Pin
Jason Henderson4-Sep-03 2:44
Jason Henderson4-Sep-03 2:44 
GeneralTranslate this method to c++; Pin
Bo Hunter3-Sep-03 19:05
Bo Hunter3-Sep-03 19:05 
GeneralRe: Translate this method to c++; Pin
HJo3-Sep-03 23:33
HJo3-Sep-03 23:33 
GeneralRe: Translate this method to c++; Pin
Bo Hunter4-Sep-03 11:37
Bo Hunter4-Sep-03 11:37 
GeneralRe: Translate this method to c++; Pin
Jonas Larsson4-Sep-03 4:21
Jonas Larsson4-Sep-03 4:21 
GeneralIs this a homework assignment? Pin
JWood5-Sep-03 3:43
JWood5-Sep-03 3:43 
GeneralHelp!!! Pin
jimsleon3-Sep-03 18:54
jimsleon3-Sep-03 18:54 
GeneralRe: Help!!! Pin
Magnus Westin3-Sep-03 21:20
Magnus Westin3-Sep-03 21:20 
GeneralRe: Help!!! Pin
Dudi Avramov4-Sep-03 0:59
Dudi Avramov4-Sep-03 0:59 
GeneralRe: Help!!! Pin
Dudi Avramov3-Sep-03 22:58
Dudi Avramov3-Sep-03 22:58 
Questiondll and installation? Pin
theCapt3-Sep-03 18:12
susstheCapt3-Sep-03 18:12 
QuestionBSTR question? Pin
theCapt3-Sep-03 18:06
susstheCapt3-Sep-03 18:06 
AnswerRe: BSTR question? Pin
TrickyFishy3-Sep-03 18:48
TrickyFishy3-Sep-03 18:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.