3,183 Posted Topics
Re: 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 surprised that you're not getting an ambiguity error instead, but a quick fix would be to fully qualify the class: … | |
Re: > 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 Vista (though I seem to be in the minority), but ME and early XP were a bear. Typically best practice … | |
Re: You can check the [compatibility center](http://www.microsoft.com/en-us/windows/compatibility/CompatCenter/Home?Language=en-US) for software and hardware. Incompatible doesn't mean it *won't* work, but it might take some finagling to get it to work. | |
Re: What do you mean by "generate"? Are you trying to write an arbitrary length number library or something? | |
Re: 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 that might confuse the core concepts. Once you have the basics down you can introduce classes to wrap it all … | |
Re: > 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, maybe it won't. Maybe it could lead to disastrous effects. You have to make sure a pointer points to something … | |
Re: > 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`. | |
Re: > 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 in which posts can be edited (and possibly deleted, I honestly can't recall). After that window the post is set … ![]() | |
Re: > 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 no code is needed; changing to a control that's better suited for numbers than a text box could be the … | |
Re: 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. Agile as a whole is good, but there are parts that aren't so good, which is why there are so … | |
Re: > 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. | |
Re: > 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 of teaching a simple rule of the language. | |
Re: > You need an image library. You don't *need* one, but it's strongly recommended given that image processing is rather complex. ;) | |
Re: > 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 I've seen stuff like this in production code? YesNo check = CheckThing(thing); if (check == null) { // Okay, I … | |
Re: Did you add the TASM bin directory to your PATH environment variable? If not, you'll have to navigate to that directory to run edit.exe. | |
Re: > 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 in three big areas: 1. Trying to explain the force. 2. Shoehorning a romance in the unlikeliest of places. 3. … | |
Re: If you don't want to use any .NET languages, then ASP.NET won't be useful to you. There's a little bit of a dependency there. ;) | |
Re: > 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 <stdio.h> int foo() { } int main(void) { printf("%d\n", foo()); return 0; } | |
Re: > 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 class says "*I promise to support at least the definition provided by the interface*". As long as a class implements … | |
![]() | |
Re: The two examples are functionally identical. Which one you'd use depends on which fits better with the rest of the code. | |
Re: As a fresher, take what you can get and build a portfolio of experience. The big bucks come later, regardless of what schools tell you. The days of a noob entering the workforce with an enviable salary are long gone. | |
Re: 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 Foo { private int _bar; public int Bar { get { return _bar; } set { _bar = value; } … | |
Re: 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. | |
Re: 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. | |
Re: > 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 the container's range will produce an exception. Can you clarify what you mean by "bounded"? I'm also not familiar with … | |
| |
Re: 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. | |
Re: > 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 type of data stored by each node. Typically in a well designed list the data is itself a single pointer, … | |
Re: The same way you'd write a file anywhere else. However, the Program Files folder is protected and may not be accessible depending on the user running the application. Impersonating a user with elevated privileges is kind of hairy, so the better approach would be to store your INI files in … | |
Re: [IRC](http://en.wikipedia.org/wiki/Internet_Relay_Chat) is an internet protocol. mIRC is a chat application using that protocol. | |
Re: 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 about your terminology? | |
Re: > What is an interface in C#? [Click Me.](http://msdn.microsoft.com/en-us/library/87d83y5b.aspx) [And me too.](http://msdn.microsoft.com/en-us/library/ms173156.aspx) > How does IList differ from List? `List` is an implementation of `IList`. > Where do we use an interface? That's a harder question. The most basic answer is that you use an interface when you want to … | |
Re: Daniweb is not a homework service. Don't expect anyone to do this for you, or you're sure to miss your deadline. | |
| |
Re: Why exactly do you need this? Unless you're writing a library (in which case a wrapper is the appropriate solution), it's more a matter of careful coding and checking invariants where necessary. | |
Re: > hmm, what's up with the flood of "I wanna be a script kiddie" style posts. To be fair, script kiddies don't care about how it's done, they just want tools to do it so that they can seem like leet hackers. That's why we call them script kiddies; they … | |
Re: I'm not aware of any. However, if you get stuck on a question you can post it here and we'll help you work through it. That would be vastly more instructive than looking it up in an answer book. | |
Re: > Furthermore it's old and unsupported, Where available it's supported, the problem is that it's not always available due to not being standard. > People stopped using it 20 years ago Clearly that's not the case given how often we see it used. ;) > You can also use the … | |
Re: `reader` is an uninitialized local variable. You need to create an object of `DataTableReader` and assign the reference to your variable. | |
Re: Sounds like a high traffic situation to me, either from your end or ours. Daniweb is a rather script-heavy site, which means it's more sensitive to any kind of connection slowness than sites which are more static. | |
Re: > but, THIS IS PRINTING "BITMAP" The principle is the same. You're printing an image, so the image must be drawn. The difference in your case is that you'd be drawing the text inside the grid rather than a screen cap of the grid itself. This requires looping through your … | |
Re: Most likely your code is wrong in one or more places and needs to be fixed. You can expand the Errors tab or the Output tab to view errors and warnings during build. | |
Re: Because Microsoft couldn't reach full conformance in time and they created their own priority list of features (which includes C++14 features) based on what they believe customers want most. | |
Re: > It was everyone else who started taking me seriously :) If it makes you feel better, I never take you seriously. :D | |
Re: > Is it possible to create an encryption algorith using C#? Just to be clear, are you taking about implementing an existing algorithm in C# or inventing a whole new one? Because the latter is strongly not recommended. Not that there's anything wrong with studying modern encryption techniques, but be … | |
Re: > When I run into a problem that seems easy enough that I should be able to solve without much help and I have trouble solving the problem I become disheartened and feel like I shouldnt be programming when fellow programmers are very good with their logic and problem solving … | |
Re: Your `PictureBox` stores an `Image` object, which is not directly compatible with a SQL Server `image` column. What you need to do is convert the `Image` object to an array of bytes for storage: Using ms As New MemoryStream() PictureBox1.Save(ms, ImageFormat.Jpeg) Dim data As byte() = ms.ToArray() ' Save data … |
The End.