1. Win32lib errors

David, I must say that your win32 library is a must...
I was beginning to program a roguelike game in Liberty Basic (an easy and good
language for windows) but the language itself is too slow...
I discovered by accident Euphoria and your win32lib and I was thinking do my
game in Euphoria  win32 platform.
Your library is awesome but unfortunly  some fundamental GDI functions to
display bitmaps aren't yet implemented so I can't program in Euphoria for now...
:(

The reason I write is because a bug when I run some win32 programs (not in your
demos)...
Sometimes the compiler gets stuck in the reverse function... If I delete that
function from your library that programs run...


--
N u n o  B a r r o s                      [ W e b   D e s i g n e r ]
----------------------------------------------------------------------
[ m a i l ] nuno.barros at ip.pt             [ i c q ]     6 4 4 8 3 8 8
----------------------------------------------------------------------
[ Webdesign Portfolio ]                   http://nuno.homepage.nu
[ e.topia ] -in construction-             http://etopia.homepage.nu
[ Chaos Squad ]                           http://gollop.homepage.nu
[ L I M B O ]                             http://ip.pt/~ip232283/limbo
----------------------------------------------------------------------

new topic     » topic index » view message » categorize

2. Re: Win32lib errors

Nuno Barros wrote:

> Your library is awesome but unfortunly  some fundamental
> GDI functions to display bitmaps aren't yet implemented so
> I can't program in Euphoria for now... :(

As I mentioned, Win32Lib is being overhauled, so it might be a while before
I start adding new functions.

BUT...

It's *not* that hard to add your own calls to the GDI! Wrappers for Win32
functions are pretty easy to write. You can use the Win32Lib routines
getDC/releaseDC and getHandle to get the DC and handle (hWnd) of windows. If
you know what you are missing, they should not be that difficult to add. You
can probably build your own include file to add the functions.

> The reason I write is because a bug when I run some win32
> programs (not in your demos)... Sometimes the compiler gets
> stuck in the reverse function... If I delete that function
> from your library that programs run...

Do you have the most current version? This is a name conflict with Euphoria
2.1, which has reverse() as a native function. The current version is
supposed to have renamed reverse() to Reverse() to avoid the name conflict.
I'll check it out.

Thanks!

-- David Cuny

new topic     » goto parent     » topic index » view message » categorize

3. Re: Win32lib errors

Cuny, David wrote:

> As I mentioned, Win32Lib is being overhauled, so it might be a while before
> I start adding new functions.

I'm sorry to hear that...   :(

>
>
> BUT...
>
> It's *not* that hard to add your own calls to the GDI! Wrappers for Win32
> functions are pretty easy to write. You can use the Win32Lib routines
> getDC/releaseDC and getHandle to get the DC and handle (hWnd) of windows. If
> you know what you are missing, they should not be that difficult to add. You
> can probably build your own include file to add the functions.
>
>

The problem is that I'm a bit scary about dealing with dll calls/C
functions...my coding knowledge isn't so good enough...Besides that I don't know
how to convert the Liberty Basic function calls ( where I usually use them) to
the euphoria language...
The Api calls from GDI that I need are CreateCompatibleDC,
CreateCompatibleBitmap, SelectObject, BitBlt, DeleteObject...
maybe with more time I can understand how to translate the L. Basic code to
Euphoria...
I think that this calls are very important in any windows language to people who
want do cool games that deal with bitmaps...
I'm surprised that no one in euphoria community already do it!

Thanks for all.
Nuno

>
>
> Do you have the most current version? This is a name conflict with Euphoria
> 2.1, which has reverse() as a native function. The current version is
> supposed to have renamed reverse() to Reverse() to avoid the name conflict.
> I'll check it out.

Thanks! I discovered what's wrong... All the programs that have that error
used0.15 bleeding alpha version, so have the Reverse/reverse problem... I
replaced all the old library files for the new one and now everything's is
fine...

>
>
> Thanks!
>
> -- David Cuny



--
N u n o  B a r r o s                      [ W e b   D e s i g n e r ]
----------------------------------------------------------------------
[ m a i l ] nuno.barros at ip.pt             [ i c q ]     6 4 4 8 3 8 8
----------------------------------------------------------------------
[ Webdesign Portfolio ]                   http://nuno.homepage.nu
[ e.topia ] -in construction-             http://etopia.homepage.nu
[ Chaos Squad ]                           http://gollop.homepage.nu
[ L I M B O ]                             http://ip.pt/~ip232283/limbo
----------------------------------------------------------------------

new topic     » goto parent     » topic index » view message » categorize

4. Re: Win32lib errors

>The problem is that I'm a bit scary about dealing with dll calls/C
>functions...my coding knowledge isn't so good enough...Besides that I don't
>know
>how to convert the Liberty Basic function calls ( where I usually use them) to
>the euphoria language...
>The Api calls from GDI that I need are CreateCompatibleDC,
>CreateCompatibleBitmap, SelectObject, BitBlt, DeleteObject...
>maybe with more time I can understand how to translate the L. Basic code to
>Euphoria...
>I think that this calls are very important in any windows language to people
>who
>want do cool games that deal with bitmaps...
>I'm surprised that no one in euphoria community already do it!
>
>Thanks for all.
>Nuno

Hello Nuno dont be scared about the API calls :)
I think all you need is the Win32.txt (for VB) file and there is something
like Broscos API converter for Euphoria which puts the VB calls into
Euphoria format ... I am right there ? I think i saw something like that in
the samples that came with euphoria ... or maybe its in the archives ...
but i know i saw a program like that LOL since the 2.1 official release i
have to look for it again :).
Greetings Harry (AKA Bearmate on LB ) :)


<<---- Builder of the Euphoria 2.1 Frontend for Windows 95/98 ---->> Just
ask for it :)

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu