Omgili - forum search, search forums  
  

Discussions about c illegal

Displaying 1 - 10 out of 43,904 discussions.  
RSS Feed Options
Time Frame: (Any time)   Minimum number of replies: (2)   Minimum number of discussing users: (0)
  |  

Page: 1   2   3   4   5   6   7   8   9   10  
Keep this page open to be updated with the newest discussions automatically.
Possible Duplicate: Switch statement fallthrough in C#? The following code is illegal in C# because control cannot fall through from one case label to another. However, this behaviour is perfectly legal in C++. So, how would you go about coding the same...
Started by on , 4 posts by 4 people.  
Eric Lippert, who works on the language, talks about it here: http://blogs.msdn.com/ericlippert/archive/2009/08/13/four-switch-oddities.aspx Short version: the easiest fix is to use a goto: switch (totalWords) { case TotalWords.Four... .
Explicit gotos...
So I basically have a vector args with 1 argument per array that I'm trying to pass to an execv() call in unix. Execv accepts two parameters like so: int execv(const char *path, char *const argv[]); What's the best way to convert my vector of strings ...
Started by on , 3 posts by 3 people.  
Try this: char * arg[args.size()+1]; arg[args.size()] = NULL; for (int j=0; [...] The execv functions provide an array of pointers to null-terminated strings that... .
I think your problem may be that you are neglecting to put a NULL at the end of the array .
I'm building an application that uses an elaborate API to fetch data from Youtube, and the data files are saved with the name of the corresponding video as the file name. However, my program is crashing because quite a lot of the videos on YouTube have...
Started by on , 4 posts by 4 people.  
I think I'd probably use Path.GetInvalidFilenameChars and just replace....
It may strip out all the characters you want it to, but it'll do others as well .
I'm not sure I would though.
Well if you want to do url encoding, you could use HttpUtility.UrlEncode .
Ask your Facebook Friends
Hi, I'm getting an "Illegal characters in path error" while using XMLTextReader method. Basically, I'm sending a long URL to tr.im, and tr.im sends the response as an XML stream, which I'm trying to parse but I get the above mentioned error. Can you guys...
Started by on , 5 posts by 5 people.  
Try the following code XmlTextReader reader = new XmlTextReader(new StringReader(strURL)); You should print... .
The reason why is you are using the constructor of XmlTextReader which takes a file path as the parameter but you're passing XML content instead .
Hi I'm developing a game which is based around the user controlling a ball which moves between areas on the screen. The 'map' for the screen is defined in the file ThreeDCubeGame.cpp: char m_acMapData[MAP_WIDTH][MAP_HEIGHT]; The ThreeDCubeGame.cpp handles...
Started by on , 7 posts by 7 people.  
Alternatives: -Make GetMapEntry static: static inline char GetMapEntry -Create an instance of ThreeDCubeGame and do instance.GetMapEntry( You are trying to call... .
GetMapEntry is not static so you can't call it without an object of the type ThreeDCubeGame .
When you data bind in C#, the thread that changes the data causes the control to change too. but if this thread is not the one on which the control was created, youll get the above exceptions. surfed the net - no good answer. anyone ?
Started by on , 8 posts by 6 people.  
If the thread call is "illegal" (i.e..
Other than that, you should not have to write anything extra .
Hello, My question (which will follow after this, sorry about the long intro, the question is down there in bold ) is originally inspired by Item 23 in Herb Sutters Exceptional C++ where we find something like this: <snip> ... int main() { GenericTableAlgorithm...
Started by on , 5 posts by 5 people.  
Part of your answer might come from Herb himself, in "A candidate for ... .
The original Guru of the Week article is here: Guru of the Week #15 .
You need the move semantics that will be introduced in C++x0 .
I don't think you can do this with current C++ .
Why won't this do anything, output is identical to input? I'm baffled!!! string name = ";;;'']][[ zion \\\[[[]]]" char[] invalidChars = System.IO.Path.GetInvalidPathChars(); string invalidString = Regex.Escape(new string(invalidChars)); string valid =...
Started by on , 4 posts by 4 people.  
What do you mean by it won't do anything? I ran the following in a console application: string name = ";;;'']][[ zion \\\\[[[]]]"; char[] invalidChars = System.IO.Path.GetInvalidPathChars(); string invalidString = Regex.Escape(new string(invalidChars)... .
I need a robust and simple way to remove illegal path and file characters from a simple string. I've used the below code but it doesn't seem to do anything, what am i missing? using System; using System.IO; namespace ConsoleApplication1 { class Program...
Started by on , 7 posts by 7 people.  
Try something like this instead; string illegal = "\"M\"\\a/ry/ h**ad:>> a\\/:*?\"| ....
()) { illegal = illegal.Replace(c.ToString(), ""); } foreach (char c in Path.GetInvalidPathChars from the beginning and end of the string.
I have a program that allows a user to type java code into a rich text box and then compile it using the java compiler. Whenever I try to compile the code that I have written I get an error that says that I have an illegal character at the beginning of...
Started by on , 6 posts by 6 people.  
BOM use is optional, and, if used, should appear at the start ... .
Its code point is U+FEFF.
Http://en.wikipedia.org/wiki/Byte_order_mark The byte order mark (BOM) is a Unicode character used to signal the endianness (byte order) of a text file or stream .
Page: 1   2   3   4   5   6   7   8   9   10  
More Information


Forum Search About Omgili Help Plugins Forum/Board Owners Privacy

i
In Title
In Topic
In Reply
Exclude
Boost