Skip to content

How to set int value to PCSTR? #1143

Answered by AArnott
0x5bfa asked this question in Q&A
Feb 12, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

You appear to be trying to pass a pointer to the 500 value. That's not what the documentation requires. It wants to see 500 as the value of the pointer itself rather than the value that is pointed to.
I think this will do the trick:

byte* byMsg = (byte*)500;
PCSTR pMsg = new(byMsg);

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@0x5bfa
Comment options

Answer selected by 0x5bfa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants