I would like to know how to read a value from the registry. And store that value in a variable...
I use Bloodshed ide and ?mingw? compiler, NOT visual c++ so please do not give answers if they only apply to vc++.
Brent.tc 0 Junior Poster in Training
Recommended Answers
Jump to PostThe only requirement is that you should be working on a Windows OS and the compiler you use should have the required header files ( windows.h)
Also read this.
Jump to PostHere is another example
#include <windows.h> #include <iostream> using namespace std; int main() { HKEY hKey = 0; char buf[255] = {0}; DWORD dwType = 0; DWORD dwBufSize = sizeof(buf); const char* subkey = "Software\\Microsoft\\Office\\PowerPoint\\AddIns\\MultiMgrAddIn.AddInDesigner1"; if( RegOpenKey(HKEY_LOCAL_MACHINE,subkey,&hKey) == ERROR_SUCCESS) { dwType = REG_SZ; if( RegQueryValueEx(hKey,"Description",0, &dwType, (BYTE*)buf, …
All 8 Replies
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Lazaro Claiborn 1 Junior Poster
Brent.tc 0 Junior Poster in Training
Lazaro Claiborn 1 Junior Poster
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
Brent.tc 0 Junior Poster in Training
Brent.tc 0 Junior Poster in Training
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.