1. Win32lib additions [4]

Hello again Derek, 
 
Could you add this to W32Kernel.ew? 
 
xlstrlen            =
    registerw32Function(kernel32,"lstrlen",{C_POINTER},C_INT)
 
Euman

new topic     » topic index » view message » categorize

2. Re: Win32lib additions [4]

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!

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32lib additions [4]

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!
> 
>

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32lib additions [4]

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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu