Search results

  1. N

    the red pill or the blue pill?

    Since you ask, try the red pill http://www.invisiblethings.org/papers/redpill.html
  2. N

    Atom + GMA 3150 for video playback?

    How well does it work? Can it decode (non-HD) AVI's & DIVX's without choppy playback? What about DVD content?
  3. N

    Can anyone recommend a good electric, cordless lawnmower?

    I considered a battery powered lawnmower but ended up buying a gas powered. I have about 2.000 square meters, and nothing on the market could do that in less than three or four charges - and extra batteries cost as much as the mowers.
  4. N

    Help understanding C program

    After fixing your compiler error, it runs fine for me (VS2005). But the code you posted doesn't compile. Are you sure this is what you've tested? Also, what compiler & platform?
  5. N

    VMware Workstation: Do you use it? What do you think of it?

    I use VirtualBox for VM's. It's pretty good, and free.
  6. N

    Help understanding C program

    Why don't you post the code with memcpy which doesn't work?
  7. N

    need some C++ help

    That actually compiles? Your functions don't match your prototypes, and C++ really shouldn't allow you to assign an int to an int*. It's not crashing because the size is incorrect (although it is), because you never read from the array. I'd start by writing just one of the cases (say the...
  8. N

    Output to a file using C

    Test the return value of fopen and fprintf. If either of them fail, check the global errno or your system's equivalent after the step that fails. Test with a full path to see if the working directory is wrong.
  9. N

    Execute disable bit

    My Computer->Properties->Advanced Settings->Advanced->Performance->Data Execution Protection ...and it's default OFF.
  10. N

    Intel: 'EUV Facts Don't Add Up' for 22 nm in 2011

    Ibms revenue 08Q1 was 24 billion, Intels 9.7 Ibms net income 08Q1 was 2.4 billion, Intels 1.4
  11. N

    Writing program to handle extra mouse functions

    Sorry, I got it mixed up. The method's called SendInput, you can use it both for mouse and keyboard
  12. N

    Writing program to handle extra mouse functions

    Very litte of this is in fact true. You can create an app to run in the background or from the tray and intercept all keyboard and mouse events before they're sent to the app with focus, with SetWindowsHookEx like DaveSimmons suggested. I don't really know about mice, but keyboards will...
  13. N

    What's the proper way to clean up this type of memory allocation (C++)

    Neither of your types has constructors or destructors, so it's really quite simple, and doesn't work any differently than malloc and free. When memory get allocated, your program gets an address followed by a chuck of memory. The size of this chunk is determined when you call new. Calling...
  14. N

    Detect multi-core with VB 2005

    http://msdn2.microsoft.com/en-us/library/aa394373.aspx There's some VB script examples at the bottom of the page. Look at NumberOfCores.
  15. N

    Visual Studio 2008 Express Edition

    It sounds a bit like you're implying that VS only does .NET. I program C++ all day long, in Visual Studio.
  16. N

    C++ for loop help

    x gets overwritten. The for loop doesn't declare a new variable ( or it would have looked like: for(int x... ). Another note on style: in c++, use for(x = 0; x < 20... rather than x = 1; x <= 20.
  17. N

    I'm into networking/network security. Which language is good to complement that?

    For networking, I'd learn whatever shell script language your platform supports - i.e. batch/bash etc. Don't try to code an SMTP server for the next few years.
  18. N

    C++

    that only works if i > 0
  19. N

    programming help (typedef, c, list, pointers, syntaxt probems likely)

    if (position<=a->num+1 && position>0) num isn't initialized, you should set it to zero. The next error occurs in addr, tmp=a->bot; sets tmp to NULL, since thats the initial value of bot, so tmp=tmp->next; will crash. You also seem to be mixing zero and one-indices, you're not allways setting a...
  20. N

    programming help (typedef, c, list, pointers, syntaxt probems likely)

    Post your new code - WITH comments about what each block of code and function is supposed to do, and please rename your variables to something sensible. If we're going to wade through your code, it will be a lot easier if we don't have to guess everything.
  21. N

    programming help (typedef, c, list, pointers, syntaxt probems likely)

    Use code tags. - EDIT - OK, so don't use code tags, they don't seem to work - END EDIT - Comment your code. If you'd indented your code propery, you'd see that your braces don't match. Name your variables something sensible. READ the compiler errors - "list2.c:9: error: parse error...
  22. N

    Exchange Server message storage location?

    I think you can change it, mine are in Program Files\Exchsrvr\MDBDATA\ (mail are stored in one edb file, i believe. This may differ if you have another version of Exchange). I don't think you can open the files directly, just configure a client to connect to each account, or grant one account...
  23. N

    Vector casting help

    did you mean to do subvector.push_back( superclass ); right below subvector.push_back( subclass ); ? because there's only one item in the vector
  24. N

    Question about malloc/free

    depends on the os... but yes if it's fairly new (i.e. win9x might not)
  25. N

    mySQL beginner help!!

    If you have 1000 albums made by 50 artists, it's more efficient to scan the 50 item artist table (especially if you want to do free-text or LIKE queries) than the 1000 item album table. Same goes for genre. As pointed out earlier, this also makes it a lot easier to have consistent naming of...
  26. N

    mySQL beginner help!!

    That's not precisely what I mean. Are they different as in do they contain different kinds of data? From your description, they don't seem to do so. What I mean is that a specific identifier in the GenreID column means the same thing as the same identifier in the AlbumGenreID column. The...
  27. N

    How do you setup mouse-overs?

    Just select "All file types" (or whatever it reads in english) type filename.html in the name box. Well, that's completely wrong, so no surprise there. No, leave the # Yes, but you'd have to do that substitution in all three places it occurs. Double-click the HTML file. It should open in...
  28. N

    access SQL help desperatly needed

    The easiest way would be to refactor into something like: tblPeriods (or whatever) iEmployeeID (i assume you already have something like this) iPeriodID (1-5 goes here, instead of a P1, P2, P3 etc. column each) iPercent (where the data goes) This query is totally of the...
  29. N

    mySQL beginner help!!

    This combination looks a little odd. What does the last table contain that isn't contained in the first? Is GenreID and AlbumGenreID diffrent? Why?
  30. N

    C++ Programmers...

    I see something like this fairly regularly: class Foo { ... }; class Bar { public: Foo m_Foo; }; class Baz { public: Foo m_Foo; }; .... // do this for all Bars for(int i = 0; i < arrBars.GetSize(); i++) arrBars.GetAt(i)->m_Foo.DoStuff(); // do this for all Bazs...
  31. N

    cant figure out how to enter bios

    Some motherboards have a jumper you need to set to be able to enter BIOS, but I'd say it's a long shot on a laptop.
  32. N

    How do you setup mouse-overs?

    You can view HTML from your local computer... just remove the http:// in the source references and put the names of your images there instead, put <HTML></HTML> around it, and save it as .htm or .html in the same directory as the pictures, double-click to open in a browser, and you should be...
  33. N

    C++ Programmers...

    I missunderstood the term function overloading, sorry (English isn't my first language). Just move this to inheritance then. Function overloading can still be usefull though, but it seems most of the time it's used templates would have been a better way. Yes, it can. It can also be a...
  34. N

    Outlook question

    Tools - Accounts - View or change accounts - select account - there's a drop-down box which says something like 'deliver new mail from this account to:' and you can select a folde. My system isn't running english so I might be off with the option names.
  35. N

    C++ Programmers...

    After writing this, I realized that it became more of a rant about common complaints about C++ than an on-topic reply to the OP's questions. Sorry for derailing the thread. One tends to see a lot of critisism of C++'s more powerful features. Here's my take on a few of them, and a few of the...
  36. N

    Windows audio service keeps shutting off

    Happens to me every few days too (I have onboard AC'97), but I can just start the service again.
  37. N

    ASP problem with upload

    You need to post your code. The file could be open (or you could inadvertedly try to open it several times), you may not have specified create and the file does not exits, or the file exists and is write protected, or NAV or similar softwar may be blocking access to underlying calls.
  38. N

    ASP problem with upload

    It would help to know what database you're using, but make sure the date format in windows locale settings (I don't know where you'd find the equivalent in *nix) are set to ddmmyyyy, or, if the DB server has it's own settings for date format. Otherwise, try entering the date in ISO 8601...