Ask Your Question
1

How to call WinAPI in 64 bit libreoffice [closed]

asked 2018-10-19 13:46:31 +0200

s__u__p gravatar image

updated 2020-07-22 13:46:18 +0200

Alex Kemp gravatar image

I need to call a WinAPI function in my macro. I used to do it like this

' Declaration
Private Declare Function GetTickCount Lib "kernel32" () as Long

' somewhere in a sub
Dim time as Long
time = GetTickCount()

But since I updated my LibreOffice to version 6 x86_64 (later was version 5 x68) this code just crashes. How can I fix this to make it work in 64bit version?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-07-22 13:46:44.115136

1 Answer

Sort by » oldest newest most voted
2

answered 2018-10-19 14:56:48 +0200

This is tdf#120706, and it will be fixed shortly. For now, functions with empty argument lists fail.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-10-19 13:46:31 +0200

Seen: 82 times

Last updated: Oct 19 '18