|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
D.gnu - nasty C func
Hello,
Im trying to call an ncurses funcion whline(WINDOW *, chtype, int);
which, judging from the ncurses.h is not a macro and gcc -E does not replace it
seems :)
But, the problem is, it just does nothing seems. I mean, equivalent code like
this:
initscr();
whline(stdscr, 4194417, 20);
napms(200);
endwin();
in C , draws a 20 col line, but, in D (provided relevant extern (C) is done),
does not draw a line (the screen/window setup
is ok, and rest).
And, i dont see an error :)
Yeah, extern looks like this (not compiling)
extern(C)
{
struct _win_st;
_win_st* stdscr;
_win_st* initscr();
int refresh();
int endwin();
int napms(int);
int whline(_win_st *win, ulong ch, int n);
}
Jun 17 2005
Denis R wrote: Jun 17 2005
On Sat, 18 Jun 2005 04:50:36 +0200 Tom S <h3r3tic remove.mat.uni.torun.pl> wrote: Oh ! :P Thanks, I didnt even think for a sec about that difference (err, not that I looked carefully at types) Thanks again, its actually workingDenis R wrote: Jun 18 2005
|