comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
December 2007
motuwethfrsasuw
     12 48
3456789 49
10111213141516 50
17181920212223 51
24252627282930 52
31       1
2007
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  Best practice for persisting last read in Windows 2003.         


Author: Itaitai
Date: Dec 24, 2007 05:56

Hi

I'm dealing with an application that extracts records from a high-
volume log file. I'm trying to figure out a way to minimize extracting
the same records in case the application crashes (the application
knows how to deal with duplicates but its high cost).

I'm thinking about maintaining a "last record pointer" that would be
updated upon successful read(s) and persisted to disk. My concern is
that the file holding the pointer might get corrupted as well and I
will have no way to know from where to continue.

We are using Win2k3 and Windows 2008 transactions are currently not an
option.

I was thinking about maintaining the pointer in SQL Server, since it
support transaction, but it seems overkill.

Is there any writable storage in Windows which support transactions?
Does the system registry have any mechanisms that safeguard from data
corruption?

Thanks!

-Itai
no comments
  Converting virtual key code to char         


Author: Cristiano
Date: Dec 24, 2007 03:03

When I press any key, I get its virtual key code.
I should convert that code in a displayable char.

I tried MapVirtualKey and ToAscii, but I don't get the expected result.
Please, could somebody help me?

Thanks
Cristiano
1 Comment