Re: cab_G_00-pre1 (RFC)

2003-08-16 Thread Eric Pouech
Dmitry Timoshkov wrote: Gregory M. Turner [EMAIL PROTECTED] wrote: One ritual is that you should not use msvcrt from other dlls, this will cause trouble with apps that use the Unix libc. Is it OK to do LoadLibrary/GetProcAddress, or is that equally problematic? Why don't you use _lclose,

Re: cab_G_00-pre1 (RFC)

2003-08-16 Thread Dmitry Timoshkov
Eric Pouech [EMAIL PROTECTED] wrote: Why don't you use _lclose, _lcreat, _llseek, _lopen, _lread, _lwrite exported from kernel32? except for _lopen which differs a bit from CreateFile, but why not using ReadFile, WriteFile, CloseHandle... Because they look too hard for Gregory... Did

Re: cab_G_00-pre1 (RFC)

2003-08-16 Thread Eric Pouech
Dmitry Timoshkov wrote: Eric Pouech [EMAIL PROTECTED] wrote: Why don't you use _lclose, _lcreat, _llseek, _lopen, _lread, _lwrite exported from kernel32? except for _lopen which differs a bit from CreateFile, but why not using ReadFile, WriteFile, CloseHandle... Because they look too hard for

Re: cab_G_00-pre1 (RFC)

2003-08-16 Thread Gregory M. Turner
On Saturday 16 August 2003 03:14 am, Eric Pouech wrote: Dmitry Timoshkov wrote: Eric Pouech [EMAIL PROTECTED] wrote: Why don't you use _lclose, _lcreat, _llseek, _lopen, _lread, _lwrite exported from kernel32? except for _lopen which differs a bit from CreateFile, but why not using

Re: cab_G_00-pre1 (RFC)

2003-08-16 Thread Eric Pouech
Looking at msvcrt's code, it starts to look like a bit much. Take a peek at dlls/msvcrt/file.c, _open and MSVCRT__sopen functions to get an idea of what I was hoping to avoid. msvcrt does a lot more than you need (and also a bit more than the standard C library). Looking at

Re: cab_G_00-pre1 (RFC)

2003-08-16 Thread Gregory M. Turner
On Saturday 16 August 2003 02:25 am, Eric Pouech wrote: except for _lopen which differs a bit from CreateFile, but why not using ReadFile, WriteFile, CloseHandle... A+ After consulting some doc, it seems CreateFile is actually easier to use than _lopen, if only trivially so, due to the layout

Re: cab_G_00-pre1 (RFC)

2003-08-15 Thread Gregory M. Turner
On Tuesday 12 August 2003 03:57 pm, Alexandre Julliard wrote: Gregory M. Turner [EMAIL PROTECTED] writes: Would love to hear if I have not done things in a properly SETUPAPI way, i.e., am I supposed to be performing certain logging or memory allocation rituals, anything like that? One

Re: cab_G_00-pre1 (RFC)

2003-08-15 Thread Dmitry Timoshkov
Gregory M. Turner [EMAIL PROTECTED] wrote: One ritual is that you should not use msvcrt from other dlls, this will cause trouble with apps that use the Unix libc. Is it OK to do LoadLibrary/GetProcAddress, or is that equally problematic? Why don't you use _lclose, _lcreat, _llseek,

Re: cab_G_00-pre1 (RFC)

2003-08-14 Thread Alexandre Julliard
Gregory M. Turner [EMAIL PROTECTED] writes: Would love to hear if I have not done things in a properly SETUPAPI way, i.e., am I supposed to be performing certain logging or memory allocation rituals, anything like that? One ritual is that you should not use msvcrt from other dlls, this will

Re: cab_G_00-pre1 (RFC)

2003-08-14 Thread Gregory M. Turner
On Tuesday 12 August 2003 03:57 pm, Alexandre Julliard wrote: Gregory M. Turner [EMAIL PROTECTED] writes: Would love to hear if I have not done things in a properly SETUPAPI way, i.e., am I supposed to be performing certain logging or memory allocation rituals, anything like that? One