07-23-2024, 02:02 AM
@doppler
I think that it may be possible
in Options->Compiler settings in the C++ Linker Flags add -shared
then compile the following function by using F11
the above function is exported as _Z18FUNC_ADDL123456789PiS_
the reason why I added the numbers 1 thru 9 to the function name was so that I could be sure to spot it in the exports
to test you would rename the exe thus produced to a dll
let me see if I can call the exe renamed to a dll from QB64, it's doubtful but I will give it a shot.
I'll be back
I think that it may be possible
in Options->Compiler settings in the C++ Linker Flags add -shared
then compile the following function by using F11
Code: (Select All)
Function addl123456789& (x As Long, y As Long)
addl123456789 = x + y
End Function
it creates an executable but with functions exported, unfortunately QB64 uses C++ not plain C so the symbols are mangledthe above function is exported as _Z18FUNC_ADDL123456789PiS_
the reason why I added the numbers 1 thru 9 to the function name was so that I could be sure to spot it in the exports
to test you would rename the exe thus produced to a dll
let me see if I can call the exe renamed to a dll from QB64, it's doubtful but I will give it a shot.
I'll be back