x64dbg/docs/developers/functions/debug/DbgValToString.md

30 lines
604 B
Markdown
Raw Permalink Normal View History

# DbgValToString
Legacy name for `DbgValSetScalar` kept for binary compatibility.
`DbgValToString` is no longer part of the public bridge header. Use [DbgValSetScalar](./DbgValSetScalar.md) instead.
```c++
bool DbgValToString(const char* string, duint value);
```
## Parameters
`string` The name of the thing to set in UTF-8 encoding.
`value` The value to set.
## Return Value
`true` if the value was set successfully, `false` otherwise.
## Example
```c++
DbgValToString("eax", 1);
```
## Related functions
- [DbgValFromString](./DbgValFromString.md)
- [DbgValSetScalar](./DbgValSetScalar.md)