Click here to Skip to main content
15,902,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Convert grayscale to monochrome Pin
lastdays14-Jan-05 10:09
lastdays14-Jan-05 10:09 
GeneralRe: Convert grayscale to monochrome Pin
PJ Arends14-Jan-05 10:37
professionalPJ Arends14-Jan-05 10:37 
GeneralRe: Convert grayscale to monochrome Pin
lastdays14-Jan-05 12:06
lastdays14-Jan-05 12:06 
GeneralRe: Convert grayscale to monochrome Pin
Chris Losinger14-Jan-05 12:24
professionalChris Losinger14-Jan-05 12:24 
GeneralRe: Convert grayscale to monochrome Pin
lastdays15-Jan-05 0:34
lastdays15-Jan-05 0:34 
GeneralPassing arrays to different dialogs Pin
dlarkin7714-Jan-05 8:46
dlarkin7714-Jan-05 8:46 
GeneralRe: Passing arrays to different dialogs Pin
David Crow14-Jan-05 9:26
David Crow14-Jan-05 9:26 
Generalbinary file reading Pin
bwagz14-Jan-05 6:20
bwagz14-Jan-05 6:20 
I was given a data file to read which is in binary format. I was told that the data starts in the file at position 0x1000. Each value following the offset is a 2byte short value. I tried reading in the file using fstream.ReadInt16(). It looks like some of the data is matching up correctly but the other isn't. Below on the left is what the data should be and on the right is what i'm getting

2 2
68 -188
-22 234
18 18
85 85
130 386
454 710
626 114
82 82
127 639
617 617
558 -210

As you can see some of it is matching up. Does anyone know what i'm doing wrong??

GeneralRe: binary file reading Pin
Antony M Kancidrowski14-Jan-05 6:57
Antony M Kancidrowski14-Jan-05 6:57 
GeneralRe: binary file reading Pin
bwagz14-Jan-05 7:09
bwagz14-Jan-05 7:09 
GeneralRe: binary file reading Pin
Antony M Kancidrowski14-Jan-05 15:11
Antony M Kancidrowski14-Jan-05 15:11 
GeneralRe: binary file reading Pin
White Owl14-Jan-05 10:00
White Owl14-Jan-05 10:00 
GeneralHelp IM gonna fail me course at college if i get no help Pin
Member 165528414-Jan-05 5:53
Member 165528414-Jan-05 5:53 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
charlieg14-Jan-05 6:03
charlieg14-Jan-05 6:03 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
David Crow14-Jan-05 9:07
David Crow14-Jan-05 9:07 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
alex.barylski14-Jan-05 18:26
alex.barylski14-Jan-05 18:26 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
Malcolm Smart15-Jan-05 7:36
Malcolm Smart15-Jan-05 7:36 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
Branislav14-Jan-05 22:16
Branislav14-Jan-05 22:16 
GeneralRe: Help IM gonna fail me course at college if i get no help Pin
Member 165528416-Jan-05 10:43
Member 165528416-Jan-05 10:43 
GeneralLoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj14-Jan-05 5:39
greekgoddj14-Jan-05 5:39 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj14-Jan-05 5:51
greekgoddj14-Jan-05 5:51 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
Chris Losinger14-Jan-05 12:25
professionalChris Losinger14-Jan-05 12:25 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj16-Jan-05 22:12
greekgoddj16-Jan-05 22:12 
GeneralRe: LoadBitmap results in Assertion at AfxMakeResourceHandle Pin
greekgoddj17-Jan-05 0:32
greekgoddj17-Jan-05 0:32 
GeneralCreating XML Schema in VS.NET... Pin
anderslundsgard14-Jan-05 4:39
anderslundsgard14-Jan-05 4:39 

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.