![]() |
| | #1 |
| Registered User Join Date: Mar 2009
Posts: 45
| Windows API and .NET Framework? I will soon be taking a tutorial in programming with the WinAPI, but later on I want to integrate it with some of the controls and features provided by the Windows .NET Framework. Is this possible, or is the technology of WinAPI to old for that. I would also like to know if WinAPI programs will be supported in future versions of windows such as windows 7? Please tell me if the WinAPI and the .NET framework can be integrated as if they cant be, i wont bother wasting my time on the WinAPI tutorial, Thanks in advance, mintsmike |
| mintsmike is offline | |
| | #2 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| I think you have a wrong understanding of what WinAPI is. WinAPI is the C-portion of the interface to interface with Windows™. dotNet is basically the C#-portion of the interface to interface with Windows™. dotNet GUI and WinAPI do not mix well, if at all. And yes, since WinAPI is the basic portion of Windows--its foundation, so to speak, it will remain and it is still left in Win7.
__________________ 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 | |
| | #3 |
| Registered User Join Date: Mar 2009
Posts: 45
| So, which interface do you reccomend to me. Im thinking .NET, but i would like a second oppion, Thanks in advance, mintsmike |
| mintsmike is offline | |
| | #4 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| dotNet is more higher-level and easier to use than WinAPI and a lot more flexible. That being said, however, I despise all that has to do with dotNet and would go for a C++ Framework GUI Library (such as wxWidgets among others). But don't entirely rely on my opinion and take a look at the 3 for yourself, if you can.
__________________ 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 | |
| | #5 |
| Registered User Join Date: Apr 2006 Location: United States
Posts: 3,201
| I thought the point of .NET was that it was available across several languages and that the only downside was the megabytes of framework that you had to attach. At least know what .NET is before you go espousing your opinion.
__________________ Os iusti meditabitur sapientiam Et lingua eius loquetur indicium "There is nothing either good or bad, but thinking makes it so." (Shakespeare, Hamlet, Act II scene ii) http://www.myspace.com/whiteflags99 Last edited by whiteflags; 06-28-2009 at 04:23 AM. |
| whiteflags is offline | |
| | #6 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| I know what dotNet is. It's Microsoft's huddly-cuddly all-in-one language-wide platform. And I don't like it.
__________________ 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 | |
| | #7 | |
| Registered User Join Date: Dec 2006
Posts: 1,780
| Quote:
| |
| cyberfish is offline | |
| | #8 | |
| Mysterious C++ User Join Date: Oct 2007
Posts: 14,099
| For now. It's a standard, so measures are being taken to make it available on other platforms.
__________________ 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 | |
| | #9 | |
| C++ Witch Join Date: Oct 2003 Location: Singapore
Posts: 10,352
| Quote:
__________________ C + C++ Compiler: MinGW port of GCC Build + Version Control System: SCons + Bazaar Look up a C/C++ Reference and learn How To Ask Questions The Smart Way | |
| laserlight is offline | |
| | #10 |
| Registered User Join Date: Dec 2006
Posts: 1,780
| POSIX has been a standard for a few decades, too, and Windows is still lacking most of the POSIX functions. A standard doesn't mean much if people don't implement it. |
| cyberfish is offline | |
| | #11 | |
| Registered User Join Date: Dec 2006
Posts: 1,780
| I am not sure how good Mono is (since I don't use .Net myself), so I won't comment on that. But reading the Wikipedia page - Mono (software) - Wikipedia, the free encyclopedia Quote:
| |
| cyberfish is offline | |
| | #12 |
| Super Moderator Join Date: Aug 2001
Posts: 7,470
| Win32 API calls can be made from C# using the import functionality in C#. There are also files available on CodeGuru and other sites like it that define all the windows messages so you do not have to trap for constant values when trapping for certain messages. .NET is fine except the Win32 API does much more. I find it odd that Win32 is still needed for many advanced Win32 functionalities. One would think .NET could handle it all but alas it cannot and does not. .NET is awesome as it is but it needs to implement more of the Win32 API before I would consider it done. From a GUI standpoint there are also certain messages for which there is no C# equivalent handler for. For these you will have to manually handle them by deriving your Form class from IMessageFilter and then overriding PreMessageFilter().
__________________ If you aim at everything you will hit something but you won't know what it is. |
| Bubba is offline | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Get .net framework version | kairozamorro | C# Programming | 0 | 05-18-2009 01:02 AM |
| A question about windows programming | Hussain Hani | Windows Programming | 16 | 05-23-2007 07:38 AM |
| FlashWindowEx not declared? | Aidman | Windows Programming | 3 | 05-17-2003 02:58 AM |
| IE 6 status bar | DavidP | Tech Board | 15 | 10-23-2002 05:31 PM |
| Visual J# | mfc2themax | A Brief History of Cprogramming.com | 0 | 10-08-2001 02:41 PM |