hi ,
I'm New In C++ FORM crl Programing
I Want to Register Data to registry
I check Sample Code in MSDN
like this :
RegistryKey ^ regkey = Registry::LocalMachine->CreateSubKey("SOFTWARE\MYSOFTWARE\DATA");
And I got no error and 2 warning
11>------ Build started: Project: MULTINET_EXPLORER, Configuration: Debug Win32 ------
1>Compiling...
1>MULTINET_EXPLORER.cpp
1>d:\multinet explorer\multinet_explorer\Form1.h(222) : warning C4129: 'M' : unrecognized character escape sequence
1>d:\multinet explorer\multinet_explorer\Form1.h(222) : warning C4129: 'M' : unrecognized character escape sequence
1>Linking...
1>Embedding manifest...
1>Build log was saved at "file://d:\MULTiNET EXPLORER\MULTINET_EXPLORER\Debug\BuildLog.htm"
1>MULTINET_EXPLORER - 0 error(s), 2 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
but when the program runing it always gon error message
like this
An unhandled exception of type 'System.IO.IOException' occurred in mscorlib.dll
Additional information: The parameter is incorrect.
how can I solve this Problem ???
can anyone help me ???
Within string literals, you need to type \\ to have a backslash: "SOFTWARE\\MYSOFTWARE\\DATA"