Ask Your Question

How to call WinAPI in 64 bit libreoffice

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

s__u__p 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 close merge delete

1 Answer

Sort by » oldest newest most voted

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
Login/Signup to Answer

Question Tools

1 follower


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

Seen: 72 times

Last updated: Oct 19 '18