Login  Register

Re: How to CreateMutex in Dolphin?

Posted by Blair McGlashan-3 on Sep 23, 2004; 9:20am
URL: https://forum.world.st/How-to-CreateMutex-in-Dolphin-tp3371535p3371571.html

"Mark Derricutt" <[hidden email]> wrote in message
news:cit0mk$[hidden email]...

> Blair McGlashan wrote:
>
>>-------------------------
>>!KernelLibrary methodsFor!
>>
>>createMutex: lpMutexAttributes bInitialOwner: bInitialOwner lpName: lpName
>> "Invoke the CreateMutex() function of the module wrapped by the receiver.
>> Helpstring: Creates a named or unnamed mutex object
>>
> Hmmm, both Sean and Blair's hit me back with:
>
> 11:07:49 AM, Thursday, September 23, 2004: 'The specified procedure could
> not be found. (16r7F: The specified procedure could not be found.)'
> KernelLibrary(ExternalLibrary)>>invalidCall
> KernelLibrary>>createMutex:bInitialOwner:lpName:

The autogenerated method works for me?

On the whole you should find that methods autogenerated from the Win32
type-library will not have that sort of error because they are directly from
the SDK header files. They may have minor issues with the parameter types,
however, as in this case the second BOOL parameter is interpreted as a long
integer. This is strictly correct since the Win32 BOOL type is just an
integer, but it is more usefully defined as a 'bool' in Dolphin (as Sean has
done) to get automatic marshalling of Smalltalk Booleans.

Regards

Blair