Search:

Type: Posts; User: Bleech

Page 1 of 10 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    6
    Views
    1,438

    should be:

    should be:
  2. Replies
    7
    Views
    4,967

    something that I didn't see mentioned on the list...

    something that I didn't see mentioned on the list at the above link is the fact that it is nearly impossible to perform any file I/O without pointers.
  3. Replies
    3
    Views
    3,856

    http://www.cprogramming.com/tutorial/lesson18.html

    http://www.cprogramming.com/tutorial/lesson18.html
  4. Replies
    3
    Views
    1,438

    should be:

    should be:
  5. I think you're probably looking for the /IGNORE...

    I think you're probably looking for the /IGNORE switch. I usually just add it as a parameter in my build settings (vs2005, but vc6 has the same command line options list in the project settings...
  6. Replies
    9
    Views
    7,902

    fseek(fileptr, 0L, SEEK_END); where fileptr...

    fseek(fileptr, 0L, SEEK_END);


    where fileptr is the open file pointer.
  7. Replies
    4
    Views
    1,663

    new is a local instance of point that'll be...

    new is a local instance of point that'll be destroyed once the function returns. generally passing around and returning full structs creates alot of unnecessary overhead. instead, try passing a...
  8. Replies
    12
    Views
    4,813

    I don't know what you're trying to do, but...

    I don't know what you're trying to do, but consider ending your char** with a null string to mark as a terminator. for example:



    char ** stringSplit(char * string, char delimiter, int* number)...
  9. Replies
    26
    Views
    1,969

    not necessarily. if the function is completely...

    not necessarily. if the function is completely contained in the only source file that it's called from I've noticed vs2005 will attempt to inline it, regardless of whether it's declared using the...
  10. Replies
    7
    Views
    1,013

    run a linker on the .obj to produce a .exe.

    run a linker on the .obj to produce a .exe.
  11. Replies
    5
    Views
    1,115

    I'd think including them as resources would be...

    I'd think including them as resources would be better performance wise than including them as files, since it's almost always faster to access data in memory than it is to access it on disk.

    as...
  12. Replies
    12
    Views
    1,803

    actually, you can't just call code, when I was...

    actually, you can't just call code, when I was debugging an app not long ago, I did one of these:



    int main(void)
    {
    somefunc();
    int i;

    return 0;
  13. Replies
    12
    Views
    2,416

    indeed, my bad, I didn't even notice the fgets...

    indeed, my bad, I didn't even notice the fgets the first time I read it, I just assumed you were writing 20 elements and attempting to write a null at the 21.

    the error is also quite evident,...
  14. Replies
    12
    Views
    2,416

    valid indexes on originalExtension if it is...

    valid indexes on originalExtension if it is declared to be 21 elements would be 0-20. by writing the null in the 21 element you are writing it off the end of the buffer (which explains the stack...
  15. Replies
    5
    Views
    2,103

    char buf[10]; wsprintf(buf, "%#X", Opcode); ...

    char buf[10];

    wsprintf(buf, "%#X", Opcode);

    SendDlgItemMessage(hwnd,IDC_LIST1, LB_ADDSTRING,0,(LPARAM)buf);
  16. Replies
    4
    Views
    1,108

    http://cprogramming.com/tutorial/c-vs-c++.html

    http://cprogramming.com/tutorial/c-vs-c++.html
  17. Replies
    10
    Views
    1,443

    indeed, be careful when using #define with...

    indeed, be careful when using #define with typedef, as they appear to be handled in the same way by the preprocessor (at least, with MSVC). about a month ago I was stumped with a hard to find error...
  18. Replies
    10
    Views
    1,846

    I can't really tell what you're trying to do...

    I can't really tell what you're trying to do here, but I would assume it would be trying to use a modeless dialog box as the main window of your app?

    in your WindowProcedure you are handling...
  19. Thread: strlen

    by Bleech
    Replies
    15
    Views
    2,487

    int is signed by default. try: unsigned...

    int is signed by default.

    try:



    unsigned len;

    len = strlen(string);
  20. Replies
    4
    Views
    5,892

    click the Command Line entry under Linker in...

    click the Command Line entry under Linker in Configuration Properties and add comctl32.lib on the command line options you see there.
  21. have you considered using strftime? ...

    have you considered using strftime?

    http://www.cplusplus.com/reference/clibrary/ctime/strftime.html
  22. Replies
    25
    Views
    5,005

    you can't just add columns with...

    you can't just add columns with ListView_SetItemText like that. the columns you are referring to are specified in the iSubItem member of the LVITEM structure. your AddRow function should look...
  23. Replies
    8
    Views
    2,665

    have you written the GetCount and DeleteString...

    have you written the GetCount and DeleteString functions, and if so, do you care to post them for us? the errors you speak of sound rather simple, but that of course depends on the complexity of...
  24. Replies
    8
    Views
    2,665

    if you just want to clear all strings, something...

    if you just want to clear all strings, something like this should suffice:



    int iCount;

    for(iCount = ComboBox_GetCount(hwndCb); iCount; iCount--)
    ComboBox_DeleteString(hwndCb, iCount);
  25. Replies
    5
    Views
    1,328

    create the function as a new thread...

    create the function as a new thread (CreateThread/_beginthreadex). have the thread create an event (CreateEvent) in the non-signalled state. once the thread is finished doing whatever it has to do,...
Results 1 to 25 of 226
Page 1 of 10 1 2 3 4