No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
27 Posted Topics
Re: You are asking a rather broad question. I suggest that you either: 1) Be explicit about what you want others to code for you, and how much you are willing to pay (but not here, there are other places for that) -or- 2) Just start coding your idea yourself, and … | |
Re: [QUOTE=Atli;1746982][*]Emails usually use Windows style line endings: [icode]\r\n[/icode]. - Perhaps not particularly important these days, since modern email clients don't really care, but still worth getting right.[/QUOTE] I disagree, all mail that I send uses \n line endings, and I have tested proper operation in most popular web, Windows, and … | |
| |
Re: No, there is no straightforward way to disable the close button with Javascript. What website do you work for, that I might avoid it? | |
Many functions in C have been "improved" with versions that have n, l, or other characters in their names. For instance, strncat and strlcat which improves strcat. What is the significance of the letter n or l in these names? Thanks. | |
Considering the following line of code: [code]int *ip;[/code] Is "ip is a pointer to int" (the type) or is "ip a pointer to an int" (a particular variable of type int)? Thanks. | |
In an online C# tutorial [1] there is the following statement: "The override modifier allows a method to override the virtual method of its base class at run-time. The override will happen only if the class is referenced through a base class reference." I tested this with the following code: … | |
Seeing how C# does not support implicit fall-though in switch statements, why use the break keyword? All the code snippets I find on the web use the break keyword. Is it just habit from other languages? Thanks. | |
I am looking to learn best practices for working with strings. Two issues that I have with strncat are that it is difficult to calculate how much space to allow, and that there may not be a null character in the string after the procedure. So if I have two … | |
When dealing with pointers, the "&" sign is called the address-of urinary operator. Knowing it's name sure helps to understand when to use it. Is "*" a urinary operator as well, and if so, what is its name? If it is not an operator, then what is it? Thanks. | |
When printing an int to stdout, the %d type is used. Why "d"? The other types (s for string, c for char, f for float) all make mnemonic sense, but I cannot figure out why "d" for int. It's not short for "double" or "decimal" I think. | |
I just read in K&R that a function, even if not defined as void, need not return a value. To test I wrote a quick power function and I'm getting reproducible yet unexpected behaviour: [code]✈demios:cliC$ cat power.c #include <stdio.h> int power(int x, int y); int main() { printf("%d\n", power(2,5)); return … | |
How could I register a function to receive an event when the user presses the space bar in a text field? Better yet, where in the fine manual should I be reading about how to do this? I'm not finding much by googling, and I think that I should be … | |
Re: I just experienced this error. It turns out that there were strange possibly nonprinting unicode characters in the source code, that happened by accidentally switching keyboard layouts in the middle of typing the source and not properly deleting the characters. Deleting the entire line in question and the one before … | |
Re: Main is a static method, hence events cannot call an instance of something to call it. So, the answer is no. | |
I am replacing some very small bash scripts with Mono (C#). I have noticed some differing practices in C# tutorials online regarding convention. I'd like to know the reasoning behind them. If I should break this question up into multiple questions, let me know. 1) Use a namespace? I see … | |
Re: I use Ubuntu at home too, but at the university we use Windows. To use the file path in Windows in a string, double up the backslashes, like this: String fileName = "C:\\the\path\\to\\file.txt"; You did not include the code that writes to the file. Please add it, it is vital … | |
I think that the Daniweb admins might want to know: 1) A PHP error is thrown when signing up. I didn't record it, but it is either reproducible and therefore easy to find, or not reproducible and therefore not an issue! 2) The Login form consists of a CSS popup, … | |
Re: That is because the address is not returning an image! Try it in your browser: [url]http://www.movieposterdb.com/embed.inc.php?movie_id=0333766[/url] I am getting a page of javascript: [code]document.write('<a target=\"_new\" href=\"http://www.movieposterdb.com/movie/0333766/Garden-State.html\"><img title=\"Garden State\" alt=\"Garden State\" style=\"width: 100px; height: 143px; border: 0px;\" src=\"http://www.movieposterdb.com/posters/08_11/2004/333766/t_333766_b9a6e423.jpg\" /></a>'); [/code] | |
Re: It looks like you have assignment and comparison in the wrong places in the tertiary operator. Try rewriting that with an if-else. | |
Re: I don't see where the certificate from the server is passed on to the browser. | |
Re: [code] System.Media.SoundPlayer sp = new System.Media.SoundPlayer(); sp.SoundLocation = @"c:\path\to.wav"; sp.Play(); [/code] If you have the path in a variable, just substitute it in the second line. | |
Hi all, first post. I am a C# novice, but I have some experience in other C-derived languages. I am trying to close a Windows Form and open another. This is the code that I am trying to use: [code=c#] FormChat fm = new FormChat(client, username); fm.Show(); fm.Activate(); this.Close(); [/code] … | |
Re: I don't know if it's related, but I just signed up today and got a nice PHP error after the signup. Was there a recent change in the signup script to prevent the spammers from opening new accounts? It seems that I did successfully sign up, though, as I am … | |
Hi there, new member. I've trolled a few forums in the past, but I just discovered Daniweb. I'm impressed, despite the broad subjects covered there seem to be knowlegable posters in almost every category. Recently Daniweb results have been showing up in a lot of Google searches, so now that … | |
I have a Form that throws this when I close it: "Invoke or BeginInvoke cannot be called on a control until the window handle has been created." This seems to be the offending code, running in a child thread: [code=c#] this.Invoke(new someDelegate(someMethod)); [/code] I figured that if I could capture … |
The End.