Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Extra libraries, Code snippets, applications etc. » C++ language problems and code snippets » DLL and U++ type
Re: DLL and U++ type [message #2469 is a reply to message #2428] Thu, 13 April 2006 18:22 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mr_ped wrote on Wed, 12 April 2006 08:01


(void *) is "language reference" thing and works for me.



There is a subtle but important difference between (void *) and uintptr_t - uintptr_t is _integral_ type (like int or long). E.g. you can perform full integral arithmetics with it (example: think about printing the address contained in pointer Wink

The problem uintptr_t solves is that there is no fixed fundamental type that can be safely used to store and retrieve pointers. It is e.g. "int" or "unsigned int" on most 32-bit platforms, but that is not true on 64-bit CPUs anymore.

Thus uintptr_t solves this issue.

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: capturing stdout/err/in of subprocess
Next Topic: Inverse palette conversion algorithm...
Goto Forum:
  


Current Time: Thu Aug 28 02:11:29 CEST 2025

Total time taken to generate the page: 0.06361 seconds