Bug 84097

Summary: Windows: Unit test & extend native calling
Product: LibreOffice Reporter: Michael Meeks <michael.meeks>
Component: BASICAssignee: Not Assigned <libreoffice-bugs>
Status: NEW ---    
Severity: normal CC: matus, mentoring
Priority: medium Keywords: difficultyInteresting, easyHack, skillCpp, topicCleanup
Version: 4.3.0.2 rc   
Hardware: Other   
OS: All   
Whiteboard: reviewed:2022
Crash report or crash signature: Regression By:
Bug Depends on:    
Bug Blocks: 108908    
Attachments: An initial attempt to extend this to the (64bit) currency type.

Description Michael Meeks 2014-09-19 13:50:55 UTC
Our internal StarBasic / VBA code has the ability to call native functions. Checkout:

basic/qa/vba_tests/win32compatb.vb

Private Declare Function QueryPerformanceCounter Lib "kernel32" (lpPerformanceCount As LARGE_INTEGER) As Long

eg. The calling functionality (for windows only) is in:

basic/source/runtime/dllmgr-x86.c

It would be wonderful to have systematic tests here; create a new / test shared library / DLL on windows that exports a number of the native types, and then invoke those methods for each type from basic - and check the results =)

Thanks !
Comment 1 Michael Meeks 2014-09-19 13:52:52 UTC
Created attachment 106550 [details]
An initial attempt to extend this to the (64bit) currency type.
Comment 2 Robinson Tryon (qubit) 2015-12-14 05:01:18 UTC Comment hidden (obsolete)
Comment 3 Robinson Tryon (qubit) 2016-02-18 14:52:20 UTC Comment hidden (obsolete)
Comment 4 Hossein 2022-08-18 13:36:05 UTC
Re-evaluating the EasyHack in 2022

This issue is still relevant. I don't even see the proposed tests get merged into the code.