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 #2330 is a reply to message #2322] Sat, 08 April 2006 12:55 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14267
Registered: November 2005
Ultimate Member
mr_ped wrote on Sat, 08 April 2006 06:41

Another way to pass around unknown pointers is to use (void *) type. I like this because I understand it even without knowing too much about C/C++ Smile. (intptr_t is sort of higher magic for me Smile )


There is nothing magic about intptr_t, just one of standard headers (I think stdlib.h, but not quite sure) has something like

#ifdef *****
typedef int intptr_t;
#endif

#ifdef *****
typedef _int64 intptr_t;
#endif

(where ***** depends on platform, compiler etc...)

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:02:19 CEST 2025

Total time taken to generate the page: 0.06367 seconds