Click here to Skip to main content
16,005,181 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionSending Fax using the FaxSendDocuemnt API Pin
aasstt24-Mar-06 23:02
aasstt24-Mar-06 23:02 
QuestionProblem with Controls on dialog box with images Pin
Ganesh_T24-Mar-06 21:50
Ganesh_T24-Mar-06 21:50 
AnswerRe: Problem with Controls on dialog box with images Pin
Hamid_RT29-Mar-06 6:46
Hamid_RT29-Mar-06 6:46 
GeneralRe: Problem with Controls on dialog box with images Pin
Ganesh_T29-Mar-06 19:20
Ganesh_T29-Mar-06 19:20 
GeneralRe: Problem with Controls on dialog box with images Pin
Hamid_RT30-Mar-06 2:01
Hamid_RT30-Mar-06 2:01 
Questionpure C question about accessing bits Pin
bouli24-Mar-06 21:42
bouli24-Mar-06 21:42 
AnswerRe: pure C question about accessing bits Pin
Justin Tay25-Mar-06 0:17
Justin Tay25-Mar-06 0:17 
GeneralRe: pure C question about accessing bits Pin
bouli25-Mar-06 2:48
bouli25-Mar-06 2:48 
Actually, my problem is to decode a collision map wich is "compressed" for an old school 2D game.

It's like I had explained above (values are stored as set of 2 bits) and the values are stored as short in the file, so the values are inverted because of little endian.

For example:

the following line in the map would look like this (here, the width is 20 columns):
1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 1

In the file, it is coded this way:
0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 1 0 0 0

the "1" means there is a wall, "0" means no wall.

the values are inverted. so I need to reverse them to get the correct decoding.
It drives me crazy Poke tongue | ;-P
How to do that?

Fred.




There is no spoon.
GeneralRe: pure C question about accessing bits Pin
Justin Tay25-Mar-06 5:25
Justin Tay25-Mar-06 5:25 
GeneralRe: pure C question about accessing bits Pin
bouli25-Mar-06 6:16
bouli25-Mar-06 6:16 
GeneralRe: pure C question about accessing bits Pin
Justin Tay25-Mar-06 6:33
Justin Tay25-Mar-06 6:33 
GeneralRe: pure C question about accessing bits Pin
bouli25-Mar-06 6:50
bouli25-Mar-06 6:50 
GeneralRe: pure C question about accessing bits Pin
bouli25-Mar-06 7:05
bouli25-Mar-06 7:05 
GeneralRe: pure C question about accessing bits Pin
bouli16-Apr-06 0:28
bouli16-Apr-06 0:28 
QuestionOnFind() Pin
fuschia24-Mar-06 21:35
fuschia24-Mar-06 21:35 
AnswerRe: OnFind() Pin
toxcct25-Mar-06 4:53
toxcct25-Mar-06 4:53 
GeneralRe: OnFind() Pin
fuschia25-Mar-06 16:07
fuschia25-Mar-06 16:07 
GeneralRe: OnFind() Pin
toxcct26-Mar-06 3:31
toxcct26-Mar-06 3:31 
QuestionRuntime Compression Pin
Waldermort24-Mar-06 21:19
Waldermort24-Mar-06 21:19 
AnswerRe: Runtime Compression Pin
Saurabh.Garg25-Mar-06 0:48
Saurabh.Garg25-Mar-06 0:48 
GeneralRe: Runtime Compression Pin
Waldermort25-Mar-06 1:28
Waldermort25-Mar-06 1:28 
AnswerRe: Runtime Compression Pin
Hamid_RT25-Mar-06 1:34
Hamid_RT25-Mar-06 1:34 
QuestionFlat DateTimePicker Class Pin
mikobi24-Mar-06 20:31
mikobi24-Mar-06 20:31 
AnswerRe: Flat DateTimePicker Class Pin
mikobi25-Mar-06 3:16
mikobi25-Mar-06 3:16 
Questionproblem with m_strCursor Pin
Kranti125198424-Mar-06 20:21
Kranti125198424-Mar-06 20:21 

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.