Click here to Skip to main content
15,924,507 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Flicker free drawing woes!!! Pin
alex.barylski29-Jul-02 2:16
alex.barylski29-Jul-02 2:16 
GeneralRe: Flicker free drawing woes!!! Pin
Tomasz Sowinski29-Jul-02 2:23
Tomasz Sowinski29-Jul-02 2:23 
GeneralRe: Flicker free drawing woes!!! Pin
Roger Allen29-Jul-02 1:22
Roger Allen29-Jul-02 1:22 
GeneralRe: Flicker free drawing woes!!! Pin
alex.barylski29-Jul-02 2:20
alex.barylski29-Jul-02 2:20 
GeneralRe: Flicker free drawing woes!!! Pin
Roger Allen29-Jul-02 3:47
Roger Allen29-Jul-02 3:47 
GeneralRe: Flicker free drawing woes!!! Pin
Roman Nurik29-Jul-02 7:24
Roman Nurik29-Jul-02 7:24 
GeneralRe: Flicker free drawing woes!!! Pin
alex.barylski29-Jul-02 19:04
alex.barylski29-Jul-02 19:04 
GeneralRead file Pin
suresh_sathya28-Jul-02 20:37
suresh_sathya28-Jul-02 20:37 
I am using API called Read file to read the file.I am using Get file size to find file size.
When i print the value in messagebox ,there are lot of junk characters at last.
How to eradicate this Or any other API to do this.
This is my code

hFile = CreateFile("\\pre.txt",
GENERIC_READ,
0,
NULL,
OPEN_EXISTING,
FILE_ATTRIBUTE_NORMAL,
NULL);
DWORD BufferSize;
char szMsg[128];
if(hFile)
{
BufferSize=GetFileSize(hFile,NULL);

}

char *sFileContent;
DWORD BytesRead;
sFileContent=(char *)malloc(BufferSize);
SetFilePointer(hFile,0,NULL,FILE_BEGIN);

if(ReadFile(hFile,sFileContent,BufferSize,&BytesRead,NULL))
{

MessageBox(NULL,sFileContent,"value",MB_OK);

}

GeneralRe: Read file Pin
Mike Nordell28-Jul-02 22:12
Mike Nordell28-Jul-02 22:12 
GeneralRe: Read file Pin
Branislav28-Jul-02 22:57
Branislav28-Jul-02 22:57 
GeneralRe: Read file Pin
Mike Nordell29-Jul-02 1:53
Mike Nordell29-Jul-02 1:53 
Generalmissing export:MSVCRTD.DLL Pin
D Satya28-Jul-02 20:11
D Satya28-Jul-02 20:11 
GeneralRe: missing export:MSVCRTD.DLL Pin
Mike Nordell28-Jul-02 22:14
Mike Nordell28-Jul-02 22:14 
GeneralRe: missing export:MSVCRTD.DLL Pin
Sharad Ganesh29-Jul-02 4:04
Sharad Ganesh29-Jul-02 4:04 
GeneralCSV File Format Pin
John Clump28-Jul-02 20:07
John Clump28-Jul-02 20:07 
GeneralRe: CSV File Format Pin
alex.barylski28-Jul-02 22:39
alex.barylski28-Jul-02 22:39 
GeneralRe: CSV File Format Pin
John Clump28-Jul-02 23:17
John Clump28-Jul-02 23:17 
General1) class factories.....2) parameters in COM Pin
Roman Nurik28-Jul-02 19:37
Roman Nurik28-Jul-02 19:37 
GeneralRe: 1) class factories.....2) parameters in COM Pin
Vi229-Jul-02 3:37
Vi229-Jul-02 3:37 
GeneralSerious Warning to Norton Anti-Virus Users Pin
Abin28-Jul-02 18:10
Abin28-Jul-02 18:10 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
includeh1028-Jul-02 18:46
includeh1028-Jul-02 18:46 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Chris Losinger28-Jul-02 18:56
professionalChris Losinger28-Jul-02 18:56 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Abin28-Jul-02 19:00
Abin28-Jul-02 19:00 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
Renjith Ramachandran28-Jul-02 20:29
Renjith Ramachandran28-Jul-02 20:29 
GeneralRe: Serious Warning to Norton Anti-Virus Users Pin
John Clump28-Jul-02 18:46
John Clump28-Jul-02 18:46 

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.