Re: [Pharo-users] FFI and absolute path to dll

2020-05-19 Thread Ben Coman
On Tue, 19 May 2020 at 23:09, ASAM wrote: > Of course there is a documentation for the API. > It is even an ISO standard. And if I can do that, I would also like to make > it available on GitHub. That's why it should be good. > > It is the ISO 22900-2 D-PDU-API. > I can also attach the header

Re: [Pharo-users] FFI and absolute path to dll

2020-05-19 Thread ASAM
Of course there is a documentation for the API. It is even an ISO standard. And if I can do that, I would also like to make it available on GitHub. That's why it should be good. It is the ISO 22900-2 D-PDU-API. I can also attach the header file. However, the PDF is provided with a watermark. So

Re: [Pharo-users] FFI and absolute path to dll

2020-05-19 Thread Ben Coman
Can you specify the API? cheers -ben On Tue, 19 May 2020 at 05:02, ASAM wrote: > Oh. Thank you for your answers. Now that you say it, I remember it. I dealt > with Pharo 2 years ago. And now I come back to load and execute a DLL with > Pharo. > > Does anyone have a more detailed example of

Re: [Pharo-users] FFI and absolute path to dll

2020-05-18 Thread ASAM
Oh. Thank you for your answers. Now that you say it, I remember it. I dealt with Pharo 2 years ago. And now I come back to load and execute a DLL with Pharo. Does anyone have a more detailed example of FFIOpaqueObjectis object than in the book

Re: [Pharo-users] FFI and absolute path to dll

2020-05-18 Thread Sven Van Caekenberghe
> On 18 May 2020, at 19:12, Ben Coman wrote: > > The class-side #initialization method only gets called when the class is > created e.g. when first loaded into a fresh image. Almost: it gets to run whenever the method is loaded and is new or different. If the method is loaded again and its

Re: [Pharo-users] FFI and absolute path to dll

2020-05-18 Thread Ben Coman
On Sun, 17 May 2020 at 20:54, ASAM wrote: > Thanks for the tips. It really helped me a lot. > The dll is now loaded (I chose the 64-bit version of the dll). > > I am currently working on value mashalling and I want to create an ENUM > class subclass from FFIEnumeration. > > Inside

Re: [Pharo-users] FFI and absolute path to dll

2020-05-17 Thread ASAM
Thanks for the tips. It really helped me a lot. The dll is now loaded (I chose the 64-bit version of the dll). I am currently working on value mashalling and I want to create an ENUM class subclass from FFIEnumeration. Inside http://books.pharo.org/booklet-uffi/pdf/2020-02-12-uFFI-V1.0.1 i

Re: [Pharo-users] FFI and absolute path to dll

2020-05-13 Thread BenoƮt Verhaeghe
I use this with VLC win32LibraryName ((OSEnvironment current at: 'Path' ifAbsent: [ '' ]) substrings: ';'), {'C:\Program Files\VideoLAN\VLC'} do: [ :path | | libraryPath | libraryPath := path asFileReference / 'libvlc.dll'. libraryPath exists ifTrue: [ ^ libraryPath fullName ] ]. self error:

Re: [Pharo-users] FFI and absolute path to dll

2020-05-12 Thread Trygve Reenskaug
At some point in the history of Win 7, MS changed the rules for file lookup /Standard Search Order for Desktop Applications/ /The standard DLL search order used by the system / /depends on whether safe DLL search mode is enabled or disabled./ /Safe DLL search mode places the user's

Re: [Pharo-users] FFI and absolute path to dll

2020-05-12 Thread Richard Sargent
On Tue, May 12, 2020, 12:05 ASAM wrote: > Hello, > I'm using Pharo 8 64bit on Windows 10 64bit. > I am trying to access a 32bit dll via a relative path. > Generally, a 64-bit program will only load a 64-bit DLL. It may be possible, but it will likely be far easier to use the 32-bit Pharo

[Pharo-users] FFI and absolute path to dll

2020-05-12 Thread ASAM
Hello, I'm using Pharo 8 64bit on Windows 10 64bit. I am trying to access a 32bit dll via a relative path. I'm desperate. I've been reading the document (http://books.pharo.org/booklet-uffi/pdf/2020-02-12-uFFI-V1.0.1) all the time up and down but I can't find an example of absolute path and