That's very interesting thank you!
Cristoff
Posts
-
Global array question [modified] -
Global array question [modified]Wow! Amazing explanation! Thank you so much! :)
-
Global array question [modified]Thank you! It was a lame problem. BTW Very interesting article.
-
Global array question [modified]Thank you for your reply. Well, my code is supposed to be a C code.
-
Global array question [modified]I've declared an array like that in a header (the code should be a pure C code): int someMap[MAPSIZE_X][MAPSIZE_Y]; and I want to use it as a global variable. The problem is if I include that header in another file I get a linker error that this variable was already defined and I'm really stuck here and I have absolutely no clue what's going on and how I'm missing the point. If I use static it is fine but it isn't global any more. "extern int gameMap[MAPSIZE_X][MAPSIZE_Y];" doesn't work as I'm expecting. I get the linker error even if I don't use the array in any files.
modified on Thursday, April 7, 2011 6:34 AM
-
--i not equal to i - 1 ???The first line was enough! Thank you very much! Sometimes, well maybe most of the time I'm so stupid. That's so obvious!
-
--i not equal to i - 1 ???In the following function replacing "number - 1" does not yield the same correct result as "--number"? Why is that so? Am I'm missing something? int sum( int number ) { int result; if (number == 1) return number; else { result = sum(number - 1) + number; return result; } }
-
WindowState.Maximized -- How to get the proper size of the window? [modified]I have a borderless window. A double click on it maximizes it - WindowState.Maximized and WindowStyle set to None. Now I'm trying to get the proper size of that window so that I resize the internal controls. My screen resolution is: 1280 x 800 SystemParameters.MaximizedPrimaryScreenWidth 1288.0 double SystemParameters.MaximizedPrimaryScreenHeight 778.0 double What are these two properties supposed to return actually? Why the width is larger than my screen and the other one smaller? (on my screen visually the windows is OK) ---> Gets a value that indicates the height, in pixels, of a maximized top-level window on the primary display monitor. ---> Gets a value that indicates the width, in pixels, of a maximized top-level window on the primary display monitor. ??? Or SystemParameters.FullPrimaryScreenWidth - 1280 SystemParameters.FullPrimaryScreenHeight - 744 What is the proper way to get the system metrics in WPF? Or there isn't one? SystemParameters.VirtualScreenWidth SystemParameters.VirtualScreenHeight
modified on Friday, August 14, 2009 7:15 AM
-
Need an advice about starting a raster drawing program with WPFTodd Smith wrote:
God only created a single man. That man in turn is responsible for the current mess we're in.
That's exactly what a spammer does: he creates a software (for example) that produces all the spam mails. Do you think that the spammer writes all these mails by hand, I don't think so? So did God before that: he made the ultimate spam and garbage producing creature - the man that is capable of self reproducing the ultimate dream of a spammer-god!
-
Need an advice about starting a raster drawing program with WPFI disagree. God is the biggest spammer of them all. He created man!
-
Need an advice about starting a raster drawing program with WPFDanke! The suggestion seems like a good idea! Thank you!
-
Need an advice about starting a raster drawing program with WPFPete O'Hanlon wrote:
Cristoff wrote: God helps those who help themselves So, you're saying that John is God. Please don't - his ego will run rampant. Cristoff wrote: P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins! Not a good way to get others to want to help you.
I don't know John. I've seen his name around here but I don't know anything about him. But you're correct in your assumption. :) And I'm also being sarcastic :laugh: or maybe I'm trying to preach to him some morale and save him from getting into Hell :laugh:
-
Need an advice about starting a raster drawing program with WPFJohn Simmons / outlaw programmer wrote:
I would help you further, but I have a somewhat acidic sense of humor, and I merely enjoy watching those who worship me struggle with their day-to-day problems. Then, just as things start going for the better for them, I randomly snatch away their pitiful life, reminding them of my presence. I always get a chuckle out of the surprised look on their faces.
I also have a sense of black humor. And I never refuse flaming. I like every opportunity to exercise my English. I just don't think that it's appropriate to spam a serious forum. :)
-
Need an advice about starting a raster drawing program with WPFJohn Simmons / outlaw programmer wrote:
I only help those who help themselves.
Yeah! "God helps those who help themselves" - I know that proverb! What a senseless discussion! Not only you are not helping me but you are wasting my time by making me check your posts. Thanks a lot! ;P P.S. You've missed your opportunity to make a good deed today and help yourself gather credits for the heaven and you've made an evil one. One day you'll have to answer for your sins! :laugh:
-
Need an advice about starting a raster drawing program with WPFNice advice. I've done it. And now if you tell me how to draw pixels on the screen you'll be my God!
-
Need an advice about starting a raster drawing program with WPFI'm sorry about bothering you with such noob question! I'd like to start programming a simple raster drawing program for WPF with layers, etc. (something like paint.net) as a learning project. Do you have any ideas where should I start? I've tried to find similar projects to look at for ideas on google but I couldn't. What components and base classes are suitable to try?
-
Haft Sin هفت سین [modified]For Christmas (that is 5 days before New Year) we also put 7 types of food on the table. What a coincidence. :laugh: :laugh: :laugh:
-
A Database Design Problem - CatalogueThank you! Interesting suggestion. I'll think about it. It could do the job!
-
A Database Design Problem - CatalogueThank you! What I have in mind for example is the product browser of the website http://www.farnell.com This site is huge. Mine will be very small with not that many items (compared to Farnell) and with few users. I have difficulty to accept the idea with NULLable columns yet, because because I might end with dozens and dozens if not hundreds of columns. Thank you for the remark. A friend of mine also told me: "Forget about that OOP way of thinking". I'll think about my problem a little while longer.
-
A Database Design Problem - CatalogueI don't understand how to do that yet.