1. win32lib

Oh my goddess!! a NEW application released 2 days ago, using win32lib 
version 0.42 !!

-- Win32Lib
-- "Bleeding Edge" 0.42e
-- (c) 1999 David Cuny

I am SO glad the release included that version, i have 2 v0.42 floating around 
that i use!

Kat

new topic     » topic index » view message » categorize

2. win32lib

Errr,, i think i found some of the problem,, i have these files scattered
around:

ExWin32lib.ew    220K  2/1/99
Win32lib.ew     145K 6/4/98
Win32lib.ew     171K  12/20/98
Win32lib.ew     190K 4/1/99
Win32lib.ew     145K 8/24/98
Win32lib.ew     145K 6/4/98
Win32lib.ew     167K 12/28/98
Win32lib.ew     176K 2/26/99
Win32lib.ew     194K 7/8/99
Win32lib.ew     160K 10/28/98

Which is the right one to be running in the include directory? And why do i
keep getting this in the err file:

D:\EUPHORIA\INCLUDE\win32lib.ew:20
attempt to redefine or_all
global function or_all(sequence s)

Kat

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

3. Re: win32lib

Kat wondered:

> Which is the right [version of Win32Lib] to be
> running in the include directory?

I'd just go with the latest posted version. It's got a couple bugs, but I
would *guess* you are unlikely to trigger any of them. I'll post the latest
version some time today once I get a chance to test it.

> And why do i keep getting this in the err file:
>
> D:\EUPHORIA\INCLUDE\win32lib.ew:20
> attempt to redefine or_all
> global function or_all(sequence s)

Perhaps you are loading win32lib more than once, and Euphoria allows it
because they have different paths, so it thinks they are difference files.

-- David Cuny

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

4. Re: win32lib

As you can imagine, David, I was fairly determined not to take your bait...

And to make it even tougher for myself, I freely agree with almost all your
comments on coding styles, even with your comments on comments!

Let me add just my pet hate: for goodness' sake, people, turn the
'tabs-to-spaces-on-save' option in your lousy editors ON! (By the way, why
would anybody  want anything but FOUR spaces per tab is beyond me, but I
have already seen 1, 2 and 3, and also 8 seems to be very popular, probably
a forgotten default.) If you don't, you will not recognize your own code
when it is loaded into some else's editor!

Now I must admit I used 2 and 3 space tabs in my darker periods, in pascal
and in C. In Euphoria you simply cannot justify anything less than four. And
if you really often run over the right margin, then obviously you are not
factoring your routines enough. And that's a crime in a language which has
some of the cheapest calls.

And lastly, perhaps, a friendly advice to our Ferdinands and Thomases:
comment often, and indent properly - it will help you immensely to
understand your own code!

jiri

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

5. Re: win32lib

On Fri, 29 Sep 2000 04:47:25 GMT, jiri wrote:

>Now I must admit I used 2 and 3 space tabs in my darker periods, in pascal
>and in C. In Euphoria you simply cannot justify anything less than four.

Um... I can.  Personally, I prefer indenting 2 spaces.  I typically avoid
the TAB key all together and just tap the space bar a few times.  I find it
very readable yet compact.  I've always thought 4 spaces was overkill and
too much white space for nested loops.

Guess it's just a matter of opinion...  But I definitely agree that no
program should contain tab codes.
-- Brian

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

6. Re: win32lib

jiri babor wrote:

> And to make it even tougher for myself, I freely agree with
> almost all your comments on coding styles, even with your
> comments on comments!

Thanks,  I'm (almost) speechless.

It's good to see that you finally found a Linux distro that would install.
The Peanut distro looked pretty cool. Ironically, I've replaced Linux on my
little i-opener with free QNX - it's a zillion times faster, and even has
Python on it... somewhere...

Pete, when are you releasing Peu for QNX?

-- David Cuny

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

7. Re: win32lib

Brian Broker wrote:

>... But I definitely agree that no program should contain tab codes.

Strangely enough, Brian, tab codes alone are not a problem, it does not
really matter how your editor interprets them. The things get really messy
only when the tabs are mixed with plain space indentation, which of course
is exactly what invariably happens.

jiri
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at
http://profiles.msn.com.

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

8. Re: win32lib

> Is there any way to determine if the data in a SLE is alpha or
numeric,
> and if its alpha is there a way to force it to be all caps? I would
> appreciate any help I can get esp. if anybody has all ready done
> somthing like this.

Howdy Bret,

Everyone else has been doing things the long way as far as I see it.
Why not let windows do it for you?

All you have to do is add these two constants to your code (or into
win32lib if you like) and you're home and hosed.

In fact - here's a whole pile of constants David left out. Enjoy!

-- mikes WIN32LIB additions

    ES_LOWERCASE    = 16,
-- convert text to lowercase

    ES_UPPERCASE    = 8,
-- convert text to uppercase

    ES_NOHISESEL    = 256,
-- show selection, even when not active

    ES_NUMBER       = #2000,
-- only allow numbers

    ES_OEMCONVERT   = #400,
-- something... ;)

    ES_PASSWORD     = 32,
-- displays * instead of chars

    ES_READONLY     = #800,
-- user cant type into here...

    ES_WANTRETURN   = 4096,
-- adds a \n to the returned text


Happy coding :)
==
Mike Fowler - wildcat_nz at yahoo.com  o__ ---
wildcat_nz at yahoo.com               _,>/'_ ---
"the limitations are limitless"   (_) \(_) ---
 - Beck

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

9. Re: win32lib

Cool! But could you show me how to use the constants (i.e. I put them in
an Include but then what and  how would I use them in my program? also
can I create my own include or must they be added to Winlib32?  Thanks
for your help

                                                                    Bret

Mike Fowler wrote:

> > Is there any way to determine if the data in a SLE is alpha or
> numeric,
> > and if its alpha is there a way to force it to be all caps? I would
> > appreciate any help I can get esp. if anybody has all ready done
> > somthing like this.
>
> Howdy Bret,
>
> Everyone else has been doing things the long way as far as I see it.
> Why not let windows do it for you?
>
> All you have to do is add these two constants to your code (or into
> win32lib if you like) and you're home and hosed.
>
> In fact - here's a whole pile of constants David left out. Enjoy!
>
> -- mikes WIN32LIB additions
>
>     ES_LOWERCASE    = 16,
> -- convert text to lowercase
>
>     ES_UPPERCASE    = 8,
> -- convert text to uppercase
>
>     ES_NOHISESEL    = 256,
> -- show selection, even when not active
>
>     ES_NUMBER       = #2000,
> -- only allow numbers
>
>     ES_OEMCONVERT   = #400,
> -- something... ;)
>
>     ES_PASSWORD     = 32,
> -- displays * instead of chars
>
>     ES_READONLY     = #800,
> -- user cant type into here...
>
>     ES_WANTRETURN   = 4096,
> -- adds a \n to the returned text
>
> Happy coding :)
> ==
> Mike Fowler - wildcat_nz at yahoo.com  o__ ---
> wildcat_nz at yahoo.com               _,>/'_ ---
> "the limitations are limitless"   (_) \(_) ---
>  - Beck
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com

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

10. Re: win32lib

Ignore my previous post, I figured it out. This was just what I wanted.
Thanks it works perfect.
                                            Bret

Mike Fowler wrote:

> Howdy Bret,
>
> Everyone else has been doing things the long way as far as I see it.
> Why not let windows do it for you?
>
> All you have to do is add these two constants to your code (or into
> win32lib if you like) and you're home and hosed.
>
> In fact - here's a whole pile of constants David left out. Enjoy!
>
> -- mikes WIN32LIB additions
>
>     ES_LOWERCASE    = 16,
> -- convert text to lowercase
>
>     ES_UPPERCASE    = 8,
> -- convert text to uppercase
>
>     ES_NOHISESEL    = 256,
> -- show selection, even when not active
>
>     ES_NUMBER       = #2000,
> -- only allow numbers
>
>     ES_OEMCONVERT   = #400,
> -- something... ;)
>
>     ES_PASSWORD     = 32,
> -- displays * instead of chars
>
>     ES_READONLY     = #800,
> -- user cant type into here...
>
>     ES_WANTRETURN   = 4096,
> -- adds a \n to the returned text
>
> Happy coding :)
> ==
> Mike Fowler - wildcat_nz at yahoo.com  o__ ---
> wildcat_nz at yahoo.com               _,>/'_ ---
> "the limitations are limitless"   (_) \(_) ---
>  - Beck
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com

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

11. Re: win32lib

> Ignore my previous post, I figured it out. This was just what I
wanted.
> Thanks it works perfect.
>                                             Bret

glad to be of sevice. constants are one thing i can code without
errors :)

I might make an include file containing all the constants for list
boxes, mle's, single lnie edits etc that are not in win32lib. I'll see
how much time I get.

enjoy...
==
Mike Fowler - wildcat_nz at yahoo.com  o__ ---
wildcat_nz at yahoo.com               _,>/'_ ---
"the limitations are limitless"   (_) \(_) ---
 - Beck

_________________________________________________________
DO YOU YAHOO!?
Get your free @yahoo.com address at http://mail.yahoo.com

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

12. win32lib

Is it any differences( windows programming differnces) between:
-- Win32Lib
-- "Bleeding Edge" 0.45r
-- (c) 2000 David Cuny
(old version)

and this

-- Software ID: win32lib
-- Version:     0.60.6 19/September/2004
-- Copyright:   (c) 2000 /"David Cuny" and friends
--              All rights reserved.
(new version, "all use it")

Regards,
  gunnar

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

13. Re: win32lib

Yes, there are big differences. The 'original' Win32Lib was written by
David Cuny, and he has since dropped support. Derek Parnell has taken
over with the 'New' Win32Lib. David still receives credit, since he
wrote the original, but much if the internal code and support has been
updated.

As far as Windows programming differences, there are many. The old
Win32Lib did not support as many controls as the new Win32Lib does.
Also, the New Win32Lib is more stable with less (if any) memory leaks,
which Win32Lib often suffered from. The New Win32Lib takes a few
different approaches to programming Windows, not just the "control =
create(...)" scheme, but with newUIObj() and loadForm(), etc... Read
the docs for more information.

~Greg

On Wed, 20 Oct 2004 10:40:30 -0700, gunnar( beginner )
<guest at rapideuphoria.com> wrote:
> 
> posted by: gunnar( beginner ) <gunnar_secret at hotmail.com>
> 
> Is it any differences( windows programming differnces) between:
> -- Win32Lib
> -- "Bleeding Edge" 0.45r
> -- (c) 2000 David Cuny
> (old version)
> 
> and this
> 
> -- Software ID: win32lib
> -- Version:     0.60.6 19/September/2004
> -- Copyright:   (c) 2000 /"David Cuny" and friends
> --              All rights reserved.
> (new version, "all use it")
> 
> Regards,
>  gunnar
> 
> 
> 
>

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

14. Re: win32lib

gunnar( beginner ) wrote:
> 
> Is it any differences( windows programming differnces) between:
> -- Win32Lib
> -- "Bleeding Edge" 0.45r
> -- (c) 2000 David Cuny
> (old version)
> 
> and this
> 
> -- Software ID: win32lib
> -- Version:     0.60.6 19/September/2004
> -- Copyright:   (c) 2000 /"David Cuny" and friends
> --              All rights reserved.
> (new version, "all use it")
> 

These are the same library, though the first is a several years old 
version, and the second is the newest, and best, version around.
Tell me a reason you wouldn't use the newest, gunnar?

Regards, Alexander Toresson

Shhh! Be vewy quiet! I'm hunting wuntime ewwows!

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

15. Re: win32lib

On 20 Oct 2004, at 10:40, gunnar( beginner ) wrote:

> 
> 
> posted by: gunnar( beginner ) <gunnar_secret at hotmail.com>
> 
> Is it any differences( windows programming differnces) between:
> -- Win32Lib
> -- "Bleeding Edge" 0.45r
> -- (c) 2000 David Cuny
> (old version)
> 
> and this
> 
> -- Software ID: win32lib
> -- Version:     0.60.6 19/September/2004

I don't understand the question. You are asking if 
"version .45r from 2000" = "version .60.6 from 2004" 
?

Kat

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

16. Re: win32lib

On 20 Oct 2004, at 10:55, Alexander Toresson wrote:

<snip>

> Tell me a reason you wouldn't use the newest, gunnar?

I can!
Some programs won't run with the new version!

But i forget which, since they are internet apps i have not used in years, 
because i gave up on Eu being useable online with wininet or winsock or 
anything else like that, and switched to tcp4u and wget.exe and mirc. Even 
rebol, heck, uses one line to get anything from the internet, instead of 
matching Eu versions and includes and 50,000 lines of code. RDS seriously 
needs to get Eu out of the days of dos batch language to grow.

Kat

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

17. win32lib

I think the win32lib is unreliable.
My application works in w3205709, but sometimes unknow errors occur.
When I replaced the include files with w32005805, the programm doesn't 
run, an error occurs in createEx() function, but the ex.err file shows 
that the error occurs in EuCom.ew.

The win32lib should be quite safe and strong, and become a stand library 
in Euphoria.

--
My favorite languages:
C#, Euphoria,Python, Haskell, Curry

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

18. Re: win32lib

On Wed, 14 May 2003 04:43:11 +0000, Liu Junfeng <rufi at 163.com> wrote:

>
> I think the win32lib is unreliable.

I totally agree.

> My application works in w3205709, but sometimes unknow errors occur.
> When I replaced the include files with w32005805, the programm doesn't 
> run, an error occurs in createEx() function, but the ex.err file shows 
> that the error occurs in EuCom.ew.

w32005805 has many bad bugs in it. I would not use it for anything.
 http://www.users.bigpond.com/ddparnell/euphoria/w32005806.zip

is a lot better. I'm uploading version 0.58.7 tonight (about 8 hours away) 
and that is even better.

> The win32lib should be quite safe and strong, and become a stand library 
> in Euphoria.

I totally agree. However, it is not finished yet and this takes time and 
money. You got any of either to spare? All help gratefully received.

And a BIG thank you to all the people who keep sending in fixes and 
improvements. I just wish I had time to deal with them all quickly.

-- 

cheers,
Derek Parnell

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

19. win32lib

Hi I guess I can learn some of what I need from reading David  Cuny's
win32lib document.  I will be reading it to learn some of what I need to
understand there and maybe can use the structures to load and fetch data
from data types that he uses to get the directory data and size info from
the FtpGetCurrentDirectory funtion...
    Intesting stuff..I have a feeling I am learning C from the outside in
sometimes...
Monty in Oregon

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

Search



Quick Links

User menu

Not signed in.

Misc Menu