CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: rdrast

Page 1 of 5 1 2 3 4

Search: Search took 0.11 seconds.

  1. Replies
    11
    Views
    2,188

    Re: double to int issue. losing a penny

    Honestly, you shouldn't use ANY approximate data type (floating point) when dealing with money. Double's are still floating point numbers.

    For any financial calculation, you should use a fixed...
  2. Re: Get files from other computers on wireless network

    You don't have to make anything.
    Just use your operating system.
    Done.
  3. Re: need help calculating vat from multiple array items

    Also, for finding your min and max, you should (as you do) initialize max to 0, but you should initialize min to a number greater then the maximum permissible cost (score?).

    As well, you probably...
  4. Re: Is Visual Studio's 2008 Professional compadible with Windows 7

    Uhhh...
    #include <string>

    Perhaps?
  5. Thread: Weird average

    by rdrast
    Replies
    5
    Views
    1,215

    Re: Weird average

    You never assign anything to 'average'. It's just trash on the stack.
  6. Thread: Code

    by rdrast
    Replies
    2
    Views
    1,018

    Re: Code

    That define is just idiotic, and will only cause hurt to you if you use constructs like that.

    Make a function, you have examples.



    float Volume_Sphere( float radius)
    {
    Do something with...
  7. Replies
    4
    Views
    1,256

    Re: USB programming back and forward button

    Start with the hardware.

    See here for examples.
    http://www.lvr.com/usb_device_hardware.htm
  8. Replies
    6
    Views
    1,679

    Re: Download the contents of a URL.

    Use (or take a look at the source code of) wget. There is a Windows version.
  9. Replies
    7
    Views
    2,302

    Re: Registry vs Startup menu

    I don't know your program. It could be any dependency, that is not properly trapped.
    For example, under Windows XP, the network might not actually be started until long after the user is logged...
  10. Replies
    3
    Views
    1,962

    Re: compiling errors

    Start Here... To get some ideas how rand() actually works and how to use it...
    http://www.eternallyconfuzzled.com/arts/jsw_art_rand.aspx
  11. Replies
    2
    Views
    1,552

    Re: Creating setup file

    Well, first of all, you CAN NOT deploy any of the Debug libraries or DLL's, so start with a release build.

    You might want to take a look at Innosetup - http://www.jrsoftware.org/isinfo.php
  12. Thread: VLC Lib

    by rdrast
    Replies
    1
    Views
    4,284

    Re: VLC Lib

    Here?
    http://www.videolan.org/vlc/

    You can at least get the source code for the player there.
  13. Replies
    5
    Views
    1,478

    Re: Store Configuration

    I like TinyXML myself, but generally I just use the ol' 'Ini' file format type thingy for configurations.

    It's simple and easy to edit with any old text editor.

    Writing configurations to the...
  14. Replies
    10
    Views
    1,379

    Re: Program help please!

    Well, looks like:
    0-499 miles, -> 1
    500-999 miles -> 2
    1000-1999 miles -> 3, etc.

    Multiply your 'Weight Rate' by your 'shipping distance value' (1, 2, 3, ... above).
    Show result. Done.
    ...
  15. Replies
    2
    Views
    5,120

    Re: Permission Denied in Windows Vista...

    No. The fact that it was 'Still Running' in the background implies that it has either crashed, or gotten into an infinite looping state. If it terminated properly, it would not still be 'running in...
  16. Replies
    2
    Views
    748

    Re: Windows vs Linux execution speed.

    Wide open field there.
    It could be anything from hardware, to cables, to configurations, to having 'Auto-negotiate' turned off somewhere to the protocol stack, to memory, to ... well, you get the...
  17. Replies
    7
    Views
    2,302

    Re: Registry vs Startup menu

    It shouldn't matter unless you have some weird dependancy, "Run" key registry entries "In General" start before the Startup Programs folder is processed, but that can by changed or bypassed.

    There...
  18. Thread: outlook 2007

    by rdrast
    Replies
    8
    Views
    1,521

    Re: outlook 2007

    Uhhh, open a freemail disposable account somewhere? yahoo, hotmail, etc?
  19. Replies
    2
    Views
    3,195

    Re: ECDSA using Visual C++ 6.0

    Google, is, as usual, your friend.
    http://www.cryptopp.com/
  20. Replies
    13
    Views
    7,254

    Re: Experienced Java coder now using Vis C++

    I just want to know how you are even attempting to "Run Java programs inside of C"...
    What, you dropped your Java code into an editor window and tried to build it?
  21. Replies
    8
    Views
    7,022

    Re: HELP -> File I/O

    That's not exactly creating your own file system though...
    For your own FS, you would need to first come up with a physical storage method, including directories and allocations on disk, then write...
  22. Replies
    9
    Views
    3,275

    Re: Reading large text files

    I'd suggest you just glance through this tutorial on text editors...
    http://www.catch22.net/tuts/neatpad/1
  23. Thread: String Copy

    by rdrast
    Replies
    7
    Views
    878

    Re: String Copy

    While that almost looks like a placement new (which I doubt you want) initially, what it is actually doing is tossing away your pointer to the:
    new char[10]

    and assigning pB to point to the...
  24. Replies
    7
    Views
    774

    Re: Is this possible with C?

    The Atari 2600 console system permitted an absolute maximum of 6KB in a ROM cartridge. Eventually that ceiling was broken to some degree by using bank switching in 4K blocks to swap in and out...
  25. Replies
    2
    Views
    1,452

    Re: Strange behaviour of RWTime class

    Remember, that in the US, DST Start/End has become completely arbitrary, and at the mercy of the "Career Politicians" in DC primarily, and the "Career Politicians" locally in some few cases, where it...
Results 1 to 25 of 109
Page 1 of 5 1 2 3 4





Click Here to Expand Forum to Full Width

Featured