Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralODBC programming - need help Pin
acroitoriu13-Sep-04 2:47
acroitoriu13-Sep-04 2:47 
GeneralRe: ODBC programming - need help Pin
Hardy_Smith13-Sep-04 2:52
Hardy_Smith13-Sep-04 2:52 
GeneralRe: ODBC programming - need help Pin
David Crow13-Sep-04 4:05
David Crow13-Sep-04 4:05 
QuestionIS thre any COM Port Event ? Pin
zahid_ash13-Sep-04 2:24
zahid_ash13-Sep-04 2:24 
AnswerRe: IS thre any COM Port Event ? Pin
Antti Keskinen13-Sep-04 2:34
Antti Keskinen13-Sep-04 2:34 
GeneralLinker warning: Multiple ".rdata" sections with different atrributes Pin
kc200313-Sep-04 2:20
kc200313-Sep-04 2:20 
GeneralRe: Linker warning: Multiple ".rdata" sections with different atrributes Pin
Alexander M.,13-Sep-04 4:09
Alexander M.,13-Sep-04 4:09 
Generalistream: seekg / tellg, peculiar behaviour Pin
LiquidEyes13-Sep-04 1:39
LiquidEyes13-Sep-04 1:39 
I'm having two istream-related problems. Please can somebody help... Confused | :confused:

Problem 1

void loadStuffFromStream (istream& stream)
{
	// goes too far!!
	stream.seekg( length, ios_base::cur );
}

***edited*** This seems to skip to an arbitrary position in the stream, instead of 'current position' + length bytes. Why does it do this?

Problem 2

char ch;
int pos;
...
pos = stream.tellg();		// now pos=0
stream.get (ch);
pos = stream.tellg();		// now pos=3585 ???
stream.get (ch);
pos = stream.tellg();		// now pos=3586
stream.get (ch);
pos = stream.tellg();		// now pos=3587
stream.get (ch);
// etc...

Not so much a 'problem' as a matter of curiosity. Why is there a sudden leap in the read-position reported by tellg the first time I read from the stream? (N.B. It is reading the correct characters into ch!)
Generalabout transmiting video through net Pin
yingkou13-Sep-04 0:44
yingkou13-Sep-04 0:44 
GeneralRe: about transmiting video through net Pin
Alexander M.,13-Sep-04 5:03
Alexander M.,13-Sep-04 5:03 
GeneralRe: about transmiting video through net Pin
yingkou13-Sep-04 15:33
yingkou13-Sep-04 15:33 
GeneralRe: about transmiting video through net Pin
Un13-Oct-04 4:14
Un13-Oct-04 4:14 
QuestionConsole in C++? Pin
Hadi Fakhreddine13-Sep-04 0:43
Hadi Fakhreddine13-Sep-04 0:43 
AnswerRe: Console in C++? Pin
Antti Keskinen13-Sep-04 2:43
Antti Keskinen13-Sep-04 2:43 
GeneralRe: Console in C++? Pin
Hadi Fakhreddine13-Sep-04 4:44
Hadi Fakhreddine13-Sep-04 4:44 
GeneralThumb nail view Pin
Neelesh K J Jain12-Sep-04 23:50
Neelesh K J Jain12-Sep-04 23:50 
GeneralRe: Thumb nail view Pin
David Salter13-Sep-04 0:11
David Salter13-Sep-04 0:11 
Questionhow to use visual c++ Pin
Member 135729712-Sep-04 23:35
Member 135729712-Sep-04 23:35 
AnswerRe: how to use visual c++ Pin
Hardy_Smith12-Sep-04 23:47
Hardy_Smith12-Sep-04 23:47 
GeneralRe: how to use visual c++ Pin
Member 135729712-Sep-04 23:55
Member 135729712-Sep-04 23:55 
GeneralRe: how to use visual c++ Pin
Hardy_Smith12-Sep-04 23:59
Hardy_Smith12-Sep-04 23:59 
AnswerRe: how to use visual c++ Pin
Arsalan Malik12-Sep-04 23:57
Arsalan Malik12-Sep-04 23:57 
Generalcallback of a class' method Pin
Jerome Conus12-Sep-04 23:29
Jerome Conus12-Sep-04 23:29 
GeneralRe: callback of a class' method Pin
Antti Keskinen13-Sep-04 2:26
Antti Keskinen13-Sep-04 2:26 
GeneralRe: callback of a class' method Pin
Jerome Conus13-Sep-04 2:36
Jerome Conus13-Sep-04 2:36 

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.