Click here to Skip to main content
15,923,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralFigured it out Pin
Jon Betzold9-Sep-04 12:57
Jon Betzold9-Sep-04 12:57 
GeneralError - windows.h already included Pin
skg7479-Sep-04 11:49
skg7479-Sep-04 11:49 
GeneralRe: Error - windows.h already included Pin
Arsalan Malik9-Sep-04 19:32
Arsalan Malik9-Sep-04 19:32 
GeneralRe: Error - windows.h already included Pin
David Crow10-Sep-04 3:17
David Crow10-Sep-04 3:17 
GeneralRe: Error - windows.h already included Pin
skg74710-Sep-04 6:07
skg74710-Sep-04 6:07 
GeneralRe: Error - windows.h already included Pin
David Crow10-Sep-04 7:59
David Crow10-Sep-04 7:59 
GeneralRe: Error - windows.h already included Pin
skg74710-Sep-04 10:12
skg74710-Sep-04 10:12 
GeneralException "The parameter is incorrect." on CArchive Pin
Ed K9-Sep-04 11:24
Ed K9-Sep-04 11:24 
I'm trying to save a file to a server and getting a "The parameter is incorrect." exception.
<code>
CFile file;
CFileException ex;
if( file.Open(path, CFile::modeWrite | CFile::shareExclusive | CFile::modeCreate, &ex) )
{
	try
	{
		CArchive ar(&file, CArchive::store);
		ploan->Serialize(ar);

		ar.Close();
		file.Close();
	
	}
	catch(CFileException* pEx)
	{
		// not caught here
	}
	catch(CArchiveException* pEx)
	{
		// not caught here
	}
	catch(CException* pEx)
	{
		// "The parameter is incorrect." caught here
	}
}
</code>

It creates a zero length file and fails. Any ideas??

Thanks!

ed
GeneralRe: Exception "The parameter is incorrect." on CArchive Pin
David Crow10-Sep-04 3:27
David Crow10-Sep-04 3:27 
GeneralRe: Exception &quot;The parameter is incorrect.&quot; on CArchive Pin
Ed K10-Sep-04 6:04
Ed K10-Sep-04 6:04 
GeneralRe: Exception &quot;The parameter is incorrect.&quot; on CArchive Pin
David Crow10-Sep-04 7:52
David Crow10-Sep-04 7:52 
GeneralRe: Exception &quot;The parameter is incorrect.&quot; on CArchive Pin
Ed K4-Oct-04 15:49
Ed K4-Oct-04 15:49 
GeneralOwner Draw List Box Scrolling Problem - ?XP bug Pin
Michael Gunlock9-Sep-04 11:05
Michael Gunlock9-Sep-04 11:05 
GeneralSorting Recordset Pin
Ouenstreet9-Sep-04 10:49
Ouenstreet9-Sep-04 10:49 
GeneralRe: Sorting Recordset Pin
David Crow9-Sep-04 10:57
David Crow9-Sep-04 10:57 
GeneralRe: Sorting Recordset Pin
Ouenstreet10-Sep-04 4:05
Ouenstreet10-Sep-04 4:05 
GeneralRe: Sorting Recordset Pin
Ouenstreet10-Sep-04 10:55
Ouenstreet10-Sep-04 10:55 
GeneralRe: Sorting Recordset Pin
Ouenstreet13-Sep-04 9:56
Ouenstreet13-Sep-04 9:56 
GeneralHelp with Printing Pin
Eversman9-Sep-04 10:01
Eversman9-Sep-04 10:01 
GeneralRe: Help with Printing Pin
David Crow9-Sep-04 10:38
David Crow9-Sep-04 10:38 
GeneralRe: Help with Printing Pin
Eversman9-Sep-04 10:43
Eversman9-Sep-04 10:43 
GeneralRe: Help with Printing Pin
David Crow9-Sep-04 11:00
David Crow9-Sep-04 11:00 
GeneralRe: Help with Printing Pin
Eversman9-Sep-04 11:26
Eversman9-Sep-04 11:26 
GeneralRe: Help with Printing Pin
David Crow10-Sep-04 2:11
David Crow10-Sep-04 2:11 
GeneralWin32 control compositing Pin
Jim Crafton9-Sep-04 9:47
Jim Crafton9-Sep-04 9:47 

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.