Hi all. I'm trying to use the Bitmap.FromResource() function in C#, but I don't understand the first part of the syntax -> 'System.IntPntr hInstance'.
Could someone explain me what I have to fill in there. I guess it must be some sort of pointer to my program. I tried a couple of things, including 'IntPtr.Zero', but it doesn't work. The program gives me the following error:
System.ArgumentException: Invalid parameter used
Is there someone who knows how to fix this? Thx in advance.
Indeed, it is. Doesn't mean we have to like it.
But at certain size you can make the "there is nowhere else to go to", ie see Apple/Google vs Epic Games lawsuit. Apple got struck down hard, even though you "can go elsewhere". Apple is 100% monopolistic on iOS though, Google is only 99% on Android, so I guess the comparison isn't exact.
But there's nothing illegal about it, that's the point. YouTube can be abusive with its policies, but they can always show you the door and you can always go to another platform. The problem is that everyone wants to be on YouTube. Think of YouTube as the Nvidia of video platforms.
Its sucks really hard, but it's the reality.
Question
DJ Trauma
Hi all. I'm trying to use the Bitmap.FromResource() function in C#, but I don't understand the first part of the syntax -> 'System.IntPntr hInstance'.
Could someone explain me what I have to fill in there. I guess it must be some sort of pointer to my program. I tried a couple of things, including 'IntPtr.Zero', but it doesn't work. The program gives me the following error:
System.ArgumentException: Invalid parameter used
Is there someone who knows how to fix this? Thx in advance.
Link to comment
https://www.neowin.net/forum/topic/369511-the-bitmapfromresource-function/Share on other sites
6 answers to this question
Recommended Posts