Click here to Skip to main content
15,908,674 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dialogs - Background Color and Size/Positions Pin
Hamid_RT2-Aug-06 9:41
Hamid_RT2-Aug-06 9:41 
QuestionCString to LPVOID Pin
EpicYeti1-Aug-06 5:28
EpicYeti1-Aug-06 5:28 
AnswerRe: CString to LPVOID Pin
David Crow1-Aug-06 5:38
David Crow1-Aug-06 5:38 
GeneralRe: CString to LPVOID Pin
EpicYeti1-Aug-06 5:52
EpicYeti1-Aug-06 5:52 
QuestionRe: CString to LPVOID Pin
David Crow1-Aug-06 5:59
David Crow1-Aug-06 5:59 
AnswerRe: CString to LPVOID Pin
EpicYeti1-Aug-06 7:03
EpicYeti1-Aug-06 7:03 
QuestionRe: CString to LPVOID Pin
David Crow1-Aug-06 7:22
David Crow1-Aug-06 7:22 
AnswerRe: CString to LPVOID Pin
EpicYeti1-Aug-06 7:35
EpicYeti1-Aug-06 7:35 
The problem is that I can't set the char data[] in the last example. I have a CString variable that has the POST data in it, however I can't get the data in CString because it returns a const char*, and I can't set that to the char data[]. I also have no idea what the post data will be, and thus can't hard code it as I did in the working example.

That was me hard coding my test. In the release it can't be hard coded.

Is there a way I could effectively do this:

CString m_data = _T("...");
char data[];
data = m_data.GetBuffer();


GeneralRe: CString to LPVOID Pin
David Crow1-Aug-06 7:43
David Crow1-Aug-06 7:43 
GeneralRe: CString to LPVOID [modified] Pin
EpicYeti1-Aug-06 9:35
EpicYeti1-Aug-06 9:35 
GeneralRe: CString to LPVOID Pin
Zac Howland1-Aug-06 8:43
Zac Howland1-Aug-06 8:43 
GeneralRe: CString to LPVOID Pin
EpicYeti1-Aug-06 9:38
EpicYeti1-Aug-06 9:38 
GeneralRe: CString to LPVOID Pin
Zac Howland1-Aug-06 10:02
Zac Howland1-Aug-06 10:02 
GeneralRe: CString to LPVOID Pin
EpicYeti1-Aug-06 10:57
EpicYeti1-Aug-06 10:57 
GeneralRe: CString to LPVOID Pin
Zac Howland1-Aug-06 6:05
Zac Howland1-Aug-06 6:05 
AnswerRe: CString to LPVOID Pin
Zac Howland1-Aug-06 5:51
Zac Howland1-Aug-06 5:51 
AnswerRe: CString to LPVOID Pin
Michael Dunn1-Aug-06 19:37
sitebuilderMichael Dunn1-Aug-06 19:37 
Questioniostream.h in Visual Studio 2005 [modified] Pin
Jay031-Aug-06 5:27
Jay031-Aug-06 5:27 
AnswerRe: iostream.h in Visual Studio 2005 Pin
Zac Howland1-Aug-06 5:52
Zac Howland1-Aug-06 5:52 
AnswerRe: iostream.h in Visual Studio 2005 Pin
Sarath C1-Aug-06 6:59
Sarath C1-Aug-06 6:59 
AnswerRe: iostream.h in Visual Studio 2005 Pin
Michael Dunn1-Aug-06 19:37
sitebuilderMichael Dunn1-Aug-06 19:37 
QuestionDebug runs, Release crashes. Why? Pin
Hotte1-Aug-06 5:14
Hotte1-Aug-06 5:14 
AnswerRe: Debug runs, Release crashes. Why? Pin
toxcct1-Aug-06 5:20
toxcct1-Aug-06 5:20 
QuestionRe: Debug runs, Release crashes. Why? Pin
David Crow1-Aug-06 5:45
David Crow1-Aug-06 5:45 
AnswerRe: Debug runs, Release crashes. Why? Pin
Zac Howland1-Aug-06 5:56
Zac Howland1-Aug-06 5:56 

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.