Jump to content
  • entries
    743
  • comments
    1924
  • views
    583702

Win32

Sign in to follow this  
Aardvajk

233 views

I think I need to learn Win32 API programming properly. I know a bit, enough to write the skeleton for a D3D app and I've played about putting menus on windows and using the GDI, but I want to be able to write something as complex as my map editor with Visual C++ so I'm not messing about with C++ Builder and worrying about shipping daft VCL DLLs with projects.

I'm overwhelmed by the number of total strangers on this site that have volunteered to make levels for Orc if I could release a level editor and I'd love nothing more than let other people get involved.

I've thought about learning C# and Windows Forms and I've thought about writing a GUI for D3D so I could write an editor as a fullscreen app like that but at the end of the day, if I really put my mind to it, why the hell can't I just use the internet to learn to write Win32 apps in normal C++?

Right. I've talked myself into it. I'm going to go and fire up VS and damn well create a window with a menu and a bitmap drawn in the client area and to hell with anyone who says I can't.

Ahahahahahaha.


(several hours later)

Behold, my hand written Win32 application:



So far so good.
Sign in to follow this  


5 Comments


Recommended Comments

Ugh, bitmaps in Win32 FTL. You sound pretty convinced, but I have to say that I'm REALLY glad I took the time to learn C# and WinForms. Tool development is much faster and much more efficient.

Good luck!

Share this comment


Link to comment
I'm utterly sure you are completely right and I apologise for being stubborn, but I'm on a mission. I've already got a window with an icon and a menu up and running (hand-coded, refering to a sample wizard-created project) and I've got my blinkers on at the moment.

Thinking ahead though, for when I start pulling out my hair and giving up, could you point me at any good resources for learning C# and Windows Forms? Is it fairly easy to move from C++ to C#?

Share this comment


Link to comment
ME TOO! I've been cobbling together a level editor in OpenGL but after seeing your editor I thought how nice it would be to have an editor with a few more features. Everyone seems convinced that C# is the way to go, but I've been hesitant because I don't especially want to learn a new language just to open up a textbox... still, I know C++ and a little Java so maybe it should be an easy transition... but can C# play nicely with OpenGL - argh!

Share this comment


Link to comment
Moving from C++ to C# was fairly easy IMO. Obviously there are quite a few differences, but there are also a lot of similarities. For WinForms you can download Microsoft Visual C# Express Edition and use the designer which works REALLY well.

As for resources, I don't really have any. For the few problems that I've run into I've just quickly googled and found some help. If you've got AIM (dfgDBeals) or IRC (#general) I'm available for most problems (still new to it myself, but I've learned a few of the quirks.) If you don't have either of those I check my PMs and email quite often.

HTH! Good luck with Win32!

Share this comment


Link to comment
Quote:
Original post by Programmer16
Moving from C++ to C# was fairly easy IMO. Obviously there are quite a few differences, but there are also a lot of similarities. For WinForms you can download Microsoft Visual C# Express Edition and use the designer which works REALLY well.

As for resources, I don't really have any. For the few problems that I've run into I've just quickly googled and found some help. If you've got AIM (dfgDBeals) or IRC (#general) I'm available for most problems (still new to it myself, but I've learned a few of the quirks.) If you don't have either of those I check my PMs and email quite often.

HTH! Good luck with Win32!


I really appreciate that. I'm sure I'll give up on Win32 at some point in the near future and will definately pick your brain when I hurl myself at C#. Thanks.

Paul

[EDIT] Atctually, dumb question now - if I create a Windows Forms app with Visual C++ Express, would I be right in thinking that is a Managed C++ application? Perhaps I should look at that instead.

Share this comment


Link to comment

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
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!