1. Win32lib additions [4]
- Posted by euman at bellsouth.net May 28, 2003
- 412 views
Hello again Derek, Could you add this to W32Kernel.ew? xlstrlen = registerw32Function(kernel32,"lstrlen",{C_POINTER},C_INT) Euman
2. Re: Win32lib additions [4]
- Posted by Derek Parnell <ddparnell at bigpond.com> May 28, 2003
- 410 views
Ok, I've added lstrcat lstrcmp lstrcmpi lstrcpy lstrcpyn lstrlen ----- Original Message ----- From: <euman at bellsouth.net> To: "EUforum" <EUforum at topica.com> Sent: Wednesday, May 28, 2003 10:09 PM Subject: Win32lib additions [4] Hello again Derek, Could you add this to W32Kernel.ew? xlstrlen = registerw32Function(kernel32,"lstrlen",{C_POINTER},C_INT) Euman TOPICA - Start your own email discussion group. FREE!
3. Re: Win32lib additions [4]
- Posted by gertie at visionsix.com May 29, 2003
- 398 views
On 29 May 2003, at 0:13, Derek Parnell wrote: > > > Ok, I've added > > lstrcat > lstrcmp > lstrcmpi > lstrcpy > lstrcpyn > lstrlen What do they do? Euman? How to use? Kat > ----- Original Message ----- > From: <euman at bellsouth.net> > To: "EUforum" <EUforum at topica.com> > Sent: Wednesday, May 28, 2003 10:09 PM > Subject: Win32lib additions [4] > > > Hello again Derek, > > Could you add this to W32Kernel.ew? > > xlstrlen = > registerw32Function(kernel32,"lstrlen",{C_POINTER},C_INT) > > Euman > > > TOPICA - Start your own email discussion group. FREE! > > > > TOPICA - Start your own email discussion group. FREE! > >
4. Re: Win32lib additions [4]
- Posted by Derek Parnell <ddparnell at bigpond.com> May 29, 2003
- 397 views
On Wed, 28 May 2003 19:03:56 -0500, <gertie at visionsix.com> wrote: > > > On 29 May 2003, at 0:13, Derek Parnell wrote: > >> >> Ok, I've added >> >> lstrcat >> lstrcmp >> lstrcmpi >> lstrcpy >> lstrcpyn >> lstrlen > > What do they do? Euman? How to use? > These are 'Windows' versions of the equivalent standard C library functions. There work on zero-delimited bytes in RAM, which is how C expects strings to be stored. lstrcat(a,b) -- Concatenates b onto a. Returns a. lstrcmp(a,b) -- Compares a to b. Returns -1, 0, or 1. lstrcmpi(a,b) -- Case-insenstive compare. lstrcpy(a,b) -- Copies b to a, replacing a. Returns a. lstrcpyn(a,b,n) -- Copies b to a, but no more than n characters. lstrlen(a) -- returns length of a. In each case above, 'a' and 'b' are RAM addresses. It is you responsibility to make sure that the buffer size is big enough for lstrcat and lstrcpy to work. -- cheers, Derek Parnell