-
Actual behaviorI currently have code that works simply by passing Worked fine on Expected behaviorI just want it working, so either need to have it accept Context
|
Beta Was this translation helpful? Give feedback.
Answered by
AArnott
Apr 11, 2023
Replies: 1 comment 2 replies
-
|
You can create a unsafe
{
string message = "Hello World";
fixed (char* pMessage = message)
{
PCWSTR pcwstr = new PCWSTR(pMessage);
// use PCWSTR within the fixed block.
}
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
AArnott
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can create a
PCWSTRbased on astringlike this: