Hello, I very need to start script on aplication form, but I can do it only if my script is location in anower file (for example, i set up url=C:\script.html). I want to place this script in my program and when send to it (to script) some digits, how i can do it?
P.S. Sory for my english
Aside from Skizmo's point who is right about you having posted that in the wrong forum section, actually your problem here happens to be common to both managed and unmanaged C++.
Of course a string literal that starts with a double quote (") ends for the compiler as soon as it sees the next double quote. If you want double quotes as part of a string literal (and you have lots of them here) you need to escape them by preceding them with a backslash (\).
Also, but that's not part of the reason for the errors you get, I'd recommend to remove the + sign at the end of each line of your HTML code literal. With that sign, the compiler stores each line of the HTML snippet as a single string literal and your program will later need to add them together to a single string by making callls to methods of the String class. And it would need to do that each time that piece of code is executed which is inefficient. Without the + sign, the compiler would store the entire HTML code as a single string literal that then would simply get assigned in a single step.
Last but not least, I'd recommend to add the sequence /r/n to the end of each literal line of HTML code. This would add a standard Windows line ending to the lines. Without it, the HTML code would end up being a single long line. It doesn't matter with regard to the validity of the HTML code, but it may be quite helpful when viewing the code later, e.g. when debugging.
After applying these three changes, your code would look like this:
Probably my questions on this component haven't ended, now I need to pull out variables from my script though, yesterday I thought that only in this script I will send data, that I do now successfully. The variant with a clipboard hasn't approached me, as I can copy only one variable, and it is necessary to me a little, tried to dodge with document title (there a script to enter all that is necessary, and then to receive studio), but it too doesn't approach, because the browser obediently to deduce all in the form, yes it is wrong so. certainly, I can change my script. In general, again I ask your council
Last edited by BigED; August 29th, 2011 at 12:11 PM.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.