Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

~10.2K People Reached
Favorite Tags

27 Posted Topics

Member Avatar for Arskap

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 …

Member Avatar for arun781
0
784
Member Avatar for Surfsup

[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 …

Member Avatar for NinjaMediaD
0
2K
Member Avatar for ARKaMAN
Member Avatar for jain1.anuj

No, there is no straightforward way to disable the close button with Javascript. What website do you work for, that I might avoid it?

Member Avatar for dotancohen
0
81
Member Avatar for dotancohen

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.

Member Avatar for dotancohen
0
131
Member Avatar for dotancohen

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.

Member Avatar for keshvari
0
196
Member Avatar for dotancohen

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: …

Member Avatar for dotancohen
0
151
Member Avatar for dotancohen

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.

Member Avatar for dotancohen
0
178
Member Avatar for dotancohen

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 …

Member Avatar for WaltP
0
425
Member Avatar for dotancohen

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.

Member Avatar for dotancohen
0
106
Member Avatar for dotancohen

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.

Member Avatar for Ancient Dragon
0
132
Member Avatar for dotancohen

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 …

Member Avatar for vegaseat
0
200
Member Avatar for dotancohen

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 …

Member Avatar for Mitja Bonca
0
144
Member Avatar for hezechiel

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 …

Member Avatar for nmepntgrm
0
1K
Member Avatar for ispiro

Main is a static method, hence events cannot call an instance of something to call it. So, the answer is no.

Member Avatar for ispiro
0
108
Member Avatar for dotancohen

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 …

Member Avatar for dotancohen
0
146
Member Avatar for 24x24

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 …

Member Avatar for 24x24
0
194
Member Avatar for dotancohen

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, …

Member Avatar for happygeek
0
229
Member Avatar for arjunpk

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]

Member Avatar for dotancohen
0
234
Member Avatar for DaveTran

It looks like you have assignment and comparison in the wrong places in the tertiary operator. Try rewriting that with an if-else.

Member Avatar for DaveTran
0
100
Member Avatar for unclepauly
Member Avatar for unclepauly
0
2K
Member Avatar for AngelicOne

[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.

Member Avatar for ashishkumar008
0
151
Member Avatar for maheshkuma
Member Avatar for dotancohen

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] …

Member Avatar for dotancohen
0
189
Member Avatar for Nick Evan

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 …

Member Avatar for AndreRet
2
435
Member Avatar for dotancohen

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 …

Member Avatar for dotancohen
0
146
Member Avatar for dotancohen

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 …

Member Avatar for dotancohen
0
98

The End.