![]() |
| | #1 |
| csd@auth Join Date: Oct 2006 Location: Greece
Posts: 71
| c# or win32 api But these days a friend of mine showed me a program he wrote in c# that amazed me and as he said, was simple to be done. Is c# a better way to build apps with interface than win32 api? What language and which purpose would you reccomend me for this purpose? I'd like to learn not only for fun but also for professional purposes. P.S. sorry for my bad english |
| kantze is offline | |
| | #2 |
| Woof, woof! Join Date: Mar 2007 Location: Australia
Posts: 3,295
| For me, I use Gtk+ mainly because it's portable (well more than the Win32 API). You don't need to move languages just to build a user interface |
| zacs7 is offline | |
| | #3 |
| Internet Superhero Join Date: Sep 2006 Location: Denmark
Posts: 468
| Try taking a look at MFC, it's a framework for Win32 which makes everything a bit easier and faster.
__________________ How I need a drink, alcoholic in nature, after the heavy lectures involving quantum mechanics. |
| Neo1 is offline | |
| | #4 |
| Super Moderator Join Date: Aug 2001
Posts: 7,814
| If you want to maintain the C - like syntax and gain a bit more horsepower with GUI then C# is a definite option. As to whether it's better or not really depends on what you are trying to do. Some things are far easier in C# and some are not. MFC has a significant learning curve and C# does not. That fact alone may have already answered your question. Let's say that C# is yet another way for you to build GUI apps. |
| Bubba is offline | |
| | #5 |
| l'Anziano Join Date: Aug 2001
Posts: 2,629
| If you are looking for something with a less-steep learning curve, then C# is definitely a good way to go. C# is a nice language and it definitely helps make GUIs easier in Windows. But yeah you should also look into MFC. What IDE are you using? Visual Studio Express? C++Builder? If you are using either of those, then there are some drag and drop features that also help in designing a GUI. |
| DavidP is offline | |
| | #6 |
| csd@auth Join Date: Oct 2006 Location: Greece
Posts: 71
| I can't understand what "...a less-steep learning curve" means! Does it mean that c# does the job easier but it's less powerfull? Something like basic?? @DavidP: I'm using visual studio 2008 |
| kantze is offline | |
| | #7 |
| l'Anziano Join Date: Aug 2001
Posts: 2,629
| |
| DavidP is offline | |
| | #8 |
| Registered User Join Date: Aug 2002 Location: Hermosa Beach, CA
Posts: 446
| I have no idea why someone would recommend MFC or Win32 over C#. C# is easily more powerful for building windows-only apps, and especially GUI apps. There really is no comparison. And if you by chance find something that you can't do with .NET Framework classes, you can always use either COM or calls to unmanaged code. And also, the documentation and online examples on msdn are much better for C# than they are for MFC. This point shouldn't be minimized, because it's important to have good examples when learning this stuff.
__________________ The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows. |
| IfYouSaySo is offline | |
| | #9 | |
| Reverse Engineer Join Date: Aug 2005 Location: Estonia
Posts: 2,260
| Quote:
__________________ The duck is irrelevant to my point. | |
| maxorator is offline | |
| | #10 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,783
| I want to point out that MFC is C++ and not C and it's only available in Visual Studio Standard Edition+. That means shelling out, like, $300 at least. Unless you are a student, you can get Professional for free. And all sort of frameworks are far better than pure Win32. Let's just say that C# is yet another way to build a GUI. It depends on your purpose and the time you want to spend on it. Sure, it's easier to use. Do you need it to create professional looking, shiny GUIs? No. It can be done, yes, but it isn't a requirement. The new 2008 MFC will allow you to do that once it's released. Plus, not to mention, there are several solutions out there for MFC/C++/C that already does this. MFC is slower to learn, but it's much faster than C#. It's just to take a pick. No one is going to force you.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| |
| Elysia is offline | |
| | #11 |
| Registered User Join Date: Nov 2007
Posts: 256
| API definitely beats C# in every aspect except ease of use. And the .Net framework keeps getting more and more bloated. (It nearly tripled in size from version 2 to version 3) If you just want something to play around with, then C# is probably fine. And I think in the near future more employers will be looking to hire "C-pound" experts, but anything you use to make windows apps will be eventually built upon the API, knowing a little API will never hurt you. So at last I say, Why not do both?
__________________ I copied it from the last program in which I passed a parameter, which would have been pre-1989 I guess. - esbo |
| NeonBlack is offline | |
| | #12 |
| Reverse Engineer Join Date: Aug 2005 Location: Estonia
Posts: 2,260
| Frameworks are not better than pure Win32, because good != ease_of_use, it depends on many other things too. You can't simply say something is better, you can only say that something is better at some aspect, because the importance of different aspects depends greatly on people. And btw, there indeed ARE awful frameworks.
__________________ The duck is irrelevant to my point. |
| maxorator is offline | |
| | #13 |
| Registered User Join Date: Aug 2002 Location: Hermosa Beach, CA
Posts: 446
| I've written apps both ways (MFC and C#) and I can say I would never willingly choose MFC for a future windows GUI app. C# is just much much easier to use. BTW...just because something is easy to use, doesn't make it good. Yes, you're right. Absolutely. But if something is easy to use, and it also turns out to be good, then it will be prefered over something that is difficult to use and also good. And that is why I wil always prefer c# (for building windows GUIs or other windows-only apps). I should say that by trade I code in c/c++ for unix. So it isn't like I'm some m$ loving c#-hugger. I'm just calling it like I see it.
__________________ The crows maintain that a single crow could destroy the heavens. Doubtless this is so. But it proves nothing against the heavens, for the heavens signify simply: the impossibility of crows. |
| IfYouSaySo is offline | |
| | #14 | ||
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,783
| Quote:
![]() I suppose I was hinting at that Win32 API is horrible and that most frameworks goes to at least a length to hide that.
__________________ Using: Microsoft Windows™ 7 Professional (x64), Microsoft Visual Studio™ 2008 Team System I dedicated my life to helping others. This is only a small sample of what they said: "Thanks Elysia. You're a programming master! How the hell do you know every thing?" Quoted... at least once. Quote:
| ||
| Elysia is offline | |
| | #15 | ||
| Reverse Engineer Join Date: Aug 2005 Location: Estonia
Posts: 2,260
| Quote:
![]() Quote:
C# - extremely easy to use - good Win32 - easy to use - extremely good
__________________ The duck is irrelevant to my point. | ||
| maxorator is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Win32 API or Win32 SDK? | jverkoey | General Discussions | 2 | 07-20-2005 03:26 PM |
| OpenSSL and Win32 SSL API :: SSL/TLS | kuphryn | Networking/Device Communication | 0 | 03-10-2004 07:46 PM |
| FILES in WinAPI | Garfield | Windows Programming | 46 | 10-02-2003 06:51 PM |
| OLE Clipboard :: Win32 API vs. MFC | kuphryn | Windows Programming | 3 | 08-11-2002 05:57 PM |
| Thread Synchronization :: Win32 API vs. MFC | kuphryn | Windows Programming | 2 | 08-09-2002 09:09 AM |