Re: [Pharo-users] mac address on windows

2015-05-12 Thread Nicolai Hess
I had a #asString method in the BYTE_8 class that I put by accident in the *generated-code... protocol This method will be removed if the generated methods are regenerated. Just add a new method: BYTE_8>>asString ^ self address hex The address has 8 bytes because this is the max number of byt

Re: [Pharo-users] mac address on windows

2015-05-12 Thread Usman Bhatti
Hi Nicolas, Thank you for looking at the code. I was away and could not try your code. On Thu, May 7, 2015 at 9:27 AM, p...@highoctane.be wrote: > > > On Thu, May 7, 2015 at 1:06 AM, Nicolai Hess wrote: > >> >> >> 2015-05-06 22:47 GMT+02:00 Henrik Sperre Johansen < >> henrik.s.johan...@veloxit

Re: [Pharo-users] mac address on windows

2015-05-07 Thread Hernán Morales Durand
Hi Thierry, I'm in my holidays in Madrid, but let me know if you or anyone need access to the repository and it will be granted. Cheers, Hernán 2015-05-06 5:10 GMT-03:00 Thierry Goubier : > > > 2015-05-06 9:57 GMT+02:00 Usman Bhatti : > >> On Tue, May 5, 2015 at 7:54 PM, Thierry Goubier < >> t

Re: [Pharo-users] mac address on windows

2015-05-07 Thread p...@highoctane.be
On Thu, May 7, 2015 at 1:06 AM, Nicolai Hess wrote: > > > 2015-05-06 22:47 GMT+02:00 Henrik Sperre Johansen < > henrik.s.johan...@veloxit.no>: > >> A few easily fixed Type/pointers to Types mixups, and a slipup where two >> different classes are confused for the same aside, the real show stopper,

Re: [Pharo-users] mac address on windows

2015-05-07 Thread Nicolai Hess
Ups, one method was in the *generated-code-protocol and will be removed on package load. You need to add the method BYTE_8>>asString ^ self address hex 2015-05-07 1:06 GMT+02:00 Nicolai Hess : > > > 2015-05-06 22:47 GMT+02:00 Henrik Sperre Johansen < > henrik.s.johan...@veloxit.no>: > >>

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Nicolai Hess
2015-05-06 22:47 GMT+02:00 Henrik Sperre Johansen < henrik.s.johan...@veloxit.no>: > A few easily fixed Type/pointers to Types mixups, and a slipup where two > different classes are confused for the same aside, the real show stopper, > if I haven't missed something entirely, is that the struct par

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Nicolai Hess
2015-05-06 13:38 GMT+02:00 p...@highoctane.be : > > > On Wed, May 6, 2015 at 12:29 PM, Nicolai Hess wrote: > >> >> >> 2015-05-06 12:10 GMT+02:00 p...@highoctane.be : >> >>> I've loaded your package. >>> >>> A prerequisite is to load OS-Window to make it work. >>> >>> I've got the DLL call working

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Henrik Sperre Johansen
A few easily fixed Type/pointers to Types mixups, and a slipup where two different classes are confused for the same aside, the real show stopper, if I haven't missed something entirely, is that the struct parser/NB in general does not handle const sized arrays*, which is used in a few of the requi

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Esteban Lorenzano
> On 06 May 2015, at 17:03, Nicolai Hess wrote: > > > > 2015-05-06 16:40 GMT+02:00 Esteban Lorenzano >: > >> On 06 May 2015, at 12:10, p...@highoctane.be >> wrote: >> >> I've loaded your package. >> >> A prerequisite is to load OS-Wi

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Nicolai Hess
2015-05-06 16:40 GMT+02:00 Esteban Lorenzano : > > On 06 May 2015, at 12:10, p...@highoctane.be wrote: > > I've loaded your package. > > A prerequisite is to load OS-Window to make it work. > > > why? > in any case, oswindow is already included in pharo4 > OS-Windows (by TorstenBergmann) not OSWi

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Esteban Lorenzano
> On 06 May 2015, at 12:10, p...@highoctane.be wrote: > > I've loaded your package. > > A prerequisite is to load OS-Window to make it work. why? in any case, oswindow is already included in pharo4 Esteban > > I've got the DLL call working nicely and the nativeboost with the structure > fre

Re: [Pharo-users] mac address on windows

2015-05-06 Thread p...@highoctane.be
On Wed, May 6, 2015 at 12:29 PM, Nicolai Hess wrote: > > > 2015-05-06 12:10 GMT+02:00 p...@highoctane.be : > >> I've loaded your package. >> >> A prerequisite is to load OS-Window to make it work. >> >> I've got the DLL call working nicely and the nativeboost with the >> structure freezing. >> >

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Henrik Johansen
> On 06 May 2015, at 12:29 , Nicolai Hess wrote: > > > > 2015-05-06 12:10 GMT+02:00 p...@highoctane.be > mailto:p...@highoctane.be>>: > I've loaded your package. > > A prerequisite is to load OS-Window to make it work. > > I've got the DLL call working nicely and

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Nicolai Hess
2015-05-06 12:10 GMT+02:00 p...@highoctane.be : > I've loaded your package. > > A prerequisite is to load OS-Window to make it work. > > I've got the DLL call working nicely and the nativeboost with the > structure freezing. > This is because you have a recursive datastructure description, but ac

Re: [Pharo-users] mac address on windows

2015-05-06 Thread p...@highoctane.be
I've loaded your package. A prerequisite is to load OS-Window to make it work. I've got the DLL call working nicely and the nativeboost with the structure freezing. Now, we should all have a look at: https://github.com/ronsaldo/bullet-pharo and https://github.com/ronsaldo/swig because it loo

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Usman Bhatti
On Wed, May 6, 2015 at 9:58 AM, Nicolai Hess wrote: > > > 2015-05-06 9:53 GMT+02:00 Usman Bhatti : > >> >> >> On Tue, May 5, 2015 at 7:34 PM, p...@highoctane.be >> wrote: >> >>> >>> On Tue, May 5, 2015 at 6:28 PM, Usman Bhatti >>> wrote: >>> I succeeded to do it by encapsulating the C rout

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Thierry Goubier
2015-05-06 9:57 GMT+02:00 Usman Bhatti : > On Tue, May 5, 2015 at 7:54 PM, Thierry Goubier > wrote: > >> Le 05/05/2015 18:28, Usman Bhatti a écrit : >> >>> I succeeded to do it by encapsulating the C routine as a DLL and doing >>> an FFI call from my image (as suggested by Guille). >>> >>> I also

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Nicolai Hess
2015-05-06 9:53 GMT+02:00 Usman Bhatti : > > > On Tue, May 5, 2015 at 7:34 PM, p...@highoctane.be > wrote: > >> >> On Tue, May 5, 2015 at 6:28 PM, Usman Bhatti >> wrote: >> >>> I succeeded to do it by encapsulating the C routine as a DLL and doing >>> an FFI call from my image (as suggested by G

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Usman Bhatti
On Tue, May 5, 2015 at 7:54 PM, Thierry Goubier wrote: > Le 05/05/2015 18:28, Usman Bhatti a écrit : > >> I succeeded to do it by encapsulating the C routine as a DLL and doing >> an FFI call from my image (as suggested by Guille). >> >> I also tried to perform the nativeboost call by creating my

Re: [Pharo-users] mac address on windows

2015-05-06 Thread Usman Bhatti
On Tue, May 5, 2015 at 7:34 PM, p...@highoctane.be wrote: > > On Tue, May 5, 2015 at 6:28 PM, Usman Bhatti > wrote: > >> I succeeded to do it by encapsulating the C routine as a DLL and doing an >> FFI call from my image (as suggested by Guille). >> > > At least there was a way! > Exactly :)

Re: [Pharo-users] mac address on windows

2015-05-05 Thread Thierry Goubier
Le 05/05/2015 18:28, Usman Bhatti a écrit : I succeeded to do it by encapsulating the C routine as a DLL and doing an FFI call from my image (as suggested by Guille). I also tried to perform the nativeboost call by creating my structures in Pharo. The function in Windows that can be used to retr

Re: [Pharo-users] mac address on windows

2015-05-05 Thread p...@highoctane.be
On Tue, May 5, 2015 at 6:28 PM, Usman Bhatti wrote: > I succeeded to do it by encapsulating the C routine as a DLL and doing an > FFI call from my image (as suggested by Guille). > At least there was a way! Looks like this is the most controlled|debuggable way: - get it working with C code ou

Re: [Pharo-users] mac address on windows

2015-05-05 Thread Usman Bhatti
I succeeded to do it by encapsulating the C routine as a DLL and doing an FFI call from my image (as suggested by Guille). I also tried to perform the nativeboost call by creating my structures in Pharo. The function in Windows that can be used to retrieve mac address in Windows: GetAdaptersInfo <

Re: [Pharo-users] mac address on windows

2015-05-04 Thread Ben Coman
As a complete newb to VM building I found this fairly straight forward (on a Mac btw). https://github.com/pharo-project/pharo-vm cheers -ben On Mon, May 4, 2015 at 5:28 PM, Usman Bhatti wrote: > > > On Sun, May 3, 2015 at 4:22 PM, Pierce Ng wrote: > >> On Sat, May 02, 2015 at 03:55:47PM +0200,

Re: [Pharo-users] mac address on windows

2015-05-04 Thread Usman Bhatti
On Sun, May 3, 2015 at 4:22 PM, Pierce Ng wrote: > On Sat, May 02, 2015 at 03:55:47PM +0200, Usman Bhatti wrote: > > 1/ OSProcess: I tried (PipeableOSProcess command: 'ipconfig /all') > output. > > I have used http://www.smalltalkhub.com/#!/~hernan/ProcessWrapper > successfully > back when I was

Re: [Pharo-users] mac address on windows

2015-05-03 Thread Pierce Ng
On Sat, May 02, 2015 at 03:55:47PM +0200, Usman Bhatti wrote: > 1/ OSProcess: I tried (PipeableOSProcess command: 'ipconfig /all') output. I have used http://www.smalltalkhub.com/#!/~hernan/ProcessWrapper successfully back when I was on Windows using some now-ancient version of Pharo. Pierce

Re: [Pharo-users] mac address on windows

2015-05-02 Thread Usman Bhatti
Yes, I already started exploring this path but there are few a problems that I'll share in another thread. On Sat, May 2, 2015 at 4:43 PM, p...@highoctane.be wrote: > looks like a bit of C code is required. > > > http://stackoverflow.com/questions/13646621/how-to-get-mac-address-in-windows-with-

Re: [Pharo-users] mac address on windows

2015-05-02 Thread p...@highoctane.be
looks like a bit of C code is required. http://stackoverflow.com/questions/13646621/how-to-get-mac-address-in-windows-with-c Maybe a good time to put the C code generator to the test. Phil Le 2 mai 2015 15:55, "Usman Bhatti" a écrit : > Hello, > > Has anyone tried to retrieve MAC address(es) o

[Pharo-users] mac address on windows

2015-05-02 Thread Usman Bhatti
Hello, Has anyone tried to retrieve MAC address(es) of a windows machine using Pharo? I have tried two options thus far without any success: 1/ OSProcess: I tried (PipeableOSProcess command: 'ipconfig /all') output. This opens a command prompt on windows machine without anything happening inside