Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
An interesing thought
#2
@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
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 mangled
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
Reply


Messages In This Thread
An interesing thought - by doppler - 07-22-2024, 07:19 PM
RE: An interesing thought - by Jack - 07-23-2024, 02:02 AM
RE: An interesing thought - by Jack - 07-23-2024, 02:11 AM
RE: An interesing thought - by Jack - 07-23-2024, 02:16 AM
RE: An interesing thought - by Pete - 07-24-2024, 12:53 AM
RE: An interesing thought - by doppler - 07-24-2024, 01:46 AM
RE: An interesing thought - by Jack - 07-24-2024, 07:09 AM
RE: An interesing thought - by luke - 07-24-2024, 08:12 AM
RE: An interesing thought - by Jack - 07-24-2024, 01:13 PM
RE: An interesing thought - by DSMan195276 - 07-25-2024, 05:30 AM
RE: An interesing thought - by Jack - 07-25-2024, 10:57 AM
RE: An interesing thought - by DSMan195276 - 07-25-2024, 03:54 PM
RE: An interesing thought - by mdijkens - 07-26-2024, 10:45 AM
RE: An interesing thought - by DSMan195276 - 07-26-2024, 02:47 PM



Users browsing this thread: 9 Guest(s)