both produce the same thing. I don't know why the C++11 standard requires a space between a literal and a string macro, but it probably has something to do with ambiguous parsing when no space is present.
As for the escaped quotes, if you mean
client->print("<td style='width:30px; background-color:\" GREEN \"'>");
recall that \" embeds a double quote in a string, much like \n or \t embeds a new-line or a tab. If that's not what you were referring to, then maybe you could explain it better?
Frankly, I had forgotten the concatenation example you show.
As for your escaped quotes, yes, I was referring to the use of the \ to allow the explicit use of the the following ". I thought that since the contents of the print statement were already delineated by leading and trailing quotes, that I had to use the \ to permit the use of additional quotes between those two "bookend" quotes. Thanks for setting me straight.
Its been a good day - I learned something. Thank you!!
I Searched on internet for any library done by c++ for scan image but cannot found
any library for c++ as open source free
can any one help me to give me any source code or links by c++ for scan image by scanner
then get direct to computer
I am trying to make a app that will record the exact duration, and the sequence of keystrokes. it need to be able to record with very precise timing because I am planing on using it to create a way to record a game follow path. For example a driving game that earns you money for just diving around in free roam and if you follow a specific path you maximize the amount of money you earn. but i don't know what i need for the coding. Is there a way to code something like that?
Most serious online games have counter measures to stop this sort of thing and it directly violates there User agreement and gets you banned. If you are dealing with real money it also comes under the fraud act of most countries and selling or distributing the app itself will fall under the same laws.
I would think very carefully about what you are doing it will generally be illegal.
Who is 'they'? If it's the company that made the game, it would be trivial for them to do this from within the game itself. If not, it's difficult and illegal.
Note that most EULAs specifically prohibit that kind of thing. At the very least, this is true for all multiplayer games, simply because it would create an unfair advantage over other players.
Just to be clear: any program that is capable of recording user input for other applications has the potential to record login credentials. For that reason alone it is most likely illegal in most countries, and that's on top of EULA and other rights that the game company may claim.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)
well OK it is illegal i wont try it., i mean i only wanted it so i can make an app that will allow you to make a type of AI afk non competitive grinder bot follow path so people can do long distince routs without having to be the PC for long time. i guess i should just start on a auto clicker and do even more research
This question isfor anyone using the CADODatabase classes in codeproject.com:
I'm trying to pass a currency amount to a SQL command and keep getting an exception about not declaring scalar variable @Amount. Any ideas about what is wrong?
CADORecordset *pRecSet=new CADORecordset(pDB);
// search for amount $28050.65
CADOCommand *pCmd=new CADOCommand(pDB, "select itemid from item where amount=@Amount", CADOCommand::typeCmdText);
pCmd->AddParameter("@Amount", CADORecordset::typeCurrency, CADOParameter::paramInput, 8, vtValue, 0, 0);
// exception gets thrown by Execute(pCmd)
You may be lucky, but it still requires someone who really understands the code. From my quick look at the article it would take some considerable time to reach that stage. Do you really need this code, or is there an alternative way of solving your problem?
Exactly what does that mean? Does it compile, does it get called in your code but fail in some way, does it not get called, are some of the parameters not passed correctly ... ? It would help if you showed the actual code that is supposed to work (and please use <pre> tags round it so it is readable) and explained where any failure happens.