Click here to Skip to main content
15,920,646 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Richard MacCutchan12-Nov-10 2:52
mveRichard MacCutchan12-Nov-10 2:52 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 2:57
shiv@nand12-Nov-10 2:57 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Chris Losinger12-Nov-10 3:11
professionalChris Losinger12-Nov-10 3:11 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 3:20
shiv@nand12-Nov-10 3:20 
AnswerRe: convert binary file to image/bmp file in vc++ Pin
David Crow12-Nov-10 3:29
David Crow12-Nov-10 3:29 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 4:06
shiv@nand12-Nov-10 4:06 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Richard MacCutchan12-Nov-10 4:09
mveRichard MacCutchan12-Nov-10 4:09 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
David Crow12-Nov-10 4:16
David Crow12-Nov-10 4:16 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Chris Losinger12-Nov-10 3:33
professionalChris Losinger12-Nov-10 3:33 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
shiv@nand12-Nov-10 4:18
shiv@nand12-Nov-10 4:18 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Maximilien12-Nov-10 5:03
Maximilien12-Nov-10 5:03 
GeneralRe: convert binary file to image/bmp file in vc++ Pin
Richard MacCutchan12-Nov-10 9:59
mveRichard MacCutchan12-Nov-10 9:59 
AnswerRe: convert binary file to image/bmp file in vc++ Pin
AmbiguousName12-Nov-10 8:26
AmbiguousName12-Nov-10 8:26 
AnswerRe: convert binary file to image/bmp file in vc++ Pin
aresthelord8-Mar-11 23:15
professionalaresthelord8-Mar-11 23:15 
For example :
let's assume
that program uses a code like this:
#include<iostream><br />
<br />
<br />
void convertToASCII() {<br />
     FILE *bmp;<br />
     FILE *ASCII;<br />
     bmp=fopen("1.bmp","r");<br />
     ASCII=fopen("1.bin","w");<br />
     char c; int x; <br />
     while( (c = fgetc( bmp )) != EOF )<br />
{<br />
    for( x = 0; x < 8; x++ )<br />
        fputc( '0' + !!(c&(1<<x)), ASCII );<br />
}<br />
<br />
     }<br />
     int main() {<br />
     convertToASCII();<br />
     }<br />
<br />


you are looking for the function that converts back the bin file to bmp i guess..
as far as i understood your question is this..

am i right?
Questionwhat is valid range of port number to use sockaddr_in? Pin
Le@rner11-Nov-10 23:59
Le@rner11-Nov-10 23:59 
AnswerRe: what is valid range of port number to use sockaddr_in? Pin
Richard MacCutchan12-Nov-10 0:54
mveRichard MacCutchan12-Nov-10 0:54 
QuestionHow to clear characters from the console window Pin
Danzy8311-Nov-10 22:14
Danzy8311-Nov-10 22:14 
AnswerRe: How to clear characters from the console window Pin
CPallini11-Nov-10 23:59
mveCPallini11-Nov-10 23:59 
AnswerRe: How to clear characters from the console window Pin
Cool_Dev12-Nov-10 1:42
Cool_Dev12-Nov-10 1:42 
QuestionRe: How to clear characters from the console window Pin
David Crow12-Nov-10 3:34
David Crow12-Nov-10 3:34 
Questionproject wizard in vs2010 not work properly, and the project can't be created. Pin
followait11-Nov-10 21:44
followait11-Nov-10 21:44 
AnswerRe: project wizard in vs2010 not work properly, and the project can't be created. Pin
Richard MacCutchan11-Nov-10 22:13
mveRichard MacCutchan11-Nov-10 22:13 
GeneralRe: project wizard in vs2010 not work properly, and the project can't be created. Pin
followait12-Nov-10 2:13
followait12-Nov-10 2:13 
GeneralRe: project wizard in vs2010 not work properly, and the project can't be created. Pin
Richard MacCutchan12-Nov-10 2:49
mveRichard MacCutchan12-Nov-10 2:49 
QuestionHow to hide System menu in MDI application without removing the close, minimize/maximize buttons Pin
Prasann Mayekar11-Nov-10 19:35
Prasann Mayekar11-Nov-10 19:35 

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.