Re: A few newbie questions
- Posted by Rich <ra at zantra.dk> Nov 30, 2004
- 513 views
Greg Haberek wrote: > > I originally got me feet wet in programming on my uncle's Commodore > 64. He has one of his C64s interfaced into an electronic dart board > (some cheap-o board) with custom software, all because he couldn't > find a dart board that would play cricket. :) Yea, despite their limitations compared to today's computers, you could do some pretty cool stuff with them :) > With open_dll(), define_c_func(), define_c_proc(), c_func() and > c_proc(), we are able to use any function in any C dll. A couple > people have even written libraries to use C++ dlls with all their > object-oriented goodness. With Win32Lib and other similar libraries, > we're able to put together a Windows GUI in a matter of seconds, with > only a few sparse lines of code. > > Take this for example: > }}} <eucode> > -- simple Win32Lib demo > include Win32Lib.ew > > -- create a window with the title "Win32Lib Demo" with no parent, > -- default positioning, a size of 320x240 and no style flags. > constant MyWin = create( Window, "Win32Lib Demo", 0, Default, Default, > 320, 240, 0 ) > > -- run the main loop, opening MyWin as a normal window > -- (as opposed to Maximized or Minimized) > WinMain( MyWin, Normal ) > </eucode> {{{ Sounds very good. Where do you find documentation for using the C libraries? > > > And how about Binder and Translator, will you need both or just one of them? > > And which C++ compiler > would you recommend (freeware or commercial)</font></i> > > Personally, I like the Translator. I don't know why. Both allow you to > package your app for easy distribution. The Binder allows for full > error information when your app crashes, since it is still running > Euphoria code (or IL - Intermediate Language). I guess I like the > 'bragging right' that come with the Translator. How many other people > say that they can write and develop a program in a short period of > time with their favorite language, then translate it to C, which > everyone uses and understands, and is known for its speed? Yes, I'm more for the Translator too. > > I use Borland's compiler. It works great. I've had no issues with it, > and it compiles very fast. I guess there is an issue with console apps > requiring two keystrokes at the "Press Enter..." prompt, but that > hasn't come up for me, since I typically use Euphoria for Windows > apps. I have an over ten year old Borland C++ ( v4.something I think) which I bought used once. Will that do, or do you think it's too old? If not, will there be any advantages in using a newer version anyway? > > I don't think you'll be disappointed with Euphoria. There are some > people leaving due to personal differences with Robert Craig, which I > understand. Some people just don't get along with others. It is > unfortunate that they are leaving, they will be missed, and their work > will always be appreciated. OK. Will this affect the future development of the language? thanks, Rich