Hi,
With "libreoffice-5-0-4-multi-win", i had in a macro: Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As Long
Everything worked well
I upgraded to "LibreOffice_5.3.7_Win_x64", and now this does'nt work.
I had the same problem with office (64 bits) and I needed to edit to change it to ;
#If Win64 Then
Private Declare PtrSafe Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As LongPtr
#Else
Private Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As Long
#End If
How to do the same thing with libreoffice ?
Thank you in advance for your answers
GetCommandLine
GetCommandLine
LibreOffice_5.3.7_Win_x64
W7 x64 pro
W7 x64 pro
Re: GetCommandLine
Which type was your 5.0.4 version: 32 bit or 64 bit type?With "libreoffice-5-0-4-multi-win", i had in a macro: Declare Function GetCommandLine Lib "kernel32" Alias "GetCommandLineA" () As Long
Everything worked well
I upgraded to "LibreOffice_5.3.7_Win_x64", and now this does'nt work.
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: GetCommandLine
Hi,
It was a 32 bit Version
I think the problem could be solved if we found how translate "LongPtr" in libreoffice
It was a 32 bit Version
I think the problem could be solved if we found how translate "LongPtr" in libreoffice
LibreOffice_5.3.7_Win_x64
W7 x64 pro
W7 x64 pro
Re: GetCommandLine
And the new one is 64bit.It was a 32 bit Version
As I know it, the calling method of the dll functions are basicly different in 32 an 64 bit softwares."LibreOffice_5.3.7_Win_x64",32"LibreOffice_5.3.7_Win_x64",
I am using 32 bit LO only, with some dll calling in my macros. I am using only the 32 bit version of the dll (CoolProp.dll)
Therefore I can not help you about the 64 bit versions...
Tibor Kovacs, Hungary; LO7.5.8 /Win7-10 x64Prof.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
PortableApps/winPenPack: LO3.3.0-7.6.2;AOO4.1.14
Please, edit the initial post in the topic: add the word [Solved] at the beginning of the subject line - if your problem has been solved.
Re: GetCommandLine
Explanation here:
https://msdn.microsoft.com/en-us/vba/la ... s-overview
Have you tried using the Double data type instead of Long for the return value on 64bit?
https://msdn.microsoft.com/en-us/vba/la ... s-overview
Have you tried using the Double data type instead of Long for the return value on 64bit?
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: GetCommandLine
Hi,
Yes, i have tried Double and even LongLong.
Yes, i have tried Double and even LongLong.
LibreOffice_5.3.7_Win_x64
W7 x64 pro
W7 x64 pro
Re: GetCommandLine
All I can think of is looking at the return value, and the GetLastError Function. And going back to a 32 bit version of course.
Windows 10, Openoffice 4.1.11, LibreOffice 7.4.0.3 (x64)
Re: GetCommandLine
Hi,
No return value, libreoffice simply crash
http://crashreport.libreoffice.org/stat ... e8adb04ea3
No return value, libreoffice simply crash
http://crashreport.libreoffice.org/stat ... e8adb04ea3
LibreOffice_5.3.7_Win_x64
W7 x64 pro
W7 x64 pro