Hi, after some more investigation the easiest way to get Win32WideString from
external module is to pass it as a parameter, like in:

^self ffiCall: #( void myFunction ( Win32WideString aWin32WideString ) ) 

and the external module can access it directly to do r/w. 

There are other possibilities as well - like adapting the method
Win32WideString>>#fromHandle: to translate from ExternalData to
Win32WideString, creating new ExternalType, or even creating a new
FFIWin32WideString. I wonder what would be the best approach :-) 

Best wishes,
Tomaz



--
Sent from: http://forum.world.st/Pharo-Smalltalk-Users-f1310670.html

Reply via email to