MSVCRT lib in PureLibraries\Windows

Just starting out? Need help? Post your questions and find answers here.
RValois
User
User
Posts: 16
Joined: Fri Aug 15, 2003 6:31 am
Location: Brazil
Contact:

MSVCRT lib in PureLibraries\Windows

Post 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.
RValois
User
User
Posts: 16
Joined: Fri Aug 15, 2003 6:31 am
Location: Brazil
Contact:

Post by RValois »

Lets try again. :)
RValois.
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post 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:
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
RValois
User
User
Posts: 16
Joined: Fri Aug 15, 2003 6:31 am
Location: Brazil
Contact:

Post 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.
Post Reply