Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
C++ command for writing Windows Reg
Name: change2linux Date: November 2, 2005 at 18:57:16 Pacific OS: XP (don't ask..) CPU/Ram: 500mhz, 224mb
Comment:
Hey, say I had a file called "entries.reg"... Is there a way, in C++ in Windows XP, to write this file to the Windows registry? "entries.reg" contains values for a program I'm working on
Name: djas Date: November 4, 2005 at 09:49:11 Pacific
Reply:
There are better ways of writing to the registry than a .reg file but if thats what you want.
system("reg import entries.reg")
that should work.
djas
0
Response Number 2
Name: change2linux Date: November 5, 2005 at 07:35:15 Pacific
Reply:
Thank you, but what are the better ways?
0
Response Number 3
Name: change2linux Date: November 7, 2005 at 19:22:36 Pacific
Reply:
Well, I just tried it... No errors in the source, but when the application runs, it says "Error: Invalid file format".. I've also tried importing it as text.. any ideas anybody?
Also, for those reading, I discovered that the file stdlib.h has to be included for this to work.. I'm new to C++ ;)
Summary: See, this is the problem with this new generation of "programmers", they don't know the basics. (I am not trying to berate you, engrnoman, just illustrating a point) When I started programming, way b...
Summary: What's the DOS command for 'Wait 5 seconds, then execute any key' After it says *** Press Any Key to Continue *** below, I would like it to wait 5 seconds so I can switch floppies, then automaticall...
Summary: What OS are you running? It's on the Windows CD. \tools\oldmsdos Anyway here it is you will have to figure out the line endings since it wraps in this editor. ELP: COLOR State¦ Sets the screen dis...