How to Typecaste a PChar to a longint?
Answer / Ravi Prakash Srivastava
To cast a `PChar` to a `longint` in Delphi, you can use the `PackedDec` function. Here's an example:nn```delphinlValue: PAnsiChar; // Assuming lValue points to a longint stringnlResult: longint;nBeginn PackedDec(lValue^, Result);nEnd;n```
| Is This Answer Correct ? | 0 Yes | 0 No |
How do I write a global error handler?
How to Get a cool menu in your application?
Where can I get a copy of Delphi?
How to Use JPEGs from resource files ?
How to Launch default browser on a URL?
What is the function of dynamic arrays?
How to Move a control at runtime with the mouse?
How to Get the local internet machine name and IP address?
What version of Delphi 5 does the Code Explorer come with?
Does Kylix support ODBC?
What is the target load order?
What to do if getting missing or corrupted file messages?