Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hi, ive just coded that massive program in console using dev-C++ and now ive come accross quite a problem
im getting the console app to build a .reg file from diffrent varible inputs (eg. name)
anyways, the problem im facing is that when it builds, this:
newfile << "\n[HKEY_LOCAL_MACHINE\SOFTWARE\Macromedia\Flash\7\Registration]"
//'newfile' being ofstream newfile("StudioMX.reg");
bcause of the '\' inside the conmmand line.. the console application thinks its one of those \" or \n commands... and generates this error:
35 C:\Mason\VC2005\FlashMX2004-en\main.cpp:66 [Warning] unknown escape sequence '\S'
the resuling line looks like:
[HKEY_LOCAL_MACHINESOFTWAREMacromediaFlashRegistration]
does anyone know how to solve this problem??

If I'm correct, \ is always an escape when followed by a letter. Try using \\ instead. I believe that is how you tell the compiler that you want to use the character itself rather than an escape sequence.

![]() |
Copying folders w/out ful...
|
Path problem
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |