Search:

Type: Posts; User: Benji Wiebe

Page 1 of 3 1 2 3

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    2,361

    How? Looked on wikipedia, did not make sense.

    How? Looked on wikipedia, did not make sense.
  2. Replies
    10
    Views
    2,361

    Thanks. I will probably do that. Not sure......

    Thanks. I will probably do that.
    Not sure... someone else's reply might be better. This is only my first C++ program. I have programmed in C and Java ( Got really good at Java! ) and that's why I...
  3. Replies
    10
    Views
    2,361

    Constructor calling constructor: SIGSEGV

    I have a class with two constructors, one constructor has no arguments, the other constructor has one argument. The constructor with no arguments calls the other with a default argument. The issue...
  4. Replies
    4
    Views
    7,191

    I found this too, but I was a little hesitant to...

    I found this too, but I was a little hesitant to use it. I guess I will try that. One thing... Whats the code required to just handle files dropped on the program window from windows explorer (C++)?
  5. Replies
    4
    Views
    7,191

    Simple Drag-and-Drop in Windows with C

    How can I do simple drop handling in Windows? I only need to handle dropped text and files. It needs to be in C.
    Any help will be appreciated.
  6. Replies
    11
    Views
    2,154

    How about a "good" white-list web filter that has...

    How about a "good" white-list web filter that has a list of domains that no-one can go and edit any time they feel like it?
  7. line 233: next=next->ptrR; next->ptrR is NULL....

    line 233: next=next->ptrR;
    next->ptrR is NULL. You can not assign NULL to a pointer (as in the next line)
    and expect to use the NULL pointer without crashing your program.
  8. Did you mean this (on line 160): ...

    Did you mean this (on line 160):

    currH->ptrL=(node *)(sizeof(node));
    Or this:

    currH->ptrL=(node *)malloc(sizeof(node));
    Just wondering...
    GNU GDB reports SIGSEGV on next use of currH->ptrL
  9. Replies
    11
    Views
    2,154

    Is there a somewhat simple way to create a new...

    Is there a somewhat simple way to create a new user from within a program running with root privileges?
  10. Replies
    11
    Views
    2,154

    File opening

    CreateFile("C:\\quux\\bar.foo", GENERIC_READ | GENERIC_WRITE,
    FILE_SHARE_READ, NULL, OPEN_ALWAYS,
    FILE_ATTRIBUTE_NORMAL, NULL);
    Creates ( or opens an existing ) file to read and...
  11. Replies
    3
    Views
    3,687

    But would that work if my program ended like...

    But would that work if my program ended like this:

    ...
    foo(argv[0]);
    return 0;

    So that my program would start up a new instance of itself and then exit, without waiting for the new process to...
  12. Replies
    3
    Views
    3,687

    Starting a detached process in Linux

    How do I start a program as a detached process in Linux?
    What I mean is I would like to call a function foo("/bin/bash") and it would start bash and then promptly return, with out waiting for bash...
  13. Replies
    28
    Views
    5,003

    This works for me now: ...

    This works for me now:


    CreateWindow(STATUSCLASSNAME, "Hello!", WS_CHILD | WS_VISIBLE,
    CW_USEDEFAULT, CW_USEDEFAULT, 0, 0, hwndDlg,
    NULL, hInst, NULL);
  14. Replies
    28
    Views
    5,003

    Well, I am going to try to write a smaller...

    Well, I am going to try to write a smaller program that only displays a window with a status window. If it works, I will have learned something, if it does not work, I will post the code.
  15. Replies
    6
    Views
    2,098

    This would work to. int i; char* time =...

    This would work to.


    int i;
    char* time = malloc(strlen(__TIME__) + 1);
    strcpy(time, __TIME__);
    for(i=0; i<strlen(__TIME__)-1; i++)
    {
    if(time[i]==':')
    {
  16. Replies
    6
    Views
    2,098

    Just try this. int a, b, c; char* time =...

    Just try this.


    int a, b, c;
    char* time = malloc(strlen(_TIME__) + 1);
    strcpy(time, _TIME__);
    sscanf(time, "%02d:%02d:%02d", &a, &b, &c);
    printf("%02d\n%02d\n%02d", a, b, c);
  17. Replies
    28
    Views
    5,003

    Code length: 558 lines.

    Code length: 558 lines.
  18. Replies
    28
    Views
    5,003

    WS_VISIBLE has been added. My status window is...

    WS_VISIBLE has been added. My status window is not appearing. InitCommonControlsEx is reporting success.
  19. Replies
    28
    Views
    5,003

    Why not?!

    Why not?!
  20. Replies
    28
    Views
    5,003

    I do have the code LPINITCOMMONCONTROLSEX...

    I do have the code


    LPINITCOMMONCONTROLSEX cmmnctrls=malloc(sizeof(cmmnctrls));
    cmmnctrls->dwSize=sizeof(cmmnctrls);
    cmmnctrls->dwICC=ICC_STANDARD_CLASSES | ICC_BAR_CLASSES;
    ...
  21. Replies
    28
    Views
    5,003

    I added that and changed arg 10 of CreateWindowEx...

    I added that and changed arg 10 of CreateWindowEx to NULL. It still does not work. The HWND returned by CreateWindowEx != NULL.
  22. Replies
    28
    Views
    5,003

    What is argument 10 of CreateWindowEx for? What...

    What is argument 10 of CreateWindowEx for? What is the proper value?
  23. Replies
    28
    Views
    5,003

    Status Window

    I have been trying to create a status bar on the bottom of my window. I can not make it work. I have tried CreateStatusWindow which does not work as well as being deprecated.


    status =...
  24. This is the current content of accel.rc: //...

    This is the current content of accel.rc:


    // Generated by ResEdit 1.5.7
    // Copyright (C) 2006-2010
    // http://www.resedit.net

    #include <windows.h>
    #include <commctrl.h>
    #include <richedit.h>
  25. That is what I used to create the accelerator...

    That is what I used to create the accelerator table.
Results 1 to 25 of 69
Page 1 of 3 1 2 3