Re: Windows stuff...

new topic     » goto parent     » topic index » view thread      » older message » newer message

Hi, Tommy, again!

You wrote:

----------
> From: Tommy Carlier <guest at RapidEuphoria.com>
> To: EUforum at topica.com
> Subject: Re: Windows stuff...
> Sent: 13 sep 2004 y. 23:03
> 
> posted by: Tommy Carlier <tommy.carlier at telenet.be>
> 
> If such a standard API-library would be made, the constants
> should have a prefix, to reduce the chance of possible naming
> conflicts.

I think, that a standard API-library must to have the
original Windows API names for constants and for routines.
Then you can just take the original API docs and to be sure
that your constant or routine's parameters are right.

I do not like any intermediate docs and any intermediate
names because of they are unreliable and duobtful anyway.

> Win32Lib uses x as a prefix (xSetVisible, ...) for functions,

It is one of Win32Lib drawbacks, I think.

> but no prefix for constants and structures. 

It is a good side, I think.

> Perhaps it would be good to prefix all definitions.

No, I think. Too many extra job without any sense.

> I suggest 'api' as prefix, unless someone can find 
> a better prefix (or multiple prefixes).
> Examples: apiSetVisible, apiWM_PAINT, ...

Then you must to know both: apiSetVisible and SetVisible,
apiWM_PAINT and WM_PAINT.
Same as to know two different languages.

Euphoria interface to .dll's is very simple and
it doesn't need any wrapping, I think.

If we use the original constants names and the original 
functions names, we all use the same language, so to say.
Bernie's approach is this one - only the original names
for the API stuff. I like it.

Euphoria is very simple tool, all these more 
complicated things are from Windows and C.

And if you want to program for Windows, the better
way is to learn Windows itself, not any wrapper,
I think. Euphoria gives us the interface, not wrapper.

But *creating* of a wrapper is a very good way to learn
Windows. Then yours wrapper is just yours synopsis, precis,
abstract on Windows API.

Just some thoughts. Just IMHO. 
I'm not a professional programmer.

Regards,
Igor Kachan
kinz at peterlink.ru

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu