Who knows about creating a Registry key in C++?

pls share ur knowledge about creating or modifying a Registry key using C++...

tnx a lot...
Last edited on
closed account (z05DSL3A)
Does this help?

http://www.codeproject.com/KB/system/CRegistry.aspx
#include<Registry.h>
void main()
{
CRegistry myreg;
if (myreg.Open("SOFTWARE\\Vity Soft\\narok\\ShortCutList",HKEY_LOCAL_MACHINE))
{
myreg["0"]="tead";
myreg.Close();
}

}
-------------------------------------------------------------------------
Linking...
test.obj : error LNK2001: unresolved external symbol "public: void __thiscall CRegistry::Close(void)" (?Close@CRegistry@@QAEXXZ)
test.obj : error LNK2001: unresolved external symbol "public: class CRegEntry & __thiscall CRegEntry::operator=(char const *)" (??4CRegEntry@@QAEAAV0@PBD@Z)
test.obj : error LNK2001: unresolved external symbol "public: class CRegEntry & __thiscall CRegistry::operator[](char const *)" (??ACRegistry@@QAEAAVCRegEntry@@PBD@Z)
test.obj : error LNK2001: unresolved external symbol "public: bool __thiscall CRegistry::Open(char const *,struct HKEY__ *,unsigned long,bool)" (?Open@CRegistry@@QAE_NPBDPAUHKEY__@@K_N@Z)
test.obj : error LNK2001: unresolved external symbol "public: __thiscall CRegistry::CRegistry(unsigned long)" (??0CRegistry@@QAE@K@Z)
Debug/test.exe : fatal error LNK1120: 5 unresolved externals
Error executing link.exe.

test.exe - 6 error(s), 0 warning(s)

DUDE... i got this error... pls help
Last edited on
closed account (z05DSL3A)
Try adding the Registry.cpp to your build?
^_^ tnx dude... i got it now... last question... how can i run the exe file through c++?
Last edited on
Topic archived. No new replies allowed.