Click here to Skip to main content
15,923,015 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondoes text files can be loaded in web browser control [modified] Pin
RahulOP23-May-06 22:23
RahulOP23-May-06 22:23 
AnswerRe: does text files can be loaded loaded in web browser control Pin
Cedric Moonen23-May-06 22:51
Cedric Moonen23-May-06 22:51 
QuestionRe: does text files can be loaded loaded in web browser control Pin
Nibu babu thomas23-May-06 23:22
Nibu babu thomas23-May-06 23:22 
AnswerRe: does text files can be loaded loaded in web browser control Pin
RahulOP23-May-06 23:42
RahulOP23-May-06 23:42 
GeneralRe: does text files can be loaded loaded in web browser control Pin
Nibu babu thomas23-May-06 23:48
Nibu babu thomas23-May-06 23:48 
GeneralRe: does text files can be loaded loaded in web browser control Pin
RahulOP24-May-06 0:00
RahulOP24-May-06 0:00 
GeneralRe: does text files can be loaded loaded in web browser control Pin
Nibu babu thomas24-May-06 1:17
Nibu babu thomas24-May-06 1:17 
QuestionFile vs Buffer Pin
<color>Aljechin 23-May-06 22:15
<color>Aljechin 23-May-06 22:15 
In the following code, I am trying to switch between monitor and printer as the default output device. (The code is executed in a server and the client is a dumb terminal. Hence the server instructs the client to print by switching the output device) I have some binary data(unsigned char) which I can dump into the printer buffer and it will print some meaningful text. If I write this data to a file, then read it and print it (The following code) it works. I dont want to use a file. I want to print it from that buffer in which I have the binary value. I the data is automatically converted to unsigned int or something when its written into file. How do I achieve this?

<br />
int main(int argc, char *argv[])<br />
{<br />
  int  ch;<br />
  FILE *fp;<br />
<br />
  fp=fopen(argv[1], "r");//open the file<br />
<br />
  ansi_printer_on();//default device is printer now<br />
<br />
  while ((ch=getc(fp))!=EOF)<br />
    {<br />
     putc(ch,stdout);<br />
    }<br />
    fclose(fp);<br />
<br />
  ansi_printer_off();//default device is monitor now<br />
<br />
  return 0;<br />
}<br />



Rose | [Rose]
Questionword to tiff Pin
shwlin23-May-06 21:29
shwlin23-May-06 21:29 
AnswerRe: word to tiff Pin
Sebastian Schneider23-May-06 21:36
Sebastian Schneider23-May-06 21:36 
GeneralRe: word to tiff Pin
shwlin23-May-06 21:44
shwlin23-May-06 21:44 
GeneralRe: word to tiff Pin
Sebastian Schneider23-May-06 22:53
Sebastian Schneider23-May-06 22:53 
GeneralRe: word to tiff Pin
shwlin24-May-06 5:32
shwlin24-May-06 5:32 
AnswerRe: Problem with CRgn Pin
Nibu babu thomas23-May-06 21:49
Nibu babu thomas23-May-06 21:49 
GeneralRe: Problem with CRgn Pin
Hamid_RT24-May-06 1:11
Hamid_RT24-May-06 1:11 
GeneralRe: Problem with CRgn Pin
Nibu babu thomas24-May-06 1:13
Nibu babu thomas24-May-06 1:13 
GeneralRe: Problem with CRgn Pin
Hamid_RT24-May-06 1:20
Hamid_RT24-May-06 1:20 
QuestionSerial port Communication Pin
Jeeva Mary Varghese23-May-06 20:56
Jeeva Mary Varghese23-May-06 20:56 
AnswerRe: Serial port Communication Pin
Cedric Moonen23-May-06 21:40
Cedric Moonen23-May-06 21:40 
GeneralRe: Serial port Communication Pin
Jeeva Mary Varghese24-May-06 21:06
Jeeva Mary Varghese24-May-06 21:06 
GeneralRe: Serial port Communication Pin
Cedric Moonen28-May-06 3:15
Cedric Moonen28-May-06 3:15 
QuestionWhy CreateProcess() returns error? Pin
ziashahid23-May-06 20:44
ziashahid23-May-06 20:44 
AnswerRe: Why CreateProcess() returns error? Pin
Hamid_RT23-May-06 21:11
Hamid_RT23-May-06 21:11 
QuestionConvert Host name to IP address Pin
Ayesha Farheen23-May-06 20:34
Ayesha Farheen23-May-06 20:34 
AnswerRe: Convert Host name to IP address [modified] Pin
Nibu babu thomas23-May-06 20:44
Nibu babu thomas23-May-06 20:44 

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.