Page 1 of 1
MSVCRT lib in PureLibraries\Windows
Posted: Tue Apr 13, 2004 10:43 am
by RValois
Hi,
What I should do to be able to use the msvcrt lib available on PureLibraries\Windows ?
I tryed some function with and without undescore but the compiler always complain: "fopen_() is not a function, an array or a linked list".
Thank you,
RValois.
Posted: Fri Apr 16, 2004 12:29 am
by RValois
Lets try again.
RValois.
Posted: Fri Apr 16, 2004 2:42 pm
by KarLKoX
You can't use these library directly, they are used by the compiler for the purebasic librairies.
So, what you can do is to code a userlib wrapping such function and then you will be able to use fopen, fwrite etc ... as normal purebasic commands.
Btw, why not just using the winapi functions ? (SetFilePointer, CreateFile, ReadFile ...) or the pb internal files functions :roll:
Posted: Mon Apr 19, 2004 9:57 am
by RValois
Btw, why not just using the winapi functions ? (SetFilePointer, CreateFile, ReadFile ...) or the pb internal files functions
Because there is no such thing as one to one relation between crt and winapi nor crt and pb functions. :roll:
fopen was just an example.
Any way, thanks for the info.
RValois.