Skip to content

Conversation

@idanmiara
Copy link
Contributor

I'm using your TDynamicDll as a base for other dlls that I use.
Here are some additions and fixes to make TDynamicDLL more generic

Idan Miara added 2 commits December 6, 2018 14:57
…reateInstance, CreateInstanceAndLoad - creates an instance of the dll + MapDll (abstract virtual), CallMapDll - CallMapDll will be called in AfterLoad + LoadDll - now a function instead of procedure, returns validity. + DoOpenDll - use default dllname if empty string is passed; fix for loading dlls in subdirs (previous method would fail depending on its depended DLLs) + Import now accepts UnicodeStrings + Import2 for handling STDCall on 32bit + DllPath now writes via a function SetDllPath + DllFullFileName added a property that returns the full path of the dll

PythonEngine.pas - TPythonInterface
+ AfterLoad - split functionality between TPythonInterface.MapDll and TDynamicDll.CallMapDll
+ GetDllPath - add the special behavior for the PythonDLL (IsPythonVersionRegistered) which has nothing to do in TDynamicDll
+ MapDll - added functionality from TPythonInterface.GetDllPath; Import now accepts UnicodeString and not AnsiString
@idanmiara
Copy link
Contributor Author

Hi,
I'm wondering if you're considering this pull request or should I keep this class in a different repo.
Idan.

@pyscripter
Copy link
Owner

I am still pondering about this. I would like to have a closer look to both of your PRs but I have been quite busy. Sorry for taking so long...

@idanmiara
Copy link
Contributor Author

idanmiara commented Jan 18, 2019 via email

@idanmiara
Copy link
Contributor Author

Hi there!
I'm wondering if I should fork DynamicDLL.pas as I'm using it to import a different DLL.
https://github.com/talos-gis/gdal4delphi
Are you still considering this PR?

@pyscripter
Copy link
Owner

Feel free to do that.

@pyscripter pyscripter closed this Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants