Click here to Skip to main content
15,885,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC control and value variable conflict Pin
Prakash Nadar15-Feb-04 19:59
Prakash Nadar15-Feb-04 19:59 
GeneralRe: MFC control and value variable conflict Pin
jhwurmbach16-Feb-04 0:08
jhwurmbach16-Feb-04 0:08 
GeneralRe: MFC control and value variable conflict Pin
Prakash Nadar16-Feb-04 2:54
Prakash Nadar16-Feb-04 2:54 
GeneralRe: MFC control and value variable conflict Pin
jhwurmbach16-Feb-04 3:09
jhwurmbach16-Feb-04 3:09 
GeneralRe: MFC control and value variable conflict Pin
David Crow16-Feb-04 3:01
David Crow16-Feb-04 3:01 
Generaltrying to get the size of a file Pin
clayman8715-Feb-04 5:11
clayman8715-Feb-04 5:11 
GeneralRe: trying to get the size of a file Pin
Tim Smith15-Feb-04 5:19
Tim Smith15-Feb-04 5:19 
GeneralRe: trying to get the size of a file Pin
Michael P Butler15-Feb-04 10:03
Michael P Butler15-Feb-04 10:03 
Off the top of my head.

// Open file for reading
if ((hFile = CreateFile (filePath, GENERIC_READ,FILE_SHARE_READ,NULL,OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL,(HANDLE)NULL)) == (HANDLE)(-1))
{
  return 0;
}

DWORD dwFileSize = GetFileSize (hFile, NULL); // Get the size of the file.

return dwFileSize;


Michael

But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you?
- "The Stranger," Billy Joel
GeneralRe: trying to get the size of a file Pin
Joe Woodbury15-Feb-04 19:23
professionalJoe Woodbury15-Feb-04 19:23 
GeneralThx Pin
clayman8716-Feb-04 2:23
clayman8716-Feb-04 2:23 
Generalthe way of the virus [OT] Pin
Anonymous15-Feb-04 3:54
Anonymous15-Feb-04 3:54 
GeneralRe: the way of the virus [OT] Pin
Michael Dunn15-Feb-04 5:34
sitebuilderMichael Dunn15-Feb-04 5:34 
GeneralRe: the way of the virus [OT] Pin
Prakash Nadar15-Feb-04 16:59
Prakash Nadar15-Feb-04 16:59 
GeneralRe: the way of the virus [OT] Pin
David Crow16-Feb-04 3:06
David Crow16-Feb-04 3:06 
QuestionI want to use vc or vb to insert a picture into the word document at a given screen point. how to do? Pin
cuixiutao15-Feb-04 3:43
cuixiutao15-Feb-04 3:43 
GeneralWord file with Visual c++ (MFC) Pin
Member 73893815-Feb-04 2:33
Member 73893815-Feb-04 2:33 
GeneralRe: Word file with Visual c++ (MFC) Pin
Antti Keskinen15-Feb-04 8:03
Antti Keskinen15-Feb-04 8:03 
GeneralRe: Word file with Visual c++ (MFC) Pin
Member 73893815-Feb-04 12:01
Member 73893815-Feb-04 12:01 
GeneralRe: Word file with Visual c++ (MFC) Pin
Antti Keskinen15-Feb-04 21:56
Antti Keskinen15-Feb-04 21:56 
GeneralRe: Word file with Visual c++ (MFC) Pin
Member 73893815-Feb-04 23:12
Member 73893815-Feb-04 23:12 
GeneralRe: Word file with Visual c++ (MFC) Pin
Antti Keskinen16-Feb-04 2:21
Antti Keskinen16-Feb-04 2:21 
GeneralRe: Word file with Visual c++ (MFC) Pin
Member 73893816-Feb-04 4:12
Member 73893816-Feb-04 4:12 
GeneralRe: Word file with Visual c++ (MFC) Pin
C++NewBe25-May-04 9:57
C++NewBe25-May-04 9:57 
GeneralRe: Word file with Visual c++ (MFC) Pin
Antti Keskinen25-May-04 11:12
Antti Keskinen25-May-04 11:12 
GeneralRe: Word file with Visual c++ (MFC) Pin
C++NewBe25-May-04 11:25
C++NewBe25-May-04 11:25 

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.