Bad parameter

From Appmethod Topics
Jump to: navigation, search

Go Up to Function Failure Errors

Bad Parameter usually occurs when an invalid file or other resource handle is passed to one of the standard Appmethod C++ or Win32 API functions. In the present code sample we have an invalid file handle:

#include <tchar.h>
#pragma hdrstop
void myf()
	FILE* Stream;
	fclose(Stream); // error

int _tmain(int argc, _TCHAR* argv[])
	return 0;