Skip to content

RegisterClassEx fails with error 87 #750

Answered by rpetz
rpetz asked this question in Q&A
Discussion options

You must be logged in to vote

Well it would appear I was not very knowledgeable on what module HINSTANCE should be referencing - using the Marshal class I was able to have it grab the correct instance

var hInstance = new HINSTANCE(Marshal.GetHINSTANCE(typeof([insert your type here]).Module));

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rpetz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant