Forum: MS SQL 2 Days Ago |
| Replies: 2 Views: 195 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# 4 Days Ago |
| Replies: 6 Views: 243 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++ 4 Days Ago |
| Replies: 4 Views: 156 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# 5 Days Ago |
| Replies: 6 Views: 243 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 5 Days Ago |
| Replies: 2 Views: 175 Looks like code for a PIC (http://en.wikipedia.org/wiki/PIC_microcontroller) microcontroller (http://www.hobbyprojects.com/pic_tutorials/tutorial1.html). |
Forum: C# 6 Days Ago |
| Replies: 6 Views: 199 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# 6 Days Ago |
| Replies: 3 Views: 2,171 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 6 Days Ago |
| Replies: 1 Views: 153 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 6 Days Ago |
| Replies: 1 Views: 132 The simplest hint that actually narrows the range is to tell the user "too high" or "too low" for wrong guesses. |
Forum: C# 6 Days Ago |
| Replies: 6 Views: 199 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 6 Days Ago |
| Replies: 5 Views: 347 Ah, sorry I came in too late... good that you found it, though. |
Forum: Legacy and Other Languages 9 Days Ago |
| Replies: 1 Views: 357 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 9 Days Ago |
| Replies: 3 Views: 274 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 9 Days Ago |
| Replies: 5 Views: 347 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,006 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,006 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: 491 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: 491 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,272 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,006 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: 584 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: 697 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,396 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,226 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,471 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,646 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,893 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,254 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,918 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,636 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,702 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,702 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,702 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 |
Forum: Computer Science Jun 24th, 2004 |
| Replies: 12 Views: 4,800 It's called the Turing test, after Alan Turing.
Here's an article (http://www.kurzweilai.net/meme/frame.html?main=/articles/art0492.html?m%3D19) that may be of interest... I'll throw in a quote... |
Forum: Computer Science Jun 24th, 2004 |
| Replies: 9 Views: 5,146 That sum is a lot more complicated than it has to be. It turns out to be equivalent to sum[k=1..31](256^k). Also, it looks like you've transposed the numerator and denominator in the last step,... |
Forum: Java Jun 24th, 2004 |
| Replies: 1 Views: 2,923 Are you interested in writing the conversion yourself, or do you just need the conversion to happen? These can help:Double.valueOf(String)... |
Forum: C Jun 18th, 2004 |
| Replies: 5 Views: 2,526 There certainly is... Using the library functions as much as possible is good (code reuse, more sleep)--but it can be quite educational to write your own as well. It builds character, puts hair on... |
Forum: Java Jun 17th, 2004 |
| Replies: 4 Views: 13,774 java.awt.GraphicsEnvironment (http://java.sun.com/j2se/1.4.2/docs/api/java/awt/GraphicsEnvironment.html) has what you need:
... |
Forum: C Jun 17th, 2004 |
| Replies: 5 Views: 2,526 The sprintf function (http://www.cplusplus.com/ref/cstdio/sprintf.html) should work for that:
#include <stdio.h>
void Set(char string_time[])
{
sprintf(meridian, string_time);
}
If you... |
Forum: C++ Jun 17th, 2004 |
| Replies: 6 Views: 2,191 Straight GCC doesn't do Pascal as far as I know, but Free Pascal (http://www.freepascal.org/) and GNU Pascal (http://www.gnu-pascal.de/gpc/h-index.html) might do it for you.
Not all Windows... |