Try making x,y,z to be integers instead of double. I'm totaly guessing, because I'm really tired =(. However, it might work, because you're having implicit casting.
Type: Posts; User: Newbeee
Try making x,y,z to be integers instead of double. I'm totaly guessing, because I'm really tired =(. However, it might work, because you're having implicit casting.
That's correct.
The good thing about properties is that you can do additional processing of values that users store or retrieve. For example, say you have a property called Age. If you would make Age a public...
Yes!!!! Works perfectly. Thank you guys very much! So basically, compiler includes all the files my application uses into the executable? Thanks again.
How would I do that? And also, how can I compile file as .c in VS 2005?
Ok, I've been trying to figure this thing out, but still don't have any clue. Maybe because I have .NET framework 2.0 installed on my computer and not on the others plays role? However, I'm only...
If you want to use Windows API, then Charles Petzold's "Programming Windows" is the best way to go. Online tutorials do not give you enough information. If you want to reach your full potential, you...
There is this function called ScrollWindow(), which supposed to scroll the contents of the window. Well, atleast that's what documentation says. However, when I use it, it doesn't work how I would...
Thank you for the link. But why the rest of the variables are not declared as static?
I don't quite follow your explanation. Isn't static has only one meaning, that is, making a variable exist after the function is terminated?
Can someone explain me one thing, why do you put static variables in the main function of the program. For example, in Petzold's "Programming Windows", he has
WinMain(...) {
static TCHAR...
Well, putting C in front of the class is just the convention. Like dpro said, it helps to know if it is a class, a function, or just a variable. Also, putting m_ in front of the variable means that...
I'm using Visual Studio 2005 and have Windows XP on both computers.
Hi guys, I have a little problem! I want to run the program that I made, on the different PC. In my project directory I have an executable that works perfectly on my computer. But when I try to run...
Well, is it proven that .NET is lacking speed compared to the rest? I would like to see such article.
Well, isn't Vista's API would be the extended version of Windows Forms? Officials say that it will be the only way to access full features of the new platform. Besides, because it is part of .NET...
Well, I've done a little research and got more familiar with windows API. After a while, it does not seem so awful to me anymore. This is my opinion, I think that .NET is the future and Windows Forms...
Oh, man. I was hoping that there is only one answer to my problem. The truth is, even though there are about 60 lines of code to create the Application in API, there are so many variables and Data...
I'm just beginning to program windows applications with Windows API, which is pretty hard, because there is a LOT of code. Anyways, my question is - is there a difference between using MFC and...
Well, I wouldn't consider Garbage Collection to be a difference, because managed C++ (C++/CLI) has it. So from what I understand, C# is good if you want to create windows applications. But if you...
Can anybody please explain why is C# better than C++. What can C# offer that C++ can't. Is C# the future of windows programming? I've tried to search the web, but all I got was syntax differences and...
You didnt really give enough info. What the chapter is about? Is there any code? From what I know, "interface" of the class is the declarations of its members. Basically, interface tells what your...
I tried to do simple template function inside the class and everything worked out. Hope this helps:
#include <iostream>
using namespace std;
class myClass {
public:
template<typename T>...
Yeah, that's how i mistaken it, because it was all in one line. But that's a great example to demonstrate polymorphism!
I understand you Magos, thanks for an example. One qustion though, you declare BinaryTree with 3 arguments instead of two. Is it your mistake or I just didn't get it. OH, nevermind you did it right ...