Tuesday, WinDEV.
As I was to find out a solution to the big number problem in our software, I imagined I could write the code in Ruby, make it stand-alone with rubyscript2exe, and call it from WinDEV.
*Laughs*
The Ruby part went fine (of course), but I couldn’t manage to get something else than 0 when I call it from WinDEV. And then I noticed that I forgot a blank space, so instead of calling “C:\zlab\rlmc.exe 8708″, it was launching “C:\zlab\rlmc.exe8708″, FUCKING SILENTLY !
So after some tests, I went to this conclusion : one of the two signatures of the LanceAppli function doesn’t work (by work I mean raise and exception in such a case).
If you’re interested in knowning more about it, here you are :
- the Ruby code
- the WinDEV code, commented in US (and its PDF version)
- what it outputs first
- and then
- LanceAppli() function reference (in French)
My advice : DON’T MESS WITH WINDEV OR YOU’LL GO INSANE !
(and finally, I coded an int z_modulo(string s, int n)
function to keep all the code in WinDEV)