Link to home
Start Free TrialLog in
Avatar of a_k_47
a_k_47

asked on

Writing a list of integers in Window Registry

is there some way i can write a list of integers in the Windows Registry under one sub key??
Avatar of jackrabbit22
jackrabbit22

How about formatting them as a string, and then writing the string to the registry?

i.e.

// Format as string
int one, two, three, four, five;
CString strTemp;
strTemp.Format(_T("%d, %d, %d, %d, %d"), one, two, three, four, five);

// Now write strTemp to registry

You can use the AfxExtractSubString function to retrieve the values back from the string in the registry.

ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial