Sign in to follow this  
shishio

Why is it called nFunsterStil?

Recommended Posts

I was trying out dev-c++ and I noticed they call the nCmdShow variable nFunsterStil... I was just curious if there's any deep meaning behind using this name?

Share this post


Link to post
Share on other sites
In German, "Window style" would be "Fensterstil". I would assume that name comes from a German derivative.

edit - was quote-crazy.

[Edited by - Dave Hunt on July 1, 2005 10:09:35 AM]

Share this post


Link to post
Share on other sites
Yes. But still strange: usually, nCmdShow sets whether to show (SW_SHOW) or hide (SW_HIDE) a window; not its style. Well, in some bended way it can be considered to be a style I guess.

Greetz,

Illco

Share this post


Link to post
Share on other sites
Quote:
Original post by Dave Hunt
Well, I guess technically, minimized, maximized, normal, etc. would be considered styles.


Maybe thats the misconception, because those are all identifiable as window states not styles.

Share this post


Link to post
Share on other sites
[grin]

This is from a book on windows programming that i own, titled Programmera Windows med C/C++ by Jesper Ek and Rasmus Ekman (written in swedish).
Quote:
int WINAPI WinMain( HINSTANCE hDennaInstans, HINSTANCE hTidigareInstans, LPSTR lpszArgument, int nFunsterStil )

Note that Window style is Fönsterstil in swedish, but since compilers won't like the letter ö, Funsterstil is used instead. [grin]

And yes, it is crazy to translate nCmdShow to nFunsterStil. nVisningskommando would have been a better translation (if it should be translated at all).

Stay sharp.

Share this post


Link to post
Share on other sites
Quote:
Original post by staaf
And yes, it is crazy to translate nCmdShow to nFunsterStil. nVisningskommando would have been a better translation (if it should be translated at all).


Wouldn't 'nVisa' actually reflect the original intent better?

Anyhow anyone coding in anything but english should (in most cases) be taken outside and shot, I just hate reading sourcecode where the variable names uses another language than keywords.

Share this post


Link to post
Share on other sites
Coding with variable/function names/comments that aren't in English is BAD imho. Why? Noone understands your code if you need help with it, and the same goes if you start building a game/app and later on try to find someone to help you.

I code myself in English, while Dutch is my native language.

Toolmaker

Share this post


Link to post
Share on other sites
Also like it or not english is the de facto language of our chosen profession and the more exposure to it we get the more fluently we'll interact with our peers. I've reached a level where I *think* in english when it comes to programming and trying to explain it using my native tounge (swedish) requires me to translate my thoughts.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this