Click here to Skip to main content
15,890,185 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
GeneralAdding a button to all active windows... Pin
price1-Mar-05 6:34
price1-Mar-05 6:34 
GeneralForce delete file Pin
User 17288841-Mar-05 5:32
User 17288841-Mar-05 5:32 
GeneralRe: Force delete file Pin
David Crow1-Mar-05 6:02
David Crow1-Mar-05 6:02 
GeneralRe: Force delete file Pin
Blake Miller1-Mar-05 6:07
Blake Miller1-Mar-05 6:07 
GeneralRe: Force delete file Pin
Maximilien1-Mar-05 6:24
Maximilien1-Mar-05 6:24 
Generalactivex - save graphics to file Pin
sstoyan1-Mar-05 4:44
sstoyan1-Mar-05 4:44 
GeneralRe: activex - save graphics to file Pin
Roger Allen1-Mar-05 5:30
Roger Allen1-Mar-05 5:30 
GeneralRe: activex - save graphics to file Pin
sstoyan1-Mar-05 6:08
sstoyan1-Mar-05 6:08 
GeneralRe: activex - save graphics to file Pin
sstoyan1-Mar-05 6:05
sstoyan1-Mar-05 6:05 
QuestionClear internet history? Pin
Larsson1-Mar-05 3:57
Larsson1-Mar-05 3:57 
AnswerRe: Clear internet history? Pin
David Crow1-Mar-05 4:22
David Crow1-Mar-05 4:22 
AnswerRe: Clear internet history? Pin
Ravi Bhavnani1-Mar-05 4:34
professionalRavi Bhavnani1-Mar-05 4:34 
GeneralRe: Clear internet history? Pin
Larsson1-Mar-05 4:52
Larsson1-Mar-05 4:52 
GeneralRe: Clear internet history? Pin
David Crow1-Mar-05 6:10
David Crow1-Mar-05 6:10 

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.