Click here to Skip to main content
15,919,341 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Newbie question, problem compiling Pin
Adassus14-Jul-09 15:44
Adassus14-Jul-09 15:44 
QuestionUSB interaction from user space. I need some light please! Pin
sinosoidal14-Jul-09 6:32
sinosoidal14-Jul-09 6:32 
AnswerRe: USB interaction from user space. I need some light please! Pin
Roger Stoltz14-Jul-09 6:59
Roger Stoltz14-Jul-09 6:59 
AnswerRe: USB interaction from user space. I need some light please! Pin
Randor 14-Jul-09 8:41
professional Randor 14-Jul-09 8:41 
GeneralRe: USB interaction from user space. I need some light please! Pin
sinosoidal15-Jul-09 0:49
sinosoidal15-Jul-09 0:49 
GeneralRe: USB interaction from user space. I need some light please! Pin
Randor 15-Jul-09 8:08
professional Randor 15-Jul-09 8:08 
GeneralRe: USB interaction from user space. I need some light please! Pin
sinosoidal15-Jul-09 9:34
sinosoidal15-Jul-09 9:34 
QuestionProblem with the reading of the BMP file Pin
TeslaShock14-Jul-09 5:27
TeslaShock14-Jul-09 5:27 
Hello,

i am reading the BMP file.. first as you know i must read info header then file info.. and then goes the reversed RGB data... i have written a code in C to read the rgb data, reverse it in a way i want...and save every pixel color in the big array of structures... my code seems to work very good...i created some BMP images using the MS Pain, tested it with my program...and everything was fine..

BUT... when i tried to get some pictures from internet, covert those pictures to BMP format..and read with my program, i found that my program (to be exact the fread functions inside it) read a value of 0. it just doesnt work with other pics! but it works perfect with the pics created by the MS Paint!

later.... i tried to do this.. i copied some part of MS Paint pictures into another BMP files created by MS Paint! and that pictures didnt work with my pgoram either!! very strange!

so it seems to me..that when i paint something in Paint.. and try to process with my program, it reads it fine... but when i try to copy/paste different fragments of these pictures, or copy/paste fragments from another pictures, my program reads zero values!

any ideas why? whats wrong? can anyone who worked with BMP files give me a hint?

thanks alot!
AnswerRe: Problem with the reading of the BMP file Pin
Chris Losinger14-Jul-09 6:01
professionalChris Losinger14-Jul-09 6:01 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock14-Jul-09 6:13
TeslaShock14-Jul-09 6:13 
AnswerRe: Problem with the reading of the BMP file Pin
Joe Woodbury14-Jul-09 6:38
professionalJoe Woodbury14-Jul-09 6:38 
GeneralRe: Problem with the reading of the BMP file Pin
TeslaShock16-Jul-09 5:13
TeslaShock16-Jul-09 5:13 
QuestionOnInitDialog() never be called Pin
transoft14-Jul-09 2:22
transoft14-Jul-09 2:22 
QuestionRe: OnInitDialog() never be called Pin
CPallini14-Jul-09 2:35
mveCPallini14-Jul-09 2:35 
AnswerRe: OnInitDialog() never be called Pin
transoft14-Jul-09 2:42
transoft14-Jul-09 2:42 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:48
Cedric Moonen14-Jul-09 2:48 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 6:05
transoft14-Jul-09 6:05 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 7:20
Cedric Moonen14-Jul-09 7:20 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 7:24
transoft14-Jul-09 7:24 
GeneralRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 7:28
Cedric Moonen14-Jul-09 7:28 
AnswerRe: OnInitDialog() never be called Pin
Cedric Moonen14-Jul-09 2:44
Cedric Moonen14-Jul-09 2:44 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 5:57
transoft14-Jul-09 5:57 
AnswerRe: OnInitDialog() never be called Pin
Roger Stoltz14-Jul-09 5:22
Roger Stoltz14-Jul-09 5:22 
GeneralRe: OnInitDialog() never be called Pin
transoft14-Jul-09 5:46
transoft14-Jul-09 5:46 
QuestionRe: OnInitDialog() never be called Pin
Roger Stoltz14-Jul-09 6:14
Roger Stoltz14-Jul-09 6:14 

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.