|
|
|
|
![]() ![]() |
![]() ![]() Group: [HOSTED]
Posts: 39 Joined: 9-August 08 Member No.: 66,233 |
Post
#1
Oct 2 2008, 10:53 AM
i have just started learning c++. i am currently using turbo c++.is it possible to edit windows registry in c++(not vc++). i am just a beginner . would be glad if you gave examples.
|
![]() ![]() Group: [HOSTED]
Posts: 28 Joined: 26-September 08 Member No.: 68,403 |
Post
#2
Oct 2 2008, 10:59 AM
It is possible to change the registry using C++. I have searched the Internet, and have found two articles that will probably be of use for you. http://op.htmsoft.com/articles/Articlea2-4-2.html http://op.htmsoft.com/articles/Articlea2-5-3.html |
![]() ![]() Group: [HOSTED]
Posts: 39 Joined: 9-August 08 Member No.: 66,233 |
Post
#3
Oct 2 2008, 11:10 AM
thanks but i still dont understand, can some one please explain as i am new. can ou specifically write the program??
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 1,322 Joined: 27-May 05 From: Portugal (Europe) Member No.: 7,566 myCENT:17.84 |
Post
#4
Oct 2 2008, 02:06 PM
amrit, i do not know in c/c++, but i do know in other ways. You can edit the windows 2000/xp registry manually or with a specific program created for that same purpose, for instance, windows xp comes with an already installed windows registry editor, it is not much of an editor, it is free, yes, but today, there are a lot of other programs, freeware, programs/tools, to tweak and edit the windows 2000/xp registry. To use the windows xp installed tool: Click the start button, then click execute, then digit this word: regedit , then click enter or ok, now that is the registry editor by default. To search the internet for the top quality and freeware registry edtors, search in this websites: http://www.snapfiles.com/Freeware/system/fwregtools.html http://www.freeware-guide.com http://www.download.com http://www.tucows.com http://www.google.com http://www.yahoo.com To tweak your registry/system, this are the best freeware tools, choose one: http://www.snapfiles.com/Freeware/system/fwsystweak.html Actually, i advice you to not edit the registry just by yourself if you do not have any expertise or any experience, if you edit the windows 2000/xp registry in some specific keys, your could paralise the windows system completely or just parcialy, or you just could make the system work slowly or just plain bad, do you understand? The windows 2000/xp registry is praticaly the heart or core of the system it self, without it, it would not be a system, with would be nothing, with would be an incomplete system at the very least, so be very careful editing it. Be sure to always create backups of your windows registry (2000 or XP) because without the backup you can not roll backup your changes that you made to the registry, do not make the same mistakes that many persons made, he he he. This post has been edited by Lyon2: Oct 2 2008, 02:11 PM |
![]() ![]() Group: [HOSTED]
Posts: 39 Joined: 9-August 08 Member No.: 66,233 |
Post
#5
Oct 2 2008, 02:20 PM
hey i already know all that stuff man..... i wanted to know if it is possible through some c++ commands.
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED]
Posts: 1,322 Joined: 27-May 05 From: Portugal (Europe) Member No.: 7,566 myCENT:17.84 |
Post
#6
Oct 2 2008, 02:23 PM
Ok amrit, sorry, i just wanted to help, i will see if i can help you with that too. I will ask some freinds of mine that work with c++, perhaps today if they answer me by e-mail. |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Validating
Posts: 238 Joined: 29-August 08 Member No.: 67,024 |
Post
#7
Oct 2 2008, 06:10 PM
QUOTE(Lyon2 @ Oct 2 2008, 02:23 PM) [snapback]409923[/snapback] Ok amrit, sorry, i just wanted to help, i will see if i can help you with that too. I will ask some freinds of mine that work with c++, perhaps today if they answer me by e-mail. That is possible the method is as follow 1. Compile your c++ using a c++ that supports adding library to include the Microsoft API Header or .H file, these files are usually reside in Windows directory, it is to enable that your .exe application to use .dll provided by microsoft in code. But be aware that your result .exe may only work in your Windows version, in some other version or even service pack, the .dll and header might have changed as microsoft upgraded their product, as a problems often an issue. 2. There is infact no different in vc++ and c++ excepts that vc++ addeed some new keyword (microsoft vc++ has keyword act as macro) 3. Using API is the best way to access the registry in C++ use this function LONG RegSetValueEx(HKEY hkey, LPCSTR lpszName, DWORD NotUsed, DWORD DataType, CONST LPBYTE lpValue, DWORD SizeOfValue); 4. Uses advapi32.dll Vote me informative if you like read this http://www.gidforums.com/t-3186.html This post has been edited by innosia: Oct 2 2008, 06:11 PM |
![]() ![]() Group: [HOSTED]
Posts: 39 Joined: 9-August 08 Member No.: 66,233 |
Post
#8
Oct 2 2008, 08:24 PM
no noh not at all lyon2 no probs. tks innosia , but i stilll might need help figuring out what you said. waiting for the magician to post to explain me...
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Validating
Posts: 238 Joined: 29-August 08 Member No.: 67,024 |
Post
#9
Oct 2 2008, 08:42 PM
QUOTE(amrit @ Oct 2 2008, 08:24 PM) [snapback]409959[/snapback] no noh not at all lyon2 no probs. tks innosia , but i stilll might need help figuring out what you said. waiting for the magician to post to explain me... learn c++ deeper if you want creating C++ .exe that can manipulates windows get a book about Windows Programming, mostly it describes only win32 API that is used for manipulating windows, you can do anything with Windows Programming, but harder to create a complex windows application things (like form with object, anchor and dock, and complex controls) But win32 API is good when you are creating small tools, the executable result is small (if you don't include mfc and large library). What in fact are you going to create amrit? |
![]() Group: Members
Posts: 2 Joined: 4-October 08 Member No.: 68,836 |
Post
#10
Oct 4 2008, 05:54 PM
Making direct calls to the Windows API functions shouldn't be neccessary. It would be easier, especially if you are new to C++ to use some classes that encapsulate the Windows API. These generally are less verbose as they require less parameters and will get you up and running quicker. A quick google search for such classes yields the following. I can't vouch for it but codeproject.com generally has good free code on it. http://www.codeproject.com/KB/winsdk/Windows_Registry.aspx |
![]() ![]() |
Similar Topics
| Topic Title | Replies | Topic Starter | Views | Last Action | |||
|---|---|---|---|---|---|---|---|
![]() |
5 | bluedragon | 2,109 | 17th October 2009 - 02:34 PM Last post by: iG-drew |
|||
![]() |
7 | jailbox | 10,798 | 6th September 2004 - 11:53 AM Last post by: synderoxide |
|||
![]() |
33 | The Simpleton | 588 | 1st November 2009 - 12:41 PM Last post by: The Simpleton |
|||
![]() |
2 | dontmaimyourself | 11,793 | 2nd August 2004 - 08:55 AM Last post by: Spectre |
|||
![]() |
17 | pr3dr49 | 24,253 | 18th March 2009 - 07:08 AM Last post by: aloKNsh |
|||
![]() |
25 | stingray001 | 5,972 | 11th May 2009 - 01:20 AM Last post by: artsemail2000 |
|||
![]() |
49 | cnfir | 13,944 | 27th January 2005 - 09:55 AM Last post by: jjhou |
|||
![]() |
10 | zhangzy | 19,300 | 24th September 2004 - 01:58 PM Last post by: goranche |
|||
![]() |
5 | stevey | 10,305 | 20th August 2004 - 06:14 PM Last post by: Spectre |
|||
![]() |
14 | Thunder | 22,966 | 24th September 2004 - 01:25 AM Last post by: akz |
|||
![]() |
18 | dundun2007 | 27,752 | 9th January 2009 - 08:40 AM Last post by: kudmus |
|||
![]() |
13 | tonyused | 2,750 | 7th February 2009 - 12:08 PM Last post by: Ash-Bash |
|||
![]() |
5 | DjLuki | 2,018 | 17th July 2007 - 12:44 PM Last post by: Lyon2 |
|||
![]() |
4 | stevey | 9,588 | 28th September 2009 - 06:29 AM Last post by: donneo |
|||
![]() |
11 | Zenchi | 16,920 | 14th October 2004 - 12:04 PM Last post by: NTNguyen |
|||
|
Open Discussion | Time is now: 8th November 2009 - 04:40 PM |
Web Hosting Powered by ComputingHost.com.