Login  Register

Re: NativeBoost replacement?

Posted by CyrilFerlicot on Mar 07, 2016; 6:19am
URL: https://forum.world.st/NativeBoost-replacement-tp4882853p4882874.html

I think that ffi-nb is now call uffi and is directly in the image. 

See: https://www.mail-archive.com/pharo-dev@.../msg36699.html


On Sunday, 6 March 2016, Hernán Morales Durand <[hidden email]> wrote:
Hi Damien,

I installed FFI-NB as follows:

Gofer it
    smalltalkhubUser: 'Pharo' project: 'FFI-NB';
    configurationOf: 'FFINB';
    loadStable

And found the following methods are missing from NBWin32Window:

createWindowExA:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
createWindowExW:lpClassName:lpWindowName:dwStyle:x:y:width:height:hWndParent:hMenu:hInstance:lParam:
ffiCalloutOptions
getActiveWindow
getCapture
getClipboardOwnerWindow
getClipboardViewer
getDesktopWindow
getForegroundWindow
getWindowFromPoint:

Should I try something else?

Hernán



2016-03-06 18:10 GMT-03:00 Damien Pollet <<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;damien.pollet%2Bpharo@gmail.com&#39;);" target="_blank">damien.pollet+pharo@...>:
The replacement is http://smalltalkhub.com/#!/~Pharo/FFI-NB

The API should be mostly if not completely compatible. If not tell us, as I need to adapt my ESUG 2013 tutorial :)

On 6 March 2016 at 21:18, Hernán Morales Durand <<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;hernan.morales@gmail.com&#39;);" target="_blank">hernan.morales@...> wrote:
Hi guys,

I am porting packages which uses NativeBoost in Pharo <= 4 to Pharo 5 (update: #50628). Since NB is not supported anymore I would like to know which is the replacement of such library.

I found FFI is loadable in Pharo 5, but methods like #getForegroundWindow are missing.
Even worst, when I try to browse a method like

#shellExecute:lpOperation:lpFile:lpPrameters:lpDirectory:nShowCmd:

with any tool (Nautilus, Finder, etc) I get a MessageNotUnderstood: RubShoutStylerDecorator>>disableDrawingWhile:

What's your recommendation?

Cheers,

Hernán





--
Cheers
Cyril Ferlicot