?
Solved

Writing a list of integers in Window Registry

Posted on 2003-03-06
4
Medium Priority
?
147 Views
Last Modified: 2013-11-20
is there some way i can write a list of integers in the Windows Registry under one sub key??
0
Comment
Question by:a_k_47
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 1

Expert Comment

by:jackrabbit22
ID: 8088139
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
 

Accepted Solution

by:
modulo earned 0 total points
ID: 11812408
PAQed - no points refunded (of 25)

modulo
Community Support Moderator
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Displaying information on the statusbar.   Continuing from the third article about sudoku.   Open the project in visual studio. Status bar – let’s display the timestamp there.  We need to get the timestamp from the document s…
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question