-
Replied To a Post in Bool statement for dataGridView
I'm not entirely sure I understand the problem. A `bool` property will display appropriately as a checkbox by default in a `DataGridView`. So you'd add such a property: bool Availability … -
Replied To a Post in rand and srand
> @deceptikon, is that still the case on most modern implementations? Yes. In the past the biggest problem with modulo (where small ranges were concerned) was an artifact of low … -
Replied To a Post in rand and srand
> In the program below what is the difference between rand and srand? `rand` generates a pseudorandom number. `srand` seeds the generator that `rand` uses. The seed essentially determines what … -
Replied To a Post in 'System.Windows.Controls.Image' does not contain a definition for 'FromFile
It looks like the compiler is interpreting `Image` as `System.Windows.Controls.Image` rather than `System.Drawing.Image`. The error is correct in that the target class doesn't have a `FromFile` method. I'm a bit … -
Replied To a Post in Color Code
Wires with the same base color are paired, so it makes sense to distinguish them somehow as pairs. They can't both be a solid color or you'd confuse them on … -
Replied To a Post in How To Implement Tree in C++??
The article I linked to covers that, and followup articles cover balancing techniques. The problem with Knuth is that it uses a home grown assembly language for code examples. I … -
Replied To a Post in How To Implement Tree in C++??
There are a number of ways to go about it, but I'd suggest starting simple. [This is an article](http://eternallyconfuzzled.com/tuts/datastructures/jsw_tut_bst1.aspx) that cuts right to the chase and doesn't include any fluff … -
Replied To a Post in linked lists
Vague much? -
Replied To a Post in Error msg with 'string'?
Your methods must be wrapped in a class: public class Connection { public static string GetConnString() { return WebConfigurationManager.ConnectionStrings["MyConnectionString"].ConnectionString; } public static void InsertUser(string name, string pass, string email) { … -
Replied To a Post in Error msg with 'string'?
> Not sure about the namespace. You don't need a namespace, but you must have a class. C# has no concept of top level methods or fields, they're all members … -
Replied To a Post in generating
What do you mean by "generate"? Are you trying to write an arbitrary length number library or something? -
Replied To a Post in Error msg with 'string'?
> but neither seem to be working for me. On a side note, `String` and `string` are equivalent. `string` is a keyword alias for `System.String`. -
Replied To a Post in extra hard drive suggestions
> The answer to that question is: "It's usually advertised with the hdd itself. Advertised poorly. Manufacturers tend to advertise in increments of 1000 rather than 1024, so a 1GB … -
Replied To a Post in How is the best?
> I have my own reasons for using the latest revision though. I'm usually curious to see what the differences are, and I like the feeling of "being up to … -
Replied To a Post in Difference between char* and char []
> Never assign raw data directly to an uninitialised pointer. If done so, where would the pointer point to? Where will the raw data be stored? Maybe it will compile, … -
Replied To a Post in Please delete my post
> Why doesn't the user have the option of deleting his own post?? Because there's a strong risk of breaking thread continuity. Users have a window of time after posting … -
Replied To a Post in Auto-convert numeric value with 2 decimal places
> Is this possilbe guys? Yes. > Help here will be highly appreciated It's difficult to help without knowing what language or GUI library you're using. It's entirely possible that … -
Replied To a Post in How is the best?
> and to make sure that everything works with the latest revision Windows ME. Windows Vista. The first incarnation of Windows XP. ;) I personally didn't have any problems with … -
Replied To a Post in Using the word base as a variable problem
> Perhaps part of the lesson to be learned from your assignment is about the case-sensitivity of C#. I sure hope not, because that'd be a cruel and stupid way … -
Replied To a Post in StackOverflow stole all our search traffic!
For what it's worth, I'm sorry for the heartache we caused you even though my opinion on it hasn't changed. IIRC, I was one of the loudest voices in opposition … -
Replied To a Post in C\C++11 - image class
> You need an image library. You don't *need* one, but it's strongly recommended given that image processing is rather complex. ;) -
Replied To a Post in Scrabble
rear -
Replied To a Post in What would you recommend?
> Problem is I've never used a pre-designed CMS system... are they are fairly easy to setup, configure, and use? A lot easier than writing one, I assure you. -
Replied To a Post in what is this doing?
> in that instead of an else {} it uses a test for not-null, after it already did a test for null of the interface object Would you believe that … -
Replied To a Post in StackOverflow stole all our search traffic!
> With real discussion communities, rewriting posts is completely frowned upon to the point of being insulting. Community members don't appreciate having words put in their mouth or having what … -
Replied To a Post in Agile Development
I agree or disagree depending on what agile components you think are effective. ;) Sprints and stories, awesome. Pair programming, hit or miss. TDD, weak at best in my experience. … -
Replied To a Post in returning value from function
> if we don't use return then there is no value returned to the function? It's not quite that simple. For extra credit, try to explain what's happening here: #include … -
Replied To a Post in Interface referencing
> Why do we use interface references to call methods of an object? For the most part it's a poor man's polymorphism. An interface is a contract where the implementing … -
Replied To a Post in Basic if statement question
The two examples are functionally identical. Which one you'd use depends on which fits better with the rest of the code. -
Replied To a Post in why do we use private fields
Because if the fields are public, users of the class have unrestricted access to them. Exposing fields through properties introduces a controlled interface. Presumably your question is about this: class … -
Replied To a Post in microsoft visual studio problem
Most likely the [desktop version](http://www.microsoft.com/en-us/download/details.aspx?id=40787) of Visual Studio 2013 Express is what you want. -
Replied To a Post in utf8 and Unicode
Let's first differentiate Unicode and UTF-8. UTF-8 is an encoding technique for Unicode code points. So you can break the problem down by removing the encoding aspect and only thinking … -
Replied To a Post in utf8 and Unicode
I'm not sure I understand the question. Upper and lower case glyphs have a unique encoding, they're independent of each other in the same way digits and letters are. -
Replied To a Post in Bounded array
> Bounded array means static it it? "Bounded" typically means one of two things: 1. The size of a container is fixed and cannot change. 2. Accessing indices outside of … -
Replied To a Post in windows product key problem
Your company's IT department will have either an installation disk or a repair disk for your computer. The former requires a product key that the same department will have, though … -
Replied To a Post in Star Wars: Episode 7
> I don't think that the choice of Padme as the "lucky lady" was inherently bad. Not inherently, but very poorly executed. ;) > This is slightly off topic but … -
Replied To a Post in Star Wars: Episode 7
> Well, the problem is that they needed to create this very critical romance between Anakin and Padme in order to get Luke and Leia conceived. So, you can't blaim … -
Replied To a Post in Star Wars: Episode 7
> 1)They didn't too bad... but yes they could explain more like they do in their video games. Or they could not explain it. That's a *huge* problem with sci-fi … -
Replied To a Post in Star Wars: Episode 7
> But OTOH they can't be worse than the prequels. O ye, of little faith. It could be *much* worse than the prequels. In terms of suckage, the prequels failed … -
Replied To a Post in Win 8 or win 7
> windows 8 about to die. Please elaborate. -
Revoked Solved Status for c++ write and read() functions usage in files
how can we use write and read functions in files and why we use these function because i have already get put or cin cout available. -
Marked Solved Status for c++ write and read() functions usage in files
how can we use write and read functions in files and why we use these function because i have already get put or cin cout available. -
Replied To a Post in Help to use Daniweb
http://www.daniweb.com/home/tos http://www.daniweb.com/community/rules Each forum may have stickies at the top with specific guidelines for posting within that particular sub-community. -
Replied To a Post in sorting a link list
> What I did was to put the nodes into an array, and then use qsort to sort the nodes, and finally to re-construct the linked list with the sorted … -
Replied To a Post in IRC
[IRC](http://en.wikipedia.org/wiki/Internet_Relay_Chat) is an internet protocol. mIRC is a chat application using that protocol. -
Replied To a Post in How Udate GridView record Plz tell me Code
Just for clarification to respondants, `GridView` and `DataGridView` are not synonymous. OP, can you specify whether you're using WinForms, WPF, or ASP.NET such that helpers don't need to make assumptions … -
Replied To a Post in sorting a link list
> Our teacher said that swapping data of nodes is not an efficient method. That's an unfair statement by your teacher. Pointer surgery may be less efficient depending on the … -
Replied To a Post in Starting " C "
> Hey C is not used so much now a days. But it is a mother language. It's probably used more than you think. ;) Also, C is closer to … -
Replied To a Post in how to write to fil in program folder in VB.net?
> If you don't need to run your program on XP, you can use: Allow me to show you a way to avoid OS dependencies through a standard enumeration: [Click … -
Replied To a Post in convert cin,cout into scanf and printf
> printf("%c occurs %d times in the entered string.\n",c+'a',count[c]); > what is its cout statement cout << (c + 'a') << " occurs " << count[c] << " times in …
The End.