Re: Why I need to use C for screen graphics
- Posted by Andrew Katz <Akatz712 at gmail.com> Apr 28, 2007
- 494 views
don cole wrote: > > Andrew Katz wrote: > > > > I would love to have my application be 100% Euphoria, since it claims to be > > such a fast language. However, I have to do some work in C because Euphoria > > is too slow. Euphoria is okay most of the time. But here is an example where > > compiled C is 20 times faster. I wrote a test case to prove it. > > Rensselaer Polytechnic Institute (RPI) -- Code snipped --- > > I ran your code and get: > > F:\eu\WIN32LIB\w32msgs.e:112 in procedure fShowError() > attempt to divide by 0 > pParams = "Draw function not found" > pMode = 2 > lErrCode = 0 > lResponse = 1 > lStyle = 16 > s = "Draw function not found" > lDispMsg = "Draw function not found\n\nWin32Lib v0.60.6 11-Jul-2004" > lTitle = "Win32Lib AppWindow - Fatal Error" > > ... called from F:\eu\WIN32LIB\w32msgs.e:145 in procedure abortErr() > pParams = "Draw function not found" > > ... called from F:\euNFL06\test.exw:36 > > Line 36 being this line: > > abortErr( "Draw function not found" ) > > What am I doing wrong? > > > Don Cole Don: You have to take my C code and use a C compiler (I use Watcom) to make a DLL file. If you are not familiar with C, and really want to learn, contact me off forum. But this test case is really a mute point, since an earlier reply explained to me how to use Euphoria to get my speed improvement. Andy Katz B.S. Computer Science, 1978 Rensselaer Polytechnic Institute (RPI)