Click here to Skip to main content
15,913,289 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: I need to append to this string Pin
peterchen1-Mar-05 11:37
peterchen1-Mar-05 11:37 
GeneralRe: I need to append to this string Pin
Tom Wright1-Mar-05 12:07
Tom Wright1-Mar-05 12:07 
GeneralRe: I need to append to this string Pin
peterchen1-Mar-05 18:37
peterchen1-Mar-05 18:37 
GeneralRe: I need to append to this string Pin
Tom Wright1-Mar-05 12:08
Tom Wright1-Mar-05 12:08 
GeneralCustom icon for an app Pin
Alton Williams1-Mar-05 7:07
Alton Williams1-Mar-05 7:07 
GeneralRe: Custom icon for an app Pin
Blake Miller1-Mar-05 7:19
Blake Miller1-Mar-05 7:19 
GeneralRe: Custom icon for an app Pin
Alton Williams1-Mar-05 7:31
Alton Williams1-Mar-05 7:31 
GeneralRe: Custom icon for an app Pin
Michael Dunn1-Mar-05 7:36
sitebuilderMichael Dunn1-Mar-05 7:36 
GeneralRe: Custom icon for an app Pin
David Crow1-Mar-05 9:07
David Crow1-Mar-05 9:07 
QuestionSetting checkbox state in OnInitDialog? Pin
1-Mar-05 6:59
suss1-Mar-05 6:59 
AnswerRe: Setting checkbox state in OnInitDialog? Pin
Blake Miller1-Mar-05 7:23
Blake Miller1-Mar-05 7:23 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Member 16972731-Mar-05 7:33
Member 16972731-Mar-05 7:33 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Blake Miller1-Mar-05 7:41
Blake Miller1-Mar-05 7:41 
AnswerRe: Setting checkbox state in OnInitDialog? Pin
Ravi Bhavnani1-Mar-05 7:27
professionalRavi Bhavnani1-Mar-05 7:27 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Member 16972731-Mar-05 7:58
Member 16972731-Mar-05 7:58 
AnswerRe: Setting checkbox state in OnInitDialog? Pin
Alton Williams1-Mar-05 7:27
Alton Williams1-Mar-05 7:27 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
Member 16972731-Mar-05 7:58
Member 16972731-Mar-05 7:58 
GeneralRe: Setting checkbox state in OnInitDialog? Pin
David Crow1-Mar-05 9:05
David Crow1-Mar-05 9:05 
QuestionWhat format is this file in and how to open it in C++ Pin
Member 121962521-Mar-05 6:58
Member 121962521-Mar-05 6:58 
AnswerRe: What format is this file in and how to open it in C++ Pin
Michael Dunn1-Mar-05 7:41
sitebuilderMichael Dunn1-Mar-05 7:41 
GeneralRe: What format is this file in and how to open it in C++ Pin
Tommy2d1-Mar-05 9:54
Tommy2d1-Mar-05 9:54 
GeneralRe: What format is this file in and how to open it in C++ Pin
Michael Dunn1-Mar-05 10:44
sitebuilderMichael Dunn1-Mar-05 10:44 
GeneralRe: What format is this file in and how to open it in C++ Pin
Tommy2k1-Mar-05 12:19
Tommy2k1-Mar-05 12:19 
Hi,

I just the following code but it just reads the first char and then it quits on my poor textfile. This is the same thing as what happened when i used the class. The size it determines is correct however.

Please help me on this. I don't have any exp with anything else then just plain char arrays I really don't know what to do next.

<br />
// reading binary file<br />
#include <iostream><br />
#include <fstream><br />
#include <stdlib.h><br />
#include <windows.h><br />
using namespace std;<br />
<br />
const char * filename = "J:\\MyJukeBox\\PLAYLIST\\MyFavorite.plp";<br />
<br />
int main () {<br />
  wchar_t * buffer;<br />
  long size;<br />
  wfstream file (filename, ios::in|ios::ate);<br />
  size = file.tellg();<br />
  file.seekg (0, ios::beg);<br />
  buffer = new wchar_t [size];<br />
  file.read (buffer, size);<br />
  file.close();<br />
<br />
  cout << "the complete file is in a buffer. Size:" << size;<br />
  MessageBox(0,buffer,NULL,0);<br />
<br />
  delete[] buffer;<br />
<br />
  return 0;<br />
}<br />

GeneralRe: What format is this file in and how to open it in C++ Pin
normanS1-Mar-05 20:51
normanS1-Mar-05 20:51 
GeneralRe: What format is this file in and how to open it in C++ Pin
Tommy2d2-Mar-05 4:58
Tommy2d2-Mar-05 4:58 

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.