Thanks Alexander, but it makes no difference. This is bizarre.
Alan
>Hi,
>
>This function doesn't return a value. Try to remove "long" from declaration.
>
>>I was playing with the GetLocalTime Api function from Kernel32.
>>If I
DECLARE long GetLocalTime IN WIN32API string @lcLocTime
>>I get an error message immediately of:
>>
>>
Cannot find entry point GetLocalTime in the DLL>>
>>If I instead
DECLARE long GetLocalTime IN KERNEL32 string @lcLocTime
>>I get that same error message when I use it via GetLocalTime(@lcLocTime).
>>
>>I've checked the case of the function call, and it appears to be ok.
>>
>>This works perfectly if I do it in VB6, so it can't be the Kernel32 dll that is at fault.
>>
>>Any ideas?
>>
>>Thanks
>>
>>Alan