Posted: Fri May 06, 2005 8:20 am
I tried to do a dummy userlib just for testing wrapping the printf command.
The lib was built using Dev-C++ and the built function Printf
should just printout a constant string using printf.
The C-Code for the lib looks similar to this (jaja, no debug_routine) :
I successfully built this lib and I can use it in PureBasic without any problems.
For example I created with PureBasic a console application with just one
line (without using OpenConsole()) :
When I call this programm in the command line it works as it was supposed
to and prints out : Hello World!.
However, when I try to catch the stdout (String -> Hello World) via php's
passthru I do not get anything.
Any ideas what I did wrong
:roll:
The lib was built using Dev-C++ and the built function Printf
should just printout a constant string using printf.
The C-Code for the lib looks similar to this (jaja, no debug_routine) :
Code: Select all
#include <stdio.h>
// dummy example
extern _stdcall PB_Printf()
{
printf("Hello World!");
}
For example I created with PureBasic a console application with just one
line (without using OpenConsole()) :
Code: Select all
Printf()
to and prints out : Hello World!.
However, when I try to catch the stdout (String -> Hello World) via php's
passthru I do not get anything.
Any ideas what I did wrong
