|
From: Wendel <we...@ha...> - 2001-06-21 02:51:01
|
Hello Guy,
I recived 4 messages ... and the answers are very different .... answers:
2) > The line ' HKEY HKEY_USERS\wendel_test ' is wrong. You can't do that.
HKEY is a
> registry key handle not the key's name.
3) You can't use #include <Winreg.h> with Dev-C++. Just delete that line.
For the use of RegCreateKeyEx, at the link in the beginning of this message,
you will find links to some examples.
4) It work very well here.
Then i try do the changes in my program ... the nunbem of erros is low ...
but don't work yet ... :-/
In the second case, spoken that handle isn't the key name. But i translate
to my lenguague and handle is a work that don't do sense for me, unhappyly!
:-/
What is the handle ?? Can you show me a correct value that must i use to i
work, in the contrary of the ' HKEY HKEY_USERS\wendel_test ' ??
In the first case, it is a good help for me ... my errors down only for two
erros:
#include <stdio.h>
#include <windows.h> //Header: Declared in Winreg.h; include Windows.h.
#include <winreg.h> // i put this 2 headers as is needed in the text.
int main()
{
LONG RegCreateKeyEx(
HKEY HKEY_USERS\wendel_test
return(0);
}
8 f:\dev-c_~1\untitl~1.cpp
parse error before `0x80000003'
8 f:\dev-c_~1\untitl~1.cpp
stray '\' in program
What is the error stray '\' in program ?? is it when i used "return(0);" ??
Why ?
In the trirth case, i comment the line "#include <winreg.h>" and it up 4
errors and don't show me a link to examples.
And in the 4 case, it don't work here!! hehehe =]
ps.: Thkz again for all help.
[ ]'s
Best Regards.
|