Click here to Skip to main content
15,905,614 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Dialog List Problem Pin
David Crow31-Aug-05 16:10
David Crow31-Aug-05 16:10 
QuestionFile Size Limits Pin
carks31-Aug-05 6:20
carks31-Aug-05 6:20 
AnswerRe: File Size Limits Pin
JWood31-Aug-05 6:41
JWood31-Aug-05 6:41 
GeneralRe: File Size Limits Pin
carks31-Aug-05 6:54
carks31-Aug-05 6:54 
AnswerRe: File Size Limits Pin
PJ Arends31-Aug-05 7:05
professionalPJ Arends31-Aug-05 7:05 
GeneralRe: File Size Limits Pin
carks31-Aug-05 7:21
carks31-Aug-05 7:21 
GeneralRe: File Size Limits Pin
Bob Stanneveld31-Aug-05 7:54
Bob Stanneveld31-Aug-05 7:54 
GeneralRe: File Size Limits Pin
Blake Miller31-Aug-05 8:37
Blake Miller31-Aug-05 8:37 
From VC 6.0 MFC Source (FILECORE.CPP Line 111)
Yes it wraps Win32 API, not standard C runtime calls...

BOOL CFile::Open(LPCTSTR lpszFileName, UINT nOpenFlags,<br />
	CFileException* pException)<br />
{<br />
<br />
...<br />
<br />
	// attempt file creation<br />
	HANDLE hFile = ::CreateFile(lpszFileName, dwAccess, dwShareMode, &sa,<br />
		dwCreateFlag, FILE_ATTRIBUTE_NORMAL, NULL);<br />
	if (hFile == INVALID_HANDLE_VALUE)<br />
	{<br />
		if (pException != NULL)<br />
		{<br />
			pException->m_lOsError = ::GetLastError();<br />
			pException->m_cause =<br />
				CFileException::OsErrorToException(pException->m_lOsError);<br />
<br />
			// use passed file name (not expanded vesion) when reporting<br />
			// an error while opening<br />
<br />
			pException->m_strFileName = lpszFileName;<br />
		}<br />
		return FALSE;<br />
	}<br />
	m_hFile = (HFILE)hFile;<br />
	m_bCloseOnDelete = TRUE;

GeneralRe: File Size Limits Pin
Bob Stanneveld31-Aug-05 8:47
Bob Stanneveld31-Aug-05 8:47 
GeneralRe: File Size Limits Pin
PJ Arends31-Aug-05 10:10
professionalPJ Arends31-Aug-05 10:10 
GeneralRe: File Size Limits Pin
Bob Stanneveld31-Aug-05 11:00
Bob Stanneveld31-Aug-05 11:00 
GeneralRe: File Size Limits Pin
Blake Miller31-Aug-05 13:00
Blake Miller31-Aug-05 13:00 
GeneralRe: File Size Limits Pin
Toby Opferman31-Aug-05 14:35
Toby Opferman31-Aug-05 14:35 
AnswerRe: File Size Limits Pin
John R. Shaw31-Aug-05 21:09
John R. Shaw31-Aug-05 21:09 
Questionxmldocument Pin
picazo31-Aug-05 5:35
picazo31-Aug-05 5:35 
QuestionRegCreateKeyEx returns 87 &quot;ERROR_INVALID_PARAMETER&quot; Pin
win_newbie31-Aug-05 5:15
win_newbie31-Aug-05 5:15 
AnswerRe: RegCreateKeyEx returns 87 &quot;ERROR_INVALID_PARAMETER&quot; Pin
PJ Arends31-Aug-05 6:30
professionalPJ Arends31-Aug-05 6:30 
GeneralRe: RegCreateKeyEx returns 87 &quot;ERROR_INVALID_PARAMETER&quot; Pin
win_newbie31-Aug-05 9:35
win_newbie31-Aug-05 9:35 
AnswerRe: RegCreateKeyEx returns 87 &quot;ERROR_INVALID_PARAMETER&quot; Pin
PJ Arends31-Aug-05 10:20
professionalPJ Arends31-Aug-05 10:20 
Questioncarriage return line feed not working in a string Pin
LCI31-Aug-05 4:48
LCI31-Aug-05 4:48 
AnswerRe: carriage return line feed not working in a string Pin
toxcct31-Aug-05 4:51
toxcct31-Aug-05 4:51 
GeneralRe: carriage return line feed not working in a string Pin
LCI31-Aug-05 4:55
LCI31-Aug-05 4:55 
GeneralRe: carriage return line feed not working in a string Pin
Chris Losinger31-Aug-05 5:11
professionalChris Losinger31-Aug-05 5:11 
GeneralRe: carriage return line feed not working in a string [edited] Pin
toxcct31-Aug-05 5:21
toxcct31-Aug-05 5:21 
AnswerRe: carriage return line feed not working in a string Pin
Blake Miller31-Aug-05 4:52
Blake Miller31-Aug-05 4:52 

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.