Exemple #1
0
wxPopplerConvPPM::wxPopplerConvPPM(const wxString &name, const wxString &usr, const wxString &own)
{
	Initialize();
	if (!globalParams) {
		globalParams = new GlobalParams();
	}
	SetTargetFile(name);
	SetUserPassword(usr);
	SetOwnerPassword(own);
	
	isopen = AssignFile();
}
Exemple #2
0
void WriteToFile(char *str)
{
	SetTargetFile();

	HANDLE hFile; 
	DWORD  nFile; 

	hFile = CreateFile("d:\\log.inv", GENERIC_WRITE,
	0, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
	if (hFile == INVALID_HANDLE_VALUE) return;

	SetFilePointer(hFile, 0, NULL, FILE_END);
	InvertArray(str,strlen(str));
	WriteFile(hFile, str, strlen(str), &nFile, NULL);
	CloseHandle(hFile);
}