Search:

Type: Posts; User: *nick

Page 1 of 2 1 2

Search: Search took 0.00 seconds.

  1. Thread: pointers issue

    by *nick
    Replies
    10
    Views
    1,072

    that was the actual code minus top comments

    that was the actual code minus top comments
  2. Thread: Linked Lists

    by *nick
    Replies
    7
    Views
    1,097

    I was wondering how to find the previous node in...

    I was wondering how to find the previous node in a singly, circular linked list.

    you probably need to go full circle to find out what it is.
  3. Thread: pointers issue

    by *nick
    Replies
    10
    Views
    1,072

    thx, but if I forgot to include malloc function,...

    thx, but if I forgot to include malloc function, why did it work anyway,
  4. Thread: pointers issue

    by *nick
    Replies
    10
    Views
    1,072

    I think I fixed the issue, I am getting these...

    I think I fixed the issue, I am getting these errors now, how can I correct this?

    c:\Nick\C projects\portal>cl filename2.c
    Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.30319.01...
  5. Thread: pointers issue

    by *nick
    Replies
    10
    Views
    1,072

    pointers issue

    Hi

    this code is crashing, what did I do wrong in here?


    #include <stdio.h>
    #include <string.h>
    #define MAXLINES 100

    char *arrFilename[MAXLINES];
  6. Thread: memory leak

    by *nick
    Replies
    8
    Views
    3,113

    ok you say that I shouldn't use but I see it in...

    ok you say that I shouldn't use but I see it in Petzold book example




    HELLOWIN.C

    /*------------------------------------------------------------
    HELLOWIN.C -- Displays "Hello, Windows...
  7. Thread: memory leak

    by *nick
    Replies
    8
    Views
    3,113

    i would prefer to do option 1 for now, can you...

    i would prefer to do option 1 for now, can you advise how to convert the strings?
    1. continue using readdir and convert your strings
  8. Thread: memory leak

    by *nick
    Replies
    8
    Views
    3,113

    Yes I know that it is the unicode issue, but if I...

    Yes I know that it is the unicode issue, but if I will need to use it later on, how can I fix it now?
  9. Thread: memory leak

    by *nick
    Replies
    8
    Views
    3,113

    yes I am not using it because I am getting...

    yes I am not using it because I am getting Chinese chars in drop down box if I put it here

    SendMessage(hwndCombo, CB_ADDSTRING, 0, (LPARAM) items[i]);

    changed:
    SendMessage(hwndCombo,...
  10. Replies
    9
    Views
    1,310

    thx I have ported this code to win32, but it...

    thx I have ported this code to win32, but it seems to have a memory leak, it crashes after a minute.
    I created a thread for this:...
  11. Thread: memory leak

    by *nick
    Replies
    8
    Views
    3,113

    memory leak

    Hi

    I have an issue with this code, it has memory leak.




    #include <windows.h>
    #include <stdio.h>
    #include <string.h>
  12. Replies
    9
    Views
    1,310

    FILENAME *arrFilename = (FILENAME *)malloc(10000...

    FILENAME *arrFilename = (FILENAME *)malloc(10000 * sizeof *arrFilename);
    is this correct?

    i am getting error with this in VS2010, but it worked with command line:
    FILENAME *arrFilename =...
  13. Thread: stack

    by *nick
    Replies
    1
    Views
    973

    stack

    can some one explain the stack memory in windows, ie when the program is running you can define variable to be used in stack or not. how do i know if i want to use stack or not?

    can this be moved...
  14. Replies
    9
    Views
    1,310

    thank you, How do I use the arrFilename, I am...

    thank you, How do I use the arrFilename, I am still trying to get pointers


    // print array of filenames
    for (i = 0; i < j; ++i) {
    printf("i %d: %s\n",i, arrFilename[i]);
  15. Replies
    9
    Views
    1,310

    can you suggest how to fix this?

    can you suggest how to fix this?
  16. Replies
    9
    Views
    1,310

    crashes during run time

    why is the program crashing when I change 3000 to 4000 on this line
    char arrFilename[3000][MAX_PATH + 1];






    #include <stdio.h>
    #include <string.h>
  17. Replies
    3
    Views
    1,492

    but I will need to move to advance stuff, I will...

    but I will need to move to advance stuff, I will need to know a lot about windows controls, I want to work on building ERP system. our company has ERP built in VB, but it seems to laggy to me so I...
  18. Replies
    3
    Views
    1,492

    new to windows programming, win32

    hi i am currently reading "programming windows 5ed" by petrold,
    are there any other good books on this topic you can recommend like this one?

    also why this windows programming board doesn't show...
  19. Thread: pointers

    by *nick
    Replies
    7
    Views
    1,204

    Syndacate and nonoob, thanks dudes. you know your...

    Syndacate and nonoob, thanks dudes. you know your pointers.
  20. Thread: pointers

    by *nick
    Replies
    7
    Views
    1,204

    pointers

    when i run this, i get an error, am i using pointers incorrectly?



    #include <stdio.h>
    #include <stdlib.h>

    void print_array(char *s)
    {
    s = (char *)malloc(6);
  21. Thread: save html file

    by *nick
    Replies
    8
    Views
    1,144

    well in need to parse the html file for some info...

    well in need to parse the html file for some info so saving manually is not what i need. So far I been fussing with curl libraries but keep getting that different dll are missing. no clear...
  22. Thread: save html file

    by *nick
    Replies
    8
    Views
    1,144

    tried to install curl, but couldn't find how to...

    tried to install curl, but couldn't find how to install it.
    i got vs6.

    btw, any other options on getting a web page to a file?
  23. Thread: save html file

    by *nick
    Replies
    8
    Views
    1,144

    from the net. for example Allocator | Define...

    from the net. for example Allocator | Define Allocator at Dictionary.com , take this address and save it to file.
  24. Thread: save html file

    by *nick
    Replies
    8
    Views
    1,144

    save html file

    hey, i am trying to save a html source file. How can this be done. thanks.
  25. Thread: max float

    by *nick
    Replies
    5
    Views
    3,803

    max float

    helloworld.

    i run into this problem, trying to get a max value for float, but reach "16777216.000000", if am adding 1, more if I add 10

    is this something to do with the registers on CPU?


    ...
Results 1 to 25 of 26
Page 1 of 2 1 2