How do we make sense of any of this? #1320
Replies: 1 comment
-
Hi Gavin, Those are good questions. And this is very different than typical .NET programming, I agree. Another concern you shared is that you do seem to get some things for free but not others. We'd like to make this as easy as possible, so when you ask for one API (e.g. I know that may not totally satisfy you, but I hope it helps convey the problem space we're working with and why we've designed it this way. And most of all, I hope it helps you to predict when you can expect things to be automatically generated vs. manually requested so you can be more productive while using CsWin32. |
Beta Was this translation helpful? Give feedback.
-
Why for example, do I need to include 'IDC_ARROW' in my NativeMethods file? How am I, a mere mortal expected to know that I need to include that? And why didn't I need to include LRESULT, I just needed to include the using Windows.Win32.Foundation.
Why? Why do we have to do any of this? I can't tell just by looking at the documentation or even my other code that uses CsWin32 what I have to do to make any particular Win32 function or struct work. It's just constant guess work and experimentation.
Another example. I've included CreateWindowEx, but why aren't these arguments recognized... WS_EX_APPWINDOW, WS_EX_NOREDIRECTIONBITMAP, WS_OVERLAPPEDWINDOW.
Some constants need to be referenced in NativeMethods and others do not.
When will we get a better system that just works? Maybe use the reference + using system. Just make the Win32 libraries available as nuget packages? Get rid of the need for a NativeMethods.txt file please.
Beta Was this translation helpful? Give feedback.
All reactions