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

Search:

Type: Posts; User: *io*

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    425

    Re: rand() & Microsoft ??!!!

    Your passing '&pass' (the address of the pointer) as opposed to 'pass' which is the pointer to the data.


    void GeneratePass( const char* passPath, size_t units ){

    std::ofstream passFile;
    ...
  2. Replies
    9
    Views
    1,715

    Re: Why "sizeof" is an operator, not a function?

    http://www.research.att.com/~bs/bs_faq2.html#overload-dot
  3. Replies
    84
    Views
    11,148

    Re: Loop problem: CPU usage

    Chris (dude_1967),

    Is the above post equally applicable to a linux environment not compiled with real-time support?

    Kind Regards
    Chris
  4. Thread: Fun C++ Problem

    by *io*
    Replies
    68
    Views
    34,996

    Re: Fun C++ Problem

    Can you insert a character? or is it only replace.
  5. Replies
    4
    Views
    633

    Re: enum on database and in combobox

    comboBox1.Items.AddRange(Enum.GetNames(typeof(YOUR_ENUM_TYPE)));


    Should give you a route to try...
  6. Replies
    7
    Views
    1,024

    Re: BeginInvoke / Updating Controls

    private void UpdateProgressBar(int iCount)
    {
    BeginInvoke((MethodInvoker)delegate()
    {
    // This runs on the UI thread!
    progressBar.Value = iCount;
    });
    }
  7. Replies
    5
    Views
    615

    Re: how to start games

    What I mean is that the process you are starting will use the parent process working directory unless you specifically specify it and if the program starting the process is not in the same directory...
  8. Replies
    5
    Views
    615

    Re: how to start games

    When you make this call

    System.Diagnostics.Process.Start(@"path");

    what is the current working directory?
  9. Thread: gray to rgb

    by *io*
    Replies
    7
    Views
    1,497

    Re: gray to rgb

    I'd look at the intensity of each pixel in the gray scale image before and after the filter and apply this ratio to the intensity of each pixel in the rgb image.

    Only a suggestion but I believe it...
  10. Thread: problem in loop

    by *io*
    Replies
    18
    Views
    1,116

    Re: problem in loop

    First off strlen requires a null terminated string

    when you call



    hash1[strlen(hash1) - x] = challengeConcat[y];


    and x = 0 the null termination will be over written. From then on i...
  11. Re: Convert from unsigned short to double and back again

    Good point. I stand corrected.
  12. Re: Convert from unsigned short to double and back again

    If you presume your number will always be positive then



    unsigned short x = 10;

    double y = x;

    unsigned short z = (unsigned short)(y+0.5);
  13. Re: Convert from unsigned short to double and back again

    Is there also the possiblilty that the double will see it as 9.99999999999 and therefore when you convert from the double to int you'll get z = 9. The safest bet here would be to round your answer...
  14. Re: Porting from VC6 to Linux Fedora core 5 problem

    i'd suspect right


    mName= new char[strlen(imgname)+1];
    strcpy(mName,imgname);
    mName[strlen(imgname)] = '\0';

    strlen returns number of char without null termintor...
  15. Replies
    3
    Views
    514

    Re: Reuse Panel in Another Form

    1 possible solution would be to use a completely seperate form with this panel instead of a panel within the calling form. You could then set the FormBorderStyle to none and just show and hide the...
  16. Replies
    6
    Views
    509

    Re: Have a look at this simple DateTime example

    You need to make a call to unmanaged code to get greater than 15ms resolution. The tickcount you was using was based on windows rather than the cpu...



    using System;
    using...
Results 1 to 16 of 16


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center