Search:

Type: Posts; User: DanMan

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    1,277

    A WM_MOUSEMOVE message should be sent to the...

    A WM_MOUSEMOVE message should be sent to the control that the mouse is over in the case you're describing.... remembering, Windows controls are actually windows themselves...

    I'm not sure how you...
  2. Replies
    4
    Views
    2,404

    Well, time-limited software these days is...

    Well, time-limited software these days is (usually) much more difficult to crack for the reason you just said: encryption (usually of the actual executable file, which is wrapped in a special program...
  3. Replies
    3
    Views
    1,298

    Ok, this is WAY off. There are quite a few...

    Ok, this is WAY off. There are quite a few errors. First, this:

    // loop until you reach last node in list
    while(tempptr != NULL) {
    tempptr->value; //UNNECESSARY
    tempptr = tempptr->next;
    ...
  4. Replies
    4
    Views
    2,404

    Thanks, but I'm not really looking to just reuse...

    Thanks, but I'm not really looking to just reuse some else's code or library, I'm really more interested in creating my own and learning about some of the methods that you can use to achieve this,...
  5. Replies
    4
    Views
    2,404

    Creating Demo Software?

    Anyone have any links to information on coding "time-limited" trial applications? I've got several programs that I would like to make demo's of that function for like 15 days or so, but I'm not...
  6. Replies
    5
    Views
    1,414

    >>>printf("%d",b) ,b=b+1, if (b>8)b=1 ,c=c+1; ...

    >>>printf("%d",b) ,b=b+1, if (b>8)b=1 ,c=c+1;

    I see a HUGE problem with that line. This program shouldn't even compile (I'm guess it doesn't, and that's your problem). You've got to separate...
  7. Replies
    17
    Views
    6,606

    >>>If close() truly isn't a member function...

    >>>If close() truly isn't a member function ifstreams then calling close() could cause the stream to fail and remain unavailable until the the stream is "cleared" with clear().

    First, close() is...
  8. Replies
    5
    Views
    1,088

    total += i is the same as total = total + i...

    total += i

    is the same as

    total = total + i

    It's just one of those short-hand things that makes life easier. You can use that "trick" for any normal operator, like:

    total -= i; (total =...
  9. Thread: Logging IP's

    by DanMan
    Replies
    2
    Views
    2,032

    I had thought about doing that, but as you said,...

    I had thought about doing that, but as you said, there's that nasty delay which could potentially count someone every time they visited for that first day, which just isn't feasible with a counter. ...
  10. Thread: Logging IP's

    by DanMan
    Replies
    2
    Views
    2,032

    Logging IP's

    I've created a C++ web counter that only counts unique hits. To do this, I've created a structure called IPStruct:

    IPStruct {
    unsigned char ip1;
    unsigned char ip2;
    unsigned char ip3;
    unsigned...
  11. Replies
    5
    Views
    1,485

    That's a good idea, I hadn't thought about...

    That's a good idea, I hadn't thought about that...

    I think I'm going to go a different route for this counter though. The script was going to truncate (clear out) the IP log file every day. ...
  12. Replies
    5
    Views
    1,485

    I'd thought of that, but there's still the...

    I'd thought of that, but there's still the problem of file-locking. This file is a sorted file containing structures (representing IP addresses). This program is a web counter written in C++. ...
  13. Replies
    5
    Views
    1,485

    Deleting contents of already opened file?

    Is there anyway to delete (truncate) the contents of a file that's already attached to a stream object, like fstream or ifstream? I could do it by closing the file and reopening it with ios::trunc...
Results 1 to 13 of 13