Click here to Skip to main content
15,915,867 members
Home / Discussions / System Admin
   

System Admin

 
QuestionEmulator Pin
Stylemaster10-Apr-07 5:29
professionalStylemaster10-Apr-07 5:29 
AnswerRe: Emulator Pin
lucjon13-Apr-07 0:18
lucjon13-Apr-07 0:18 
QuestionCan not see my computer in its workgroup! Pin
reza matinnejad9-Apr-07 19:43
reza matinnejad9-Apr-07 19:43 
QuestionWatching Application Pin
JClick9-Apr-07 15:47
JClick9-Apr-07 15:47 
AnswerRe: Watching Application Pin
Michael Hendrickx11-Apr-07 19:33
Michael Hendrickx11-Apr-07 19:33 
AnswerRe: Watching Application Pin
Craster12-Apr-07 5:13
Craster12-Apr-07 5:13 
Questionhelp plz! Pin
HBOOSH19858-Apr-07 23:44
HBOOSH19858-Apr-07 23:44 
QuestionRetrieving registry key value - C++ Pin
borucik8-Apr-07 23:11
borucik8-Apr-07 23:11 
I am trying to get a value of a certain registry key and store it in a char array. I do it like this:
<br />
char buf[4096];<br />
HKEY pHKey,dKey;<br />
LONG tmp_reg1 = RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software",0,KEY_READ,&pHKey);<br />
if((tmp_reg1 != ERROR_SUCCESS) || (pHKey == NULL))<br />
	throw(string("No proper registry key (1)"));<br />
LONG tmp_reg2 = RegOpenKeyEx(pHKey,"CyberLink",0,KEY_READ,&dKey);<br />
if((tmp_reg2 != ERROR_SUCCESS) || (dKey == NULL))<br />
	throw(string("No proper registry key (2)"));<br />
LONG tmp_reg3 = RegGetValue(dKey,"PowerDVD","InstallDir",RRF_RT_REG_SZ,(LPDWORD)REG_SZ,buf,(LPDWORD)sizeof(buf));<br />
if(tmp_reg3 != ERROR_SUCCESS)<br />
	throw(string("No proper registry key (3)"));<br />


However, when I start the application, it crashes giving me the following error (My Windows is in Polish so I do not know if I translate it properly) :
Unable to find entrance point of the procedure RegGetValueA in library ADVAPI32.DLL

I use Windows XP Home Edition, SP2, Visual Studio Express 2005.

Thanks in advance
AnswerRe: Retrieving registry key value - C++ Pin
Michael Dunn9-Apr-07 19:09
sitebuilderMichael Dunn9-Apr-07 19:09 
GeneralRe: Retrieving registry key value - C++ Pin
borucik9-Apr-07 20:53
borucik9-Apr-07 20:53 
GeneralRe: Retrieving registry key value - C++ Pin
Michael Dunn9-Apr-07 20:55
sitebuilderMichael Dunn9-Apr-07 20:55 
QuestionCan not access drives on the local computer! Pin
reza matinnejad7-Apr-07 23:52
reza matinnejad7-Apr-07 23:52 
QuestionDefault Sound Device Pin
mertology7-Apr-07 2:12
mertology7-Apr-07 2:12 
Questionwindows problem Pin
vishal dhir4-Apr-07 20:08
vishal dhir4-Apr-07 20:08 
AnswerRe: windows problem Pin
MatrixCoder5-Apr-07 5:24
MatrixCoder5-Apr-07 5:24 
QuestionRegistry error Pin
Mad4runing3-Apr-07 11:49
Mad4runing3-Apr-07 11:49 
AnswerRe: Registry error Pin
MatrixCoder3-Apr-07 16:39
MatrixCoder3-Apr-07 16:39 
GeneralRe: Registry error Pin
Mad4runing4-Apr-07 4:27
Mad4runing4-Apr-07 4:27 
GeneralRe: Registry error Pin
MatrixCoder4-Apr-07 4:58
MatrixCoder4-Apr-07 4:58 
GeneralRe: Registry error Pin
Mad4runing4-Apr-07 5:57
Mad4runing4-Apr-07 5:57 
QuestionPassword expiry date Pin
Sachin Pimpale2-Apr-07 21:16
Sachin Pimpale2-Apr-07 21:16 
AnswerRe: Password expiry date Pin
S Douglas2-Apr-07 23:22
professionalS Douglas2-Apr-07 23:22 
GeneralRe: Password expiry date Pin
Sachin Pimpale2-Apr-07 23:32
Sachin Pimpale2-Apr-07 23:32 
GeneralRe: Password expiry date Pin
S Douglas2-Apr-07 23:35
professionalS Douglas2-Apr-07 23:35 
GeneralRe: Password expiry date Pin
Dyog2-Apr-07 23:40
Dyog2-Apr-07 23:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.