I am new to Xojo and looking for some help in regards to windows dll files. I am very proficient with AutoHotKey and migrating into Xojo. It’s easy enough when working with dll calls in AHK but Xojo has a different way to go about it and looking to understand how.
I created a simple dll using PureBasic and looking to call a function from the dll and needed to understand on how to go about implementing that within Xojo.
It’s a simple dll with 2 functions: TaskbarShow and TaskBarHide
I wanted to create a simple button when pressed just calls the function. There is nothing that needs to get passed to the function.
Any help such as an example of code that I would use would be appreciated and understanding windows dll function calls.
I have a feeling it’s pretty simple using declare statement and some form of a call to that function but just not sure without seeing an example to better undertstand and know the correct way for future.
Your right, declares can access the functions within dll using Xojo. Just a few questions before we go down the path of creating a declare:
When the dll was created, are the functions exposed - meaning can other languages access the dll?
Did dll creation keep the naming convention of the functions - sometimes function names get mangled and a function like HelloWorld will get changed to something like Helkei3984kjdf, which doesn’t resemble the original function name.
If the answers are all ‘yes’, then we can give it a try!
What are the function names, parameters, and return types within your dll?
Here are a few resources that exist for Xojo Declares that I can easily remember