Click here to Skip to main content
15,889,867 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: full screen message box Pin
David Crow30-Mar-09 7:25
David Crow30-Mar-09 7:25 
GeneralRe: full screen message box Pin
gamefreak229130-Mar-09 7:28
gamefreak229130-Mar-09 7:28 
QuestionRe: full screen message box Pin
David Crow30-Mar-09 7:34
David Crow30-Mar-09 7:34 
AnswerRe: full screen message box Pin
gamefreak229130-Mar-09 7:47
gamefreak229130-Mar-09 7:47 
GeneralRe: full screen message box Pin
David Crow30-Mar-09 7:57
David Crow30-Mar-09 7:57 
AnswerRe: full screen message box Pin
bulg30-Mar-09 10:41
bulg30-Mar-09 10:41 
GeneralRe: full screen message box Pin
gamefreak229130-Mar-09 18:31
gamefreak229130-Mar-09 18:31 
QuestionHow to convers a binary file into something readable Pin
shpid3r30-Mar-09 3:58
shpid3r30-Mar-09 3:58 
Greetings fellows!
I once again ask for you help:

I have some .dat files, which are sequences of bits (files are around 15 MBs in size). Every 10 bits there is a 0 (separator). Before anything else, I would like to make a text file out of the dat one, and every bit in the original file to have a character correspondent in the text file (so I can actually read the bits with , say, notepad).

What I`ve tried so far (without success):

BYTE  buffer[100]; //4096
	char buffer2[5000];
	long index;
        DWORD dwRead;

	do  {
            dwRead = readFile.Read(buffer, 100); //4096 in the end, for now working with smaller numbers
	    for (index=0;index<dwread;index++)>
                   buffer2[index]= buffer[index]
            writeFile.Write(buffer2, dwRead);
        }
        while (dwRead > 0);


I know it`s goofy and that formatting these bits should be done easily using some unknown (to me) function. Could u please point me the direction?

Thanks again
shpid3r
AnswerRe: How to convers a binary file into something readable Pin
led mike30-Mar-09 4:32
led mike30-Mar-09 4:32 
GeneralRe: How to convers a binary file into something readable Pin
shpid3r30-Mar-09 4:37
shpid3r30-Mar-09 4:37 
GeneralRe: How to convers a binary file into something readable Pin
led mike30-Mar-09 4:45
led mike30-Mar-09 4:45 
GeneralRe: How to convers a binary file into something readable Pin
shpid3r30-Mar-09 5:00
shpid3r30-Mar-09 5:00 
QuestionRe: How to convers a binary file into something readable Pin
CPallini30-Mar-09 5:55
mveCPallini30-Mar-09 5:55 
AnswerRe: How to convers a binary file into something readable Pin
shpid3r30-Mar-09 7:32
shpid3r30-Mar-09 7:32 
GeneralRe: How to convers a binary file into something readable Pin
CPallini30-Mar-09 8:49
mveCPallini30-Mar-09 8:49 
QuestionProblem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
PankajB30-Mar-09 2:54
PankajB30-Mar-09 2:54 
QuestionRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
David Crow30-Mar-09 3:40
David Crow30-Mar-09 3:40 
AnswerRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Roger Stoltz30-Mar-09 3:42
Roger Stoltz30-Mar-09 3:42 
GeneralRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Rajesh R Subramanian30-Mar-09 3:59
professionalRajesh R Subramanian30-Mar-09 3:59 
GeneralRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Roger Stoltz30-Mar-09 4:03
Roger Stoltz30-Mar-09 4:03 
JokeRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Rajesh R Subramanian30-Mar-09 4:12
professionalRajesh R Subramanian30-Mar-09 4:12 
JokeRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
CPallini30-Mar-09 5:42
mveCPallini30-Mar-09 5:42 
JokeRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Rajesh R Subramanian30-Mar-09 20:34
professionalRajesh R Subramanian30-Mar-09 20:34 
GeneralRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Code-o-mat30-Mar-09 5:57
Code-o-mat30-Mar-09 5:57 
JokeRe: Problem getting Caption of a window control using SendMessage & WM_GETTEXT Pin
Roger Stoltz30-Mar-09 6:04
Roger Stoltz30-Mar-09 6:04 

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.