Click here to Skip to main content
15,911,531 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: 2 dimmensional dynamic array of pointers Pin
Axter26-Apr-05 18:14
professionalAxter26-Apr-05 18:14 
Generaldrawing a tic tac toe grid MFC Pin
crxtreme271-Mar-05 10:08
crxtreme271-Mar-05 10:08 
GeneralRe: drawing a tic tac toe grid MFC Pin
Maximilien1-Mar-05 10:33
Maximilien1-Mar-05 10:33 
GeneralRe: drawing a tic tac toe grid MFC Pin
r1ryder1-Mar-05 11:50
r1ryder1-Mar-05 11:50 
GeneralRe: drawing a tic tac toe grid MFC Pin
Christian Graus1-Mar-05 12:06
protectorChristian Graus1-Mar-05 12:06 
Generalms word 2000 Pin
rjnl1-Mar-05 8:18
rjnl1-Mar-05 8:18 
GeneralRe: ms word 2000 Pin
rjnl1-Mar-05 15:37
rjnl1-Mar-05 15:37 
GeneralI need to append to this string Pin
Tom Wright1-Mar-05 8:07
Tom Wright1-Mar-05 8:07 
I am retriving a string from a SQL database. At the end of the string I need to add a hex 00 and a hex 04. No matter what I do I cannot seem to get the hex 00 and hex 04 tagged to the end.

I've tried do this with a byte array, a char array, CString.format. Nothing.
Here is my most recent code:
<br />
			CString mySQLData = (char*)(_bstr_t)pRecordset->Fields->GetItem("MDC1_DATA_TEXT")->Value;<br />
<br />
			char* myStringMsg = new char[strlen(mySQLData)];<br />
			strcpy(myStringMsg, mySQLData);<br />
			myStringMsg[strlen(mySQLData)] = 0x00;<br />
			myStringMsg[strlen(mySQLData)+1] = 0x04;<br />
<br />
			iSent = m_sConnectSocket.Send(myStringMsg, strlen(myStringMsg));<br />

Could someone please give me some insight into solving this problem.
Thanks


Tom Wright
tawright915@yahoo.com
GeneralRe: I need to append to this string Pin
peterchen1-Mar-05 8:57
peterchen1-Mar-05 8:57 
GeneralRe: I need to append to this string Pin
Tom Wright1-Mar-05 11:10
Tom Wright1-Mar-05 11:10 
GeneralRe: I need to append to this string Pin
peterchen1-Mar-05 11:37
peterchen1-Mar-05 11:37 
GeneralRe: I need to append to this string Pin
Tom Wright1-Mar-05 12:07
Tom Wright1-Mar-05 12:07 
GeneralRe: I need to append to this string Pin
peterchen1-Mar-05 18:37
peterchen1-Mar-05 18:37 
GeneralRe: I need to append to this string Pin
Tom Wright1-Mar-05 12:08
Tom Wright1-Mar-05 12:08 
GeneralCustom icon for an app Pin
Alton Williams1-Mar-05 7:07
Alton Williams1-Mar-05 7:07 
GeneralRe: Custom icon for an app Pin
Blake Miller1-Mar-05 7:19
Blake Miller1-Mar-05 7:19 
GeneralRe: Custom icon for an app Pin
Alton Williams1-Mar-05 7:31
Alton Williams1-Mar-05 7:31 
GeneralRe: Custom icon for an app Pin
Michael Dunn1-Mar-05 7:36
sitebuilderMichael Dunn1-Mar-05 7:36 
GeneralRe: Custom icon for an app Pin
David Crow1-Mar-05 9:07
David Crow1-Mar-05 9:07 
QuestionSetting checkbox state in OnInitDialog? Pin
1-Mar-05 6:59
suss1-Mar-05 6:59 
AnswerRe: Setting checkbox state in OnInitDialog? Pin
Blake Miller1-Mar-05 7:23
Blake Miller1-Mar-05 7:23 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Member 16972731-Mar-05 7:33
Member 16972731-Mar-05 7:33 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Blake Miller1-Mar-05 7:41
Blake Miller1-Mar-05 7:41 
AnswerRe: Setting checkbox state in OnInitDialog? Pin
Ravi Bhavnani1-Mar-05 7:27
professionalRavi Bhavnani1-Mar-05 7:27 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Member 16972731-Mar-05 7:58
Member 16972731-Mar-05 7:58 

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.