views:

40

answers:

2

i want to create a new registry entry and set current system time into registry. How can i implement it using C++

A: 

For working with registry using C++, refer my answer here to some other related Q.

aJ
A: 

GetSystemTime http://msdn.microsoft.com/en-us/library/ms724390(VS.85).aspx + RegCreateKeyEx http://msdn.microsoft.com/en-us/library/ms724844(VS.85).aspx + RegSetValueEx http://msdn.microsoft.com/en-us/library/ms724923(VS.85).aspx + RegCloseKey http://msdn.microsoft.com/en-us/library/ms724837(VS.85).aspx

steelbytes
I understood this procedure and trying the same that u said.But my problem is i faild to get system time and putting it into regisrty.Sucessfully created new registry using RegCreateKeyEx
My need is to take time day and year.
what is failing? what reg type are you tring to store it as?
steelbytes