Search:

Type: Posts; User: albert3721

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    15
    Views
    17,394

    thanks everybody!

    thanks everybody!
  2. Replies
    15
    Views
    17,394

    well, it finally crashes, a wrong calling...

    well, it finally crashes, a wrong calling convention does destroy the stack!
    and sth. flashed through my brain,

    typedef void (__stdcall *MyFucn())
    "__stdcall" in the snippet only indicates the...
  3. Replies
    15
    Views
    17,394

    is there any differences between one(_stdcall) an...

    is there any differences between one(_stdcall) an two(__stdcall) underscores? i tried and neither of them works...

    i doubt that we cann't instruct them to find out the right name properly by...
  4. Replies
    15
    Views
    17,394

    thanks vart, i konw dumpbin, but can i add...

    thanks vart, i konw dumpbin, but can i add "_cdecl" or "_stdcall" to the declaration(such as tpyedef void(_stdcall *MyFunc)() ) so that the machine will gengerate the right name according?
  5. Replies
    15
    Views
    17,394

    HOW TO Find right names for GetProcAddress

    Hi guys, i made a .dll file ,and tried to use LoadLibrary() and GetProcAddress() to get the functions in .dll, but due to the calling conventions ,i failed to do this with all the functions,pls help...
  6. Replies
    6
    Views
    10,420

    :)

    my code is too long to fit here , i'll manage to do it myself, thanks.

    thank you guys
  7. Replies
    6
    Views
    10,420

    how to prevent stack-overflow?

    hi all,
    I write some codes based in recursive method(or some similar methods),eg. in maze-searching... they work ,but sometimes cause stack-overflow.
    i try to write a function to prevent this,...
  8. difference between static int a and int static a?

    hi all,
    what is the difference between static int a and int static a?
    thanks :)
  9. Replies
    22
    Views
    2,696

    I made a little change...thanks #include...

    I made a little change...thanks



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

    void fun(int ***arr);
    int ***send(void);
  10. Replies
    22
    Views
    2,696

    thank all!

    my problem solved, thanks to all.
    according to matsp and Salem's method, i write two different version codes,
    (they are 3d arrays)and they work fine for me , post it, hoping helpful :)
    in the...
  11. Replies
    22
    Views
    2,696

    thanks again, i've another question now, how...

    thanks again,
    i've another question now,
    how to write a function that returns an address of a 2-d array?
    mine: (revised twice - thanks to matsp)


    #include <stdio.h>
    void fun(int (*arr)[10]);...
  12. Replies
    22
    Views
    2,696

    great thanks, i try this and it seems work...

    great thanks,
    i try this and it seems work fine, but i don't know why,
    can u help to explain it? :)

    void fun(int (*arr)[10])
  13. Replies
    22
    Views
    2,696

    function reveives a 2-d array as parameter

    hi all,
    how can i write a function which receives a 2-d array?
    my version:


    #include <stdio.h>
    int main(void)
    {
    void fun(int *arr[10]);
  14. Replies
    9
    Views
    1,417

    found it!

    I made a mistake with

    maze[ROW][COLUMN]
    it should be

    maze[COLUMN][ROW]
    so , it shouldn't have worked well with your complier, i think.
    thanks.
  15. Replies
    3
    Views
    8,007

    thanks!

    got it! many thanks!
  16. Replies
    3
    Views
    8,007

    Return pointer to 2d array

    hi all,
    i want to creat a 2D array and return the pointer of it, and then pass the
    pointer to another function. How can i write my "return" code and define
    the second function's "parameter"...
  17. Replies
    9
    Views
    1,417

    oh,no...

    thanks for you re-edit.
    i've tried both version in dev-c++, vc2005, and code::blocks,and i got no complier warning,
    and your's still can't perform correctly when row>15 in my machine...oh,my god
  18. Replies
    9
    Views
    1,417

    Question comes from drawing a maze.

    hi all,
    i write this snippet of code to randomly draw a maze. when ROW is defined less then 12, it works well. but when ROW >12, the result truns out to be weired.(the "wall" around the maze is...
  19. Replies
    4
    Views
    9,193

    ok

    thanks guys
  20. Replies
    4
    Views
    9,193

    fseek and stdin

    hi all,
    i read a snippet code and found he/she used

    to flush the "stdin", it works, but is it portable?

    thanks d'avance
  21. :-)

    isn't this a problem~
  22. Replies
    3
    Views
    1,691

    Problem about Creating structure

    hi all, i've little problem about structure creating, loot at this first..


    .......
    struct student
    {
    int score;
    };

    struct student *creat()
  23. Replies
    8
    Views
    4,535

    setvbuf works...?

    it means setvbuf works...>?:confused:


    #include "stdio.h"
    int main(void)
    {
    char inbuf[15];
    char outbuf[30];
    char ch[10];
    puts("input a string(<10):");
  24. Replies
    8
    Views
    4,535

    difference

    buff/stdin, what it means?
    stdin is a pointer pointing to buff? or stdin equals to buff?
    by performing setvbuf( fp, buf, ..., ...), can't we change the internal
    buffer of fp to buf?
    then it...
  25. Replies
    8
    Views
    4,535

    the way it follows

    thanks first.


    do u mean that even we set buffer (assum it to be buf)for stdin,
    the system doesn't send the characters directly to that buffer?
    instead,the characters get from keyboard are...
Results 1 to 25 of 37
Page 1 of 2 1 2