thanks everybody!
Type: Posts; User: albert3721
thanks everybody!
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...
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...
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?
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...
my code is too long to fit here , i'll manage to do it myself, thanks.
thank you guys
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,...
hi all,
what is the difference between static int a and int static a?
thanks :)
I made a little change...thanks
#include <stdio.h>
#include <stdlib.h>
void fun(int ***arr);
int ***send(void);
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...
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]);...
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])
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]);
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.
got it! many thanks!
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"...
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
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...
thanks guys
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
isn't this a problem~
hi all, i've little problem about structure creating, loot at this first..
.......
struct student
{
int score;
};
struct student *creat()
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):");
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...
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...