• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 149
  • Last Modified:

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??
0
a_k_47
Asked:
a_k_47
1 Solution
 
jackrabbit22Commented:
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.

0
 
moduloCommented:
PAQed - no points refunded (of 25)

modulo
Community Support Moderator
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now