-
I'm trying to create a window using this library but I am running into a roadblock while registering the window class struct - it just returns with error code 87 - Running this code nearly identically in C++ creates a window without issue, and I have tried so many different configurations of the (Obviously this code doesn't call
My
What am I missing? At this point I feel like Mr Magoo just poking around until I finally get something right on this haha |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well it would appear I was not very knowledgeable on what module
|
Beta Was this translation helpful? Give feedback.
Well it would appear I was not very knowledgeable on what module
HINSTANCE
should be referencing - using theMarshal
class I was able to have it grab the correct instancevar hInstance = new HINSTANCE(Marshal.GetHINSTANCE(typeof([insert your type here]).Module));