Click here to Skip to main content
15,922,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Computer freezing up on wait Pin
Blake Miller13-Apr-05 6:52
Blake Miller13-Apr-05 6:52 
GeneralRe: Computer freezing up on wait Pin
theFrenchHornet14-Apr-05 6:33
theFrenchHornet14-Apr-05 6:33 
GeneralReading A File Pin
LighthouseJ12-Apr-05 11:33
LighthouseJ12-Apr-05 11:33 
GeneralFollow-Up Pin
LighthouseJ12-Apr-05 16:03
LighthouseJ12-Apr-05 16:03 
GeneralRe: Follow-Up Pin
John R. Shaw12-Apr-05 19:16
John R. Shaw12-Apr-05 19:16 
GeneralRe: Follow-Up Pin
LighthouseJ12-Apr-05 19:30
LighthouseJ12-Apr-05 19:30 
GeneralRe: Follow-Up Pin
John R. Shaw12-Apr-05 20:43
John R. Shaw12-Apr-05 20:43 
GeneralRe: Follow-Up Pin
LighthouseJ13-Apr-05 4:02
LighthouseJ13-Apr-05 4:02 
John R. Shaw wrote:
You've were talking about reading a structured file one byte at a time. Which impilies you need to decipher those bytes (complicated, may be need for cross platfom).

It's not that bad. For instance if I need to get the bitmap type, the "BM", I read in a character into a short, then shift the bits left 8-bits, then logically or that variable with the next character. When I read in an integer (4-bytes), I call the previous statement twice, and shifting by 16 bits in between the two calls. I do read in both headers and jump to that location (0x436) but every single 8-bit bitmap file always begins data at that same address so in the interest of simplifying the explanation, I just said I would always go to that byte offset.


John R. Shaw wrote:
... the moment the bitmap type is changed, yout code will fall apart.

I have conditionals in the right places to make sure the file that's read is of the right type, bit depth, size, etc....

Of course, all of this you've brought up is a non-issue because I have no problems reading the bitmap headers, only when I get to that particular location.

I looked at another reply from rateep and he pointed out the problem with a very concise on-topic response to my problem and it fixed my problems.
GeneralRe: Reading A File Pin
Ryan Binns12-Apr-05 18:25
Ryan Binns12-Apr-05 18:25 
GeneralRe: Reading A File Pin
LighthouseJ12-Apr-05 19:16
LighthouseJ12-Apr-05 19:16 
GeneralRe: Reading A File Pin
namaskaaram12-Apr-05 21:20
namaskaaram12-Apr-05 21:20 
GeneralRe: Reading A File Pin
LighthouseJ13-Apr-05 4:01
LighthouseJ13-Apr-05 4:01 
GeneralRe: Reading A File Pin
Blake Miller13-Apr-05 7:12
Blake Miller13-Apr-05 7:12 
GeneralRe: Reading A File Pin
namaskaaram13-Apr-05 19:36
namaskaaram13-Apr-05 19:36 
Generalserial port comm at low baud rate (50/75 /100 baud) in windows Pin
pcm21112-Apr-05 8:40
pcm21112-Apr-05 8:40 
GeneralCToolBar and CToolBatCtrl Pin
odiesback12-Apr-05 8:40
odiesback12-Apr-05 8:40 
GeneralRe: CToolBar and CToolBatCtrl Pin
Jack Puppy12-Apr-05 12:50
Jack Puppy12-Apr-05 12:50 
GeneralRe: CToolBar and CToolBatCtrl Pin
odiesback13-Apr-05 4:33
odiesback13-Apr-05 4:33 
GeneralAdding a file to Windows MRU Pin
yarp12-Apr-05 8:36
yarp12-Apr-05 8:36 
GeneralRe: Adding a file to Windows MRU Pin
Gary Kirkham12-Apr-05 8:38
Gary Kirkham12-Apr-05 8:38 
GeneralRe: Adding a file to Windows MRU Pin
yarp12-Apr-05 9:00
yarp12-Apr-05 9:00 
GeneralRe: Adding a file to Windows MRU Pin
Bob Stanneveld12-Apr-05 22:41
Bob Stanneveld12-Apr-05 22:41 
GeneralRe: Adding a file to Windows MRU Pin
yarp13-Apr-05 1:51
yarp13-Apr-05 1:51 
Generalinstallshield vc++ 6 regsvr32 myDLL Pin
Anonymous12-Apr-05 6:41
Anonymous12-Apr-05 6:41 
QuestionHow to develope a project to navigate pst file with mapi. Pin
elicor12-Apr-05 5:48
elicor12-Apr-05 5:48 

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.