• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

100 Neutral

About nullsmind

  • Rank
  1. What makes C++ so powerful?

    I agree with him partially but his response reminds me of an unsocial brat. I'm not suprised his sad life is wasted here on a daily basis. Anyway, I'm thankful that I don't have to deal with it any longer due to a new focus that's more realistic in the real world. I'm sorry that the rest of you have to deal with Oluseyi.
  2. What makes C++ so powerful?

    Oluseyi, I'm suprised you're still here after all these years, and that you still have time to chat with us beginners! Half the time I see you quoting noobs and attack them. Maybe you should open a new board section called Rants. You'd fit perfect there :) Please get a life outside of this sometime. The real world may benefit from your knowledge, but not your social side. Maybe that's why you have time here.
  3. What makes C++ so powerful?

    I'll add some answers as of why it's powerful: 1) It's a middle-level language, meaning it has the best of high-level languages with the control and flexibility of assembly language. New languages are judge with C++. Most algorithms & examples (even DirectX) will be written in C++ code. 2) It is portable, but not in a platform sense as Java. This just means that assembly language is not portable from machine to machine, but using C/C++ as a layer above makes programming in it portable. 3) It has been used for numerous things, such as operating systems, interpreters, file utilities, device drivers, performance enhancers, etc. 4) It's a general language, meaning it's not tied to a commercial company such as Sun or Microsoft. If anyone owns it, I'd have to say ANSI/ISO. 5) For GUI development, there are third-party Windows APIs that are similar to C#'s syntax which indeed do the same work: access the Win32 API. Several companies use these for their GUI work. Visual Studio 2005 also has the C++/CLI which is full C++ with a C# syntax feel. It also has a full WYSIWYG editor! SmartWin++: http://smartwin.sourceforge.net/ Gtkmm: http://gtkmm.sourceforge.net/ V GUI C++: http://www.objectcentral.com/ Qt: http://www.trolltech.com/ Why I use it more and more these days is because it can build operating systems to the most complex 3d games to date. I don't think any other language can claim this. [Edited by - nullsmind on May 9, 2006 3:48:23 PM]
  4. Is C# good enough for system utility programming

    Wasn't there a recent article saying that Vista moved back to C++? Regardless, I have a friend at MS who knows about that. I remember the TV news talking about MS's new .NET security, but that was before this. Anyhoo, thanks, I'll stay with C++ for this kind of work.
  5. I have a large interest in systems programming, such as low-level utility programs. C++ seems like an obvious choice, but I've also enjoyed .NET for GUI development, etc. Is the new C++/CLI better than C# for this kind of work? I'm still doubting C# has wrapped the entire Win32 API because there seems to be a ton of pinvoking still. Some examples of utility programs would be spyware removal programs, windows washing, operating systems, etc. The more I write ths, the more C++ seems the #1 choice, but I thought I'd hear from you anyway on this topic. Thanks!
  6. I wonder why VS05 hides the events unless I create a custom control.
  7. I noticed that there are no key events for a panel such as OnKeyDown() and OnKeyUp(). Is it possible to make a user control of a panel that would have the events? Also, I'd need the double buffer property too. I'm suprised the panel is a bit different than a form. Any help is great. Update: Here's something I'm working with. Let me know how I can improve this. class GamePanel : Panel { public GamePanel() { } protected override void OnKeyDown(KeyEventArgs e) { base.OnKeyDown(e); G.keyState[(int)e.KeyCode] = true; } protected override void OnKeyUp(KeyEventArgs e) { base.OnKeyUp(e); G.keyState[(int)e.KeyCode] = false; } } [Edited by - nullsmind on May 7, 2006 7:19:43 PM]
  8. C# and MCI

    System.Media.SoundPlayer uses WinMM, not MCI. For example, I tried a sample application and SoundPlayer can only play one sound at a time. Does anyone have any insight on this? I need multiple sounds to be played at once, and it's not worth using the DirectX runtime just for this one purpose.
  9. What to learn

    You have a lot of choices, but just start programming. You can begin with C++ since it is a general & well used language, freely download Visual C++ 2005 Express (google), and learn C++ at www.functionx.com.
  10. What to learn

    Games are a specialized type of software. If you haven't built basic software programs such as Notepad, database management programs, etc., I'd suggest doing that first then pick up on games. If you plan to go pro, C++ is a good starting point. If its just for hobbying, either Java or C# would work.
  11. C# and MCI

    Hi, I'm curious if Microsoft made a MCI wrapper yet for .NET 2.0. The goal is to play multiple sounds at once and MCI was helpful in the past using C++. Is my only choice to pinvoke a certain dll?
  12. C++/CLI instead of the Win32 API?

    Quote:No, because it requires the .NET Framework, which a significant number of machines still don't have (particularly 2.0). Normally any professional company would include the required runtimes for distribution, so this point is invalid. Quote:No, because the .NET Framework that you're using is basically an abstraction of Win32. I can see Win32 & the CLI working together to clean up most of the obscure Win32 programming for sockets, windows, etc. Abstraction is usually a good thing these days, but it's nice still being able to use C++ with it. C++ was created due to C's complexity when reaching a certain amount of lines. In the same way, I see C++/CLI helping the C++/Win32 complexity. Quote:No, because, with the advent and emergence of C#, VB.NET and .NET as a whole, C++/CLI becomes an option solely for integrating new codebases written in .NET languages to old ones written in C++. We have a lot of pre-existing applications written in C++ that can benefit with .NET "plugged" in. I still see the CLI great for enabling a safer experience. Quote:No, because there's very little compelling reason to author new codebases in C++/CLI. Sure takes pinvoking away from C# :) Quote: No, because Win32 is being supplanted by a slew of other APIs - which are the real reason Win32 is finally close to being retired, not C++/CLI. No, because despite the advent of WPF and WinFX and so forth, Windows Vista is still built on Win32 and Win64 (with WOW64), and there will always be instances where the abstractions that these nice new APIs provide you make faulty assumptions and you have to dip a level or two down to get the behavior you want without a performance penalty. Win32 dies when Microsoft delivers a Windows OS not built on it. I'm not suggesting that C++/CLI will completely get rid of Win32. For example, I couldn't do anything with utility programming in .NET. But overall it gives a cleaner environment to work in. I also can tell that the drag/drop form IDE is encouraging developers to use it for new applications that need mixed-language support. Most applications we do have languages mixed together, so I'm still seeing benefits in using C++/CLI. [Edited by - nullsmind on May 3, 2006 8:18:15 PM]
  13. With a large background on software development, I have been noticing that C++/CLI removes most of the need to program directly in the Win32 API. I like it since it's C++ and the best of C# together, and sure makes C++ applications web-enabled & error-free which is nice. For example, this code shows a simple console example (Win32 Console App w/ .NET enabled): #include <iostream> int main() { System::Console::Title = "Win32 Console Application"; System::Console::ForegroundColor = System::ConsoleColor::Green; System::Console::WriteLine("Hello World!"); std::cout << "Still can use normal C++ code here!" << std::endl; return 0; } Is C++/CLI going to remove most of the need for the Win32 API? I admit it's a much cleaner environment for business software development in Windows. There's a full form editor too :) It seems to me that Win32 will still be needed for utility applications. I'd like to hear your thoughts if you have some experience in the CLI.
  14. Dead? HAHAHAHAHA! Considering all the pre-existing programs out there (10 years) to modify & upgrade from time to time, obviously a clear understanding of AWT is important. If you don't know how to use AWT, it is difficult to use Swing effectively. Don't worry, learning AWT is learning Swing - just add a J :) It's the same thing with C and C++ programming. Being a good programmer is knowing where one ends and where the other begins. Java has that same requirement on the job. Anyway, learn things from the bottom up is my advice. I recommend Swing in the long run, though. It's more portable and extends major functionality to the old AWT components.
  15. [java] Loading Images into Applets

    Make sure your resource files are located in your class loader.
  • Advertisement