Click here to Skip to main content
15,923,689 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: run-time const Pin
Maximilien1-Sep-09 3:35
Maximilien1-Sep-09 3:35 
AnswerRe: run-time const Pin
Stephen Hewitt2-Sep-09 0:17
Stephen Hewitt2-Sep-09 0:17 
QuestionWindows notification packages Pin
ibnipun101-Sep-09 0:00
ibnipun101-Sep-09 0:00 
QuestionHow to get the Phoneme/Viseme information in audio file for lipsync? Pin
yaoyansi31-Aug-09 23:27
yaoyansi31-Aug-09 23:27 
AnswerRe: How to get the Phoneme/Viseme information in audio file for lipsync? Pin
Adam Roderick J1-Sep-09 0:16
Adam Roderick J1-Sep-09 0:16 
GeneralRe: How to get the Phoneme/Viseme information in audio file for lipsync? Pin
Rick York1-Sep-09 10:16
mveRick York1-Sep-09 10:16 
GeneralRe: How to get the Phoneme/Viseme information in audio file for lipsync? Pin
Adam Roderick J6-Sep-09 19:21
Adam Roderick J6-Sep-09 19:21 
Questionzero termination for BYTE? Pin
Souldrift31-Aug-09 23:20
Souldrift31-Aug-09 23:20 
Hi there,

this might be a slightly stupid question, but when I write a single BYTE into a file (using ofstream), does it need to be null-terminated? Do BYTE streams generally have to be?

Example code:
char* buf = new char[128];
sprintf_s( buf, 128, "TestOutput/RTPEngineBin%04d.out", m_iFileCount );

m_oStream3.open(buf, ios::out|ios::binary);

if( !m_oStream3 ) 
{
	// ...
}

for( int i = 0; i < 12; i++ )
{
	m_oStream3 << header[i];
}


m_oStream3 << data; // data == 1 BYTE


m_oStream3.flush();
m_oStream3.close();

delete [] buf;


This is a small rtp package. Header has 12 bytes and the payload is just a single byte.

Cheers

Souldrift
AnswerRe: zero termination for BYTE? Pin
Stuart Dootson31-Aug-09 23:24
professionalStuart Dootson31-Aug-09 23:24 
AnswerRe: zero termination for BYTE? Pin
Richard MacCutchan31-Aug-09 23:28
mveRichard MacCutchan31-Aug-09 23:28 
AnswerRe: zero termination for BYTE? Pin
Souldrift1-Sep-09 0:00
Souldrift1-Sep-09 0:00 
QuestionPNG's and GDI+ Pin
VCsamir31-Aug-09 23:20
VCsamir31-Aug-09 23:20 
AnswerRe: PNG's and GDI+ Pin
Randor 1-Sep-09 21:36
professional Randor 1-Sep-09 21:36 
GeneralRe: PNG's and GDI+ Pin
VCsamir3-Sep-09 0:58
VCsamir3-Sep-09 0:58 
QuestionMSI Migration --- issues Pin
ERLN31-Aug-09 22:04
ERLN31-Aug-09 22:04 
QuestionSCSI command release mode problem Pin
Abinash Mohanty31-Aug-09 20:30
Abinash Mohanty31-Aug-09 20:30 
AnswerRe: SCSI command release mode problem Pin
David Crow1-Sep-09 3:07
David Crow1-Sep-09 3:07 
AnswerRe: SCSI command release mode problem Pin
Randor 1-Sep-09 22:03
professional Randor 1-Sep-09 22:03 
AnswerRe: SCSI command release mode problem Pin
Glamar15-Sep-09 17:49
Glamar15-Sep-09 17:49 
GeneralRe: SCSI command release mode problem Pin
Glamar15-Sep-09 17:54
Glamar15-Sep-09 17:54 
Questionhow can i jump from the loop before i exit this program automatically? Pin
Member 3121931-Aug-09 20:00
Member 3121931-Aug-09 20:00 
AnswerRe: how can i jump from the loop before i exit this program automatically? Pin
Cedric Moonen31-Aug-09 20:23
Cedric Moonen31-Aug-09 20:23 
AnswerRe: how can i jump from the loop before i exit this program automatically? Pin
Cedric Moonen31-Aug-09 20:33
Cedric Moonen31-Aug-09 20:33 
AnswerRe: how can i jump from the loop before i exit this program automatically? Pin
Adam Roderick J31-Aug-09 20:49
Adam Roderick J31-Aug-09 20:49 
AnswerRe: how can i jump from the loop before i exit this program automatically? Pin
Iain Clarke, Warrior Programmer31-Aug-09 20:50
Iain Clarke, Warrior Programmer31-Aug-09 20:50 

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.