Re: A few newbie questions
- Posted by Greg Haberek <ghaberek at gmail.com> Nov 29, 2004
- 545 views
> Back in the 80's an 90's I did a lot of programming on Commodore 128, Amiga > 500, and PC. All was done in Basic, MC or assembler. 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. :) > Now after some years I want to get back into programming again, but this time > I want to find the optimal language, that which offers the most possibilities. I > was first thinking of C++ which appears what the Pro's are using, but then I came > across Euphoria and noticed all the alledged advantages to C++. So Im thinking of > maybe trying that instead. > > My question is however, can you do the exact same things with Euphoria that > you can with C++? 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:
-- 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 )
> 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) 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? 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 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. HTH, ~Greg