Page 4 of 5
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Thu Jan 28, 2010 2:46 am
by Rathinagiri
Thanks Roberto.
As first step, I am matching HMG's "define window" command with that of xhgtk's init window command. Let us see, whether I can succeed.
![Smile :)](./images/smilies/icon_e_smile.gif)
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Thu Jan 28, 2010 3:35 am
by Roberto Lopez
rathinagiri wrote:Thanks Roberto.
As first step, I am matching HMG's "define window" command with that of xhgtk's init window command. Let us see, whether I can succeed.
![Smile :)](./images/smilies/icon_e_smile.gif)
Ok!
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Thu Jan 28, 2010 5:42 am
by Rathinagiri
After some alterations, I could compile helloworld.prg in hmg style.
The number of dll files required to run the program made me worried.
![Sad :(](./images/smilies/icon_e_sad.gif)
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Thu Jan 28, 2010 12:33 pm
by Roberto Lopez
rathinagiri wrote:After some alterations, I could compile helloworld.prg in hmg style.
The number of dll files required to run the program made me worried.
![Sad :(](./images/smilies/icon_e_sad.gif)
What do you exactly mean?
The runtime files to execute the app?
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Thu Jan 28, 2010 1:52 pm
by Rathinagiri
Yes Roberto. Run time dll files.
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Thu Jan 28, 2010 8:41 pm
by Roberto Lopez
rathinagiri wrote:Yes Roberto. Run time dll files.
Well... anyway You'll run the app on Linux only, so, the dlls required on Windows, doesn't matters.
I'm not sure, but I guess that if your distribution has GTK already (almost all have it) you'll not need anymore besides your app binary (.o).
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Fri Jan 29, 2010 12:24 am
by Rathinagiri
Ok. Now I understand.
I will try to give a decent version after cleaning my code.
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Fri Jan 29, 2010 11:04 am
by sudip
Hi Rathi,
Thanks a lot for your work
I am very much
tempted to see the
FIRST window created with HMG+gtk ![Very Happy :D](./images/smilies/icon_e_biggrin.gif)
If possible can you please upload the screen shot of the window.
BTW, yesterday I got the Ubuntu CD from Canonical. I tested it with my Celeron laptop
![Wink ;)](./images/smilies/icon_e_wink.gif)
(at 1:30 am!!!
![Wink ;)](./images/smilies/icon_e_wink.gif)
) . Yes, I couldn't believe it's performance, even running from CD
With best regards.
Sudip
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Fri Jan 29, 2010 1:32 pm
by Rathinagiri
Yes Sudip.
Even though it is not much different, here is the screenshot.
![hw.jpg](./download/file.php?id=638&sid=c58af7d70d654774efdc42d441f45ef4)
- hw.jpg (9.49 KiB) Viewed 3836 times
This is the code. Note the change in the include file.
Code: Select all
# include "xhgtk.ch"
# include "hmgtk.ch"
function main
define window helloworld at 0,0 width 400 height 300 title "Hello World" main
end window
activate window helloworld
return nil
Re: Windows vs Linux - Cars vs Motor Bikes?!
Posted: Fri Jan 29, 2010 1:58 pm
by mol
nice work, Rathi!