Page 1 of 1

a C function in PB ?

Posted: Sat Mar 06, 2004 7:13 pm
by Polo
I'm searching to use the function fread in Purebasic, is it possible ?

Posted: Sun Mar 07, 2004 1:36 am
by merendo
I never coded in c but it would be possible if you code a DLL library in C which wraps this function and call this function from your PB source.

Caution: Check if it is legal to build a wrapper function in a DLL in C!

Posted: Sun Mar 07, 2004 10:25 pm
by BalrogSoft
Hi, i dont know where to find information to use this dll: crtdll.dll, but its the microsoft c runtime library, and it exists on all windows systems, i dont know the licence of use that have this library, but i think that i could help you if you find some information about it.