3,183 Posted Topics

Member Avatar for endlessdesert

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

Member Avatar for deceptikon
0
349
Member Avatar for codeks

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

Member Avatar for Reverend Jim
0
126
Member Avatar for dwililo

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.

Member Avatar for Scotthiggins
0
301
Member Avatar for hydra.p

What do you mean by "generate"? Are you trying to write an arbitrary length number library or something?

Member Avatar for Scotthiggins
0
110
Member Avatar for justugas

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 …

Member Avatar for deceptikon
0
252
Member Avatar for kamlesh malav
Member Avatar for Yahia Farghaly

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

Member Avatar for Yahia Farghaly
0
340
Member Avatar for Blueie

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

Member Avatar for deceptikon
0
372
Member Avatar for BingityBongity

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

Member Avatar for diafol
0
253
Member Avatar for NewCoder_31

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

Member Avatar for NewCoder_31
0
209
Member Avatar for tortillisgroup

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 …

Member Avatar for Hiroshe
0
132
Member Avatar for Kevin_11

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

Member Avatar for pritaeas
0
158
Member Avatar for theashman88

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

Member Avatar for deceptikon
0
315
Member Avatar for cambalinho

> You need an image library. You don't *need* one, but it's strongly recommended given that image processing is rather complex. ;)

Member Avatar for mike_2000_17
0
558
Member Avatar for ogsirus

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

Member Avatar for deceptikon
0
235
Member Avatar for lalitha2294

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.

Member Avatar for tien.nguyen.3532507
0
1K
Member Avatar for mattster

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

Member Avatar for mattster
0
359
Member Avatar for Jack_9

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. ;)

Member Avatar for geniusvishal
0
336
Member Avatar for iqra aslam

> 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; }

Member Avatar for iqra aslam
0
149
Member Avatar for iConqueror

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

Member Avatar for deceptikon
0
299
Member Avatar for iamthwee
Member Avatar for ddanbe

The two examples are functionally identical. Which one you'd use depends on which fits better with the rest of the code.

Member Avatar for JOSheaIV
0
144
Member Avatar for morfious90

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.

Member Avatar for janeleonard
0
407
Member Avatar for iConqueror

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; } …

Member Avatar for deceptikon
0
125
Member Avatar for Moaid

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.

Member Avatar for deceptikon
0
137
Member Avatar for gerard4143

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.

Member Avatar for deceptikon
0
163
Member Avatar for aluhnev

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

Member Avatar for Hiroshe
0
644
Member Avatar for example868
Member Avatar for kwikemarket

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.

Member Avatar for deceptikon
0
86
Member Avatar for Gunjan Rathi

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

Member Avatar for deceptikon
0
218
Member Avatar for xn hunk

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 …

Member Avatar for cgeier
0
475
Member Avatar for singlin
Re: IRC

[IRC](http://en.wikipedia.org/wiki/Internet_Relay_Chat) is an internet protocol. mIRC is a chat application using that protocol.

Member Avatar for singlin
0
89
Member Avatar for Gunjan_1
Member Avatar for Muhammad Saqib

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?

Member Avatar for deceptikon
0
286
Member Avatar for iConqueror

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

Member Avatar for BMXDad
0
206
Member Avatar for davin_six

Daniweb is not a homework service. Don't expect anyone to do this for you, or you're sure to miss your deadline.

Member Avatar for NathanOliver
0
64
Member Avatar for mahrukhbalouch
Member Avatar for ddanbe
0
84
Member Avatar for ddanbe

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.

Member Avatar for ddanbe
0
188
Member Avatar for Deep Modi

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

Member Avatar for Deep Modi
0
272
Member Avatar for yapkm01

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.

Member Avatar for deceptikon
0
72
Member Avatar for EarhawkPH

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

Member Avatar for Hiroshe
0
252
Member Avatar for ahudson

`reader` is an uninitialized local variable. You need to create an object of `DataTableReader` and assign the reference to your variable.

Member Avatar for deceptikon
0
272
Member Avatar for mechbas

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.

Member Avatar for deceptikon
0
190
Member Avatar for hhm_pro992

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

Member Avatar for ddanbe
0
1K
Member Avatar for rela

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.

Member Avatar for NathanOliver
0
705
Member Avatar for Sarkurd

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.

Member Avatar for Sarkurd
0
1K
Member Avatar for Dani

> It was everyone else who started taking me seriously :) If it makes you feel better, I never take you seriously. :D

Member Avatar for Dani
0
501
Member Avatar for iConqueror

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

Member Avatar for Hiroshe
0
300
Member Avatar for iConqueror

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

Member Avatar for tinstaafl
0
256
Member Avatar for dennis.acquah1

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 …

Member Avatar for Reverend Jim
0
212

The End.