Bug 84097 - Windows: Unit test & extend native calling
Summary: Windows: Unit test & extend native calling
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
4.3.0.2 rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: reviewed:2022
Keywords: difficultyInteresting, easyHack, skillCpp, topicCleanup
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2014-09-19 13:50 UTC by Michael Meeks
Modified: 2022-08-18 13:36 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
An initial attempt to extend this to the (64bit) currency type. (1.44 KB, patch)
2014-09-19 13:52 UTC, Michael Meeks
Details

Note You need to log in before you can comment on or make changes to this bug.
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.