Click here to Skip to main content
15,890,882 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dumb command line question Pin
David Crow25-Aug-04 10:10
David Crow25-Aug-04 10:10 
GeneralRe: dumb command line question Pin
DRHuff25-Aug-04 10:13
DRHuff25-Aug-04 10:13 
GeneralBolding dates in CDateTimeCtrl Pin
DRHuff25-Aug-04 9:42
DRHuff25-Aug-04 9:42 
GeneralRe: Bolding dates in CDateTimeCtrl Pin
David Crow25-Aug-04 10:17
David Crow25-Aug-04 10:17 
GeneralRe: Bolding dates in CDateTimeCtrl Pin
DRHuff25-Aug-04 10:38
DRHuff25-Aug-04 10:38 
GeneralStop removal of null characters Pin
Tom Wright25-Aug-04 9:18
Tom Wright25-Aug-04 9:18 
GeneralRe: Stop removal of null characters Pin
David Crow25-Aug-04 10:14
David Crow25-Aug-04 10:14 
GeneralRe: Stop removal of null characters Pin
Tom Wright25-Aug-04 10:26
Tom Wright25-Aug-04 10:26 
Here is my code snippet:
<br />
	char sHeader1[54]={"\x00"};<br />
	CString sHeader2;<br />
	sHeader2.Format("%s rest of message header here", sHeader1);<br />
	m_sConnectSocket.Send((LPCTSTR)sHeader2, sizeof(sHeader2));<br />
	//AfxMessageBox(sHeader2);<br />
	return 1;<br />

When I look at the packet on the other end, I do not see the nulls. It looks as though it removing them. This there a way to stop VC from doing this?

Thanks

Tom Wright
tawright915@yahoo.com
GeneralRe: Stop removal of null characters Pin
Rick York25-Aug-04 10:41
mveRick York25-Aug-04 10:41 
GeneralRe: Stop removal of null characters Pin
Tom Wright25-Aug-04 11:20
Tom Wright25-Aug-04 11:20 
GeneralRe: Stop removal of null characters Pin
David Crow25-Aug-04 10:43
David Crow25-Aug-04 10:43 
GeneralRe: Stop removal of null characters Pin
Tom Wright25-Aug-04 11:21
Tom Wright25-Aug-04 11:21 
GeneralRe: Stop removal of null characters Pin
David Crow25-Aug-04 11:27
David Crow25-Aug-04 11:27 
GeneralRe: Stop removal of null characters Pin
Tom Wright25-Aug-04 11:48
Tom Wright25-Aug-04 11:48 
GeneralRe: Stop removal of null characters Pin
Michael Dunn25-Aug-04 10:52
sitebuilderMichael Dunn25-Aug-04 10:52 
GeneralRe: Stop removal of null characters Pin
Tom Wright25-Aug-04 11:23
Tom Wright25-Aug-04 11:23 
GeneralRe: Stop removal of null characters Pin
Michael Dunn25-Aug-04 12:02
sitebuilderMichael Dunn25-Aug-04 12:02 
GeneralRe: Stop removal of null characters Pin
Tom Wright26-Aug-04 6:14
Tom Wright26-Aug-04 6:14 
GeneralRe: Stop removal of null characters Pin
Joaquín M López Muñoz25-Aug-04 12:45
Joaquín M López Muñoz25-Aug-04 12:45 
GeneralRe: Stop removal of null characters Pin
Tom Wright26-Aug-04 6:00
Tom Wright26-Aug-04 6:00 
GeneralRe: Stop removal of null characters Pin
Abin26-Aug-04 1:21
Abin26-Aug-04 1:21 
GeneralRe: Stop removal of null characters Pin
GKarRacer26-Aug-04 8:05
GKarRacer26-Aug-04 8:05 
GeneralWow this is a mess Pin
palbano25-Aug-04 18:55
palbano25-Aug-04 18:55 
GeneralRe: Wow this is a mess Pin
Tom Wright26-Aug-04 5:54
Tom Wright26-Aug-04 5:54 
GeneralRe: Wow this is a mess Pin
palbano26-Aug-04 7:59
palbano26-Aug-04 7:59 

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.