Pierre Baillet <pierre.baillet / zoy.org> wrote in news:20020204131608.GB23464 / zoy.org: > Hi, > > I've recently discovered ruby and played a bit with it. I've now > reached a point where I don't know how to. So here is my question: I > was wondering how to manipulate the Win32Api.new function so that I > can call a function which takes a char ** parameter as input/output. I > thought that using a 'p' would be enough but it doesn't seem to work. > > > Another point is that I wanted to use some low level shell32 function > to display a nice popup in the windows traybar. So far, i've been > unable to get the "HWND" handle of the ruby process (i'm using the > mswin32-ruby). > > > Any idea on how to do these things with ruby ? > > > Thanks for your answers, > > ps: could you please cc me as i'm not subscribed to the ml :) Good luck here... Win32API apears to be one of the black holes of ruby knowledge ;) I recently was working on a project where I hada to use a dll to get values from a peice of hardware, I spent a long weekend trying every poosible permutation of 'P', 'N' and 'L' I could think of, and I couldn't make it work (this confusion was mostly my fault, I later guessed the the dll entry points didn't have the same names as the functions given in the documentation) I had to get the code out the door, so I wrote wrappers for the dll functions I needed in C++, and called those from my main ruby program, and that worked like a champ. besides, I like the look of "session.puts %x{getdata.exe}" much better than the Win32API stuff. Sorry I couldn't be of more help... though .. if you wanted a noble project, a Win32API tutorial would be a great one ;) R.