Click here to Skip to main content
16,017,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: HDC and CStatic control question Pin
David Crow1-Jun-05 7:02
David Crow1-Jun-05 7:02 
GeneralRe: HDC and CStatic control question Pin
Steve Messer1-Jun-05 7:10
Steve Messer1-Jun-05 7:10 
GeneralRe: HDC and CStatic control question Pin
David Crow1-Jun-05 7:30
David Crow1-Jun-05 7:30 
GeneralRe: HDC and CStatic control question Pin
Steve Messer1-Jun-05 7:38
Steve Messer1-Jun-05 7:38 
GeneralRe: HDC and CStatic control question Pin
Ryan Binns1-Jun-05 18:25
Ryan Binns1-Jun-05 18:25 
GeneralRe: HDC and CStatic control question Pin
Steve Messer13-Jun-05 20:38
Steve Messer13-Jun-05 20:38 
Generalworking with binary files in C++ Pin
knapak1-Jun-05 5:55
knapak1-Jun-05 5:55 
GeneralRe: working with binary files in C++ Pin
David Crow1-Jun-05 7:07
David Crow1-Jun-05 7:07 
A file is neither binary nor text as it resides on disk. It all depends on how the file is processed that determines whether it is binary or text. You can open the file and read all of it into memory with something like:

HANDLE hFile = CreateFile("myfile", GENERIC_READ, ...);
LPBYTE lpBuffer = new BYTE[10240];
DWORD dwRead;
ReadFile(hFile, lpBuffer, sizeof(BYTE) * 10240, &dwRead, NULL);
CloseHandle(hFile);
Now you can do whatever you want with lpBuffer. You might also benefit from a memory-mapped file.


"Ideas are a dime a dozen. People who put them into action are priceless." - Unknown


GeneralRe: working with binary files in C++ Pin
knapak1-Jun-05 8:21
knapak1-Jun-05 8:21 
GeneralRe: working with binary files in C++ Pin
S. Senthil Kumar1-Jun-05 8:33
S. Senthil Kumar1-Jun-05 8:33 
GeneralRe: working with binary files in C++ Pin
knapak1-Jun-05 9:23
knapak1-Jun-05 9:23 
GeneralRe: working with binary files in C++ Pin
S. Senthil Kumar2-Jun-05 1:15
S. Senthil Kumar2-Jun-05 1:15 
GeneralRe: working with binary files in C++ Pin
knapak2-Jun-05 11:48
knapak2-Jun-05 11:48 
Generalusing library in different solution Pin
_indra_m1-Jun-05 5:49
_indra_m1-Jun-05 5:49 
GeneralMultiple files Pin
Andrew Admire1-Jun-05 4:35
Andrew Admire1-Jun-05 4:35 
GeneralRe: Multiple files Pin
M.Mehrdad.M1-Jun-05 5:48
M.Mehrdad.M1-Jun-05 5:48 
GeneralRe: Multiple files Pin
Andrew Admire1-Jun-05 6:32
Andrew Admire1-Jun-05 6:32 
GeneralRe: Multiple files Pin
David Crow1-Jun-05 7:32
David Crow1-Jun-05 7:32 
GeneralRe: Multiple files Pin
Andrew Admire1-Jun-05 8:07
Andrew Admire1-Jun-05 8:07 
GeneralRe: Multiple files Pin
David Crow1-Jun-05 8:16
David Crow1-Jun-05 8:16 
GeneralRe: Multiple files Pin
S. Senthil Kumar1-Jun-05 8:36
S. Senthil Kumar1-Jun-05 8:36 
GeneralRe: Multiple files Pin
Andrew Admire1-Jun-05 9:49
Andrew Admire1-Jun-05 9:49 
GeneralIE plugin Pin
Tender_Nail1-Jun-05 3:52
Tender_Nail1-Jun-05 3:52 
GeneralRe: IE plugin Pin
ThatsAlok1-Jun-05 18:20
ThatsAlok1-Jun-05 18:20 
GeneralSupported file types in DirectShow Pin
mssg1-Jun-05 2:37
mssg1-Jun-05 2:37 

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.