Forum: C# 8 Days Ago |
| Replies: 3 Views: 212 Have a look in the System.Net.Mail namespace (http://msdn.microsoft.com/en-us/library/system.net.mail.aspx) in the .NET Framework class library. It provides types you can use to create and send SMTP... |
Forum: Java 12 Days Ago |
| Replies: 2 Views: 289 See this article (http://rosettacode.org/wiki/Huffman_codes) for a quick explanation and some examples.
From the article: |
Forum: Java 12 Days Ago |
| Replies: 1 Views: 128 One way you might approach this problem is to start with a list of fax machines and go through it, removing machines that don't support the request. After that, the only machines left in the list... |
Forum: C++ 12 Days Ago |
| Replies: 3 Views: 165 C is notorious for giving you "enough rope to shoot yourself in the foot"--but it doesn't matter what language you're talking about... if it allows you to define a recursive function, you can always... |
Forum: Assembly 12 Days Ago |
| Replies: 1 Views: 349 As a general recommendation, you should read some technical documentation on the x86 instructions... this page (http://home.comcast.net/~fbui/intel.html) is a good start, but the Intel processor... |
Forum: Assembly 12 Days Ago |
| Replies: 4 Views: 408 Check out Wikipedia's article on the PIC (http://en.wikipedia.org/wiki/PIC_microcontroller#Development_Tools); in particular, gputils (http://gputils.sourceforge.net/) might be a good place to start. |
Forum: Computer Science 12 Days Ago |
| Replies: 1 Views: 317 The standard well-defined approach is to create a parser (http://en.wikipedia.org/wiki/Parsing) for your input language and use it as part of a compiler (http://en.wikipedia.org/wiki/Compiler) that... |
Forum: MS SQL 14 Days Ago |
| Replies: 2 Views: 426 Hi again!
If you're using the same connection string that created the database to send the create table commands, remember there's no database specified on that connection. Once you've created... |
Forum: C# 17 Days Ago |
| Replies: 6 Views: 385 A more detailed description of the problem than "still no luck" would help... is it the same exception or a different one? Exception message and stack trace are both useful. Also, what version... |
Forum: C++ 17 Days Ago |
| Replies: 4 Views: 203 More food for thought... this probably goes beyond your current question, but I think it helps to demonstrate the modelling process:
The unmentioned "Class" object could be the true parent... |
Forum: C# 17 Days Ago |
| Replies: 6 Views: 385 It's not quite the same; Access is a file-based database system, where MySQL is server-based, so you'll need some sort of open connection to the server to do anything useful.
I don't have a... |
Forum: Assembly 18 Days Ago |
| Replies: 4 Views: 408 Looks like code for a PIC (http://en.wikipedia.org/wiki/PIC_microcontroller) microcontroller (http://www.hobbyprojects.com/pic_tutorials/tutorial1.html). |
Forum: C# 18 Days Ago |
| Replies: 6 Views: 273 To clarify, the .NET Framework doesn't provide automatic handling of multiple key presses. You can still handle them yourself.
This is what's keeping your code from working right--when you... |
Forum: C# 19 Days Ago |
| Replies: 3 Views: 2,256 Simple, yes... but not something I'd allow into production code. See these (http://odetocode.com/Blogs/scott/archive/2004/08/20/401.aspx) links... |
Forum: Computer Science 19 Days Ago |
| Replies: 1 Views: 290 Since you can't track a count of zeros and ones in a DFA, try looking at having a state for each possible outcome as you run through the input string--so your states would represent combinations of... |
Forum: C 19 Days Ago |
| Replies: 1 Views: 165 The simplest hint that actually narrows the range is to tell the user "too high" or "too low" for wrong guesses. |
Forum: C# 19 Days Ago |
| Replies: 6 Views: 273 Could you post the code you're using to track key up/down status? That would help us find what's going wrong. |
Forum: Computer Science 19 Days Ago |
| Replies: 5 Views: 452 Ah, sorry I came in too late... good that you found it, though. |
Forum: Legacy and Other Languages 22 Days Ago |
| Replies: 1 Views: 494 No; you're creating a set of simple test data (http://en.wikipedia.org/wiki/Test_data) for the conversion program. A program that generates test data would essentially be the same as the conversion... |
Forum: Assembly 22 Days Ago |
| Replies: 3 Views: 397 Right. store will always refer to the same memory location, so every time you write to it, whatever value was there is overwritten by the new value.
As long as store only points at a single... |
Forum: Computer Science 22 Days Ago |
| Replies: 5 Views: 452 The phrase "fabricated software" doesn't ring any bells for me, but it might refer to component-based software engineering (http://en.wikipedia.org/wiki/Component-based_software_engineering).
It's... |
Forum: C# Sep 10th, 2008 |
| Replies: 8 Views: 2,051 Short answer is no. How will your application know what SQL to send to your database to insert, update, or delete records?
I wish I had a better answer for you, but this is how it works. There... |
Forum: C# Sep 10th, 2008 |
| Replies: 8 Views: 2,051 Ah, yes. The command builder also requires that your SELECT statement return a primary key or unique index.
If your table has either of those, you may be able to get away with simply adding the... |
Forum: C++ Sep 9th, 2008 |
| Replies: 4 Views: 499 The library is documented (http://jcatki.no-ip.org:8080/SDL_net/SDL_net.html) decently from a "what functions are there" perspective.
Good network programming techniques are another topic... |
Forum: C++ Sep 7th, 2008 |
| Replies: 4 Views: 499 You might try SDL_net (http://www.libsdl.org/projects/SDL_net/). It is free and cross-platform, and should cover both of your requirements:
Server detection using UDP to broadcast to the local... |
Forum: C# Sep 7th, 2008 |
| Replies: 1 Views: 2,327 You can't update the database using OleDbDataReader or any other DbDataReader subclass. They provide forward-only, read-only access to data. You need something else.
There's more than one way to... |
Forum: C# Sep 7th, 2008 |
| Replies: 8 Views: 2,051 Looks like you're not generating the update command. It isn't actually created until you call SqlCommandBuilder.GetUpdateCommand()... |
Forum: C# Sep 7th, 2008 |
| Replies: 2 Views: 592 You can't link directly to a COM library; you have to link to a .NET interop library. The VS IDE secretly generates this library for you when you add a COM project reference. Since you're using the... |
Forum: Computer Science Sep 7th, 2008 |
| Replies: 2 Views: 703 If "Poisson RNG" means "pseudorandom number generator that generates Poisson-distributed numbers," you can generate your own from a uniform distribution... |
Forum: Computer Science Jul 20th, 2006 |
| Replies: 1 Views: 4,435 Since you already have the textbook's answers...
They're significant for readability. The book's solution makes it much clearer that both a dog existing and X owning that dog are necessary to X... |
Forum: C# May 15th, 2006 |
| Replies: 1 Views: 11,368 I don't have any code samples handy, but if you'd like to create your files the Cowboy Way, try this introduction to the Microsoft PCM WAVE file format... |
Forum: C Sep 8th, 2004 |
| Replies: 5 Views: 3,491 Correct; hardware interrupt 9h is the keyboard interrupt, and it's possible to use that to get keyboard states. But if you're compiling for Win32, then by all means use the API like bdiamond... |
Forum: C++ Sep 8th, 2004 |
| Replies: 6 Views: 3,662 The second parameter to strcmp up there is actually a pointer--that's half of what an array is, just a location in memory (the other half is the field size, in this case char, to use when making... |
Forum: Java Aug 20th, 2004 |
| Replies: 3 Views: 4,924 It's not okay to have that exception. My "Please Advise" is that you post code so we can at least see what you're trying to do.
Unless you're loading large amounts of data into memory (i.e. more... |
Forum: C++ Aug 20th, 2004 |
| Replies: 2 Views: 2,270 Well, here's an easy one--you've spelled a method two different ways (the first is correct):
Also, it won't compile until you actually define a body for that method like you did for... |
Forum: C++ Aug 16th, 2004 |
| Replies: 6 Views: 2,938 Have a look at SDL (http://www.libsdl.org/index.php)--it's pretty nifty. |
Forum: Computer Science Jul 12th, 2004 |
| Replies: 13 Views: 4,655 Definitely. Programming is basically an engineering discipline, but a programmer is closer to an interpreter or translator than any other kind of engineer. Sure, you can get the job done sitting in... |
Forum: Java Jul 12th, 2004 |
| Replies: 8 Views: 4,720 Another way to approach your switch statement is to convert the string to a number first, then use the number in the switch. The Integer class... |
Forum: Java Jul 12th, 2004 |
| Replies: 8 Views: 4,720 With some languages, it may depend on the compiler as well. Shortcutting an operation like that can be considered an optimization; I've heard of compilers (can't think of any off the top of my head... |
Forum: Java Jul 12th, 2004 |
| Replies: 8 Views: 4,720 An expression in a switch statement can be any of these: int, short, byte, or char. red_evolve is basically correct, though, since they're all integer types under the hood.
--sg |