How should I pass lpszClassName
when creating a WNDCLASS
?
#807
Unanswered
jgcodes2020
asked this question in
Q&A
Replies: 1 comment
-
Same lifetime that a native code equivalent would be, presumably. I don't know what that is. But if that's an extended duration, merely defining a wrapper class won't necessarily ensure the pointer remains valid, since the GC can move memory around. You'd need to use a |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Title explains all. I'm not sure what the lifetime of the associated string should be. If it must last until application termination, I'd have to make a special wrapper class to keep the name referenced until then. If not, I can just use a
fixed
block.Beta Was this translation helpful? Give feedback.
All reactions