home *** CD-ROM | disk | FTP | other *** search
- // =========================================================
- // HEXDUMP.CPP
- // =========================================================
-
- #include <afx.h>
-
- #define ANZAHL_STELLEN 10
-
- char * Hex(UINT i)
- {
- static char pszTmp[ANZAHL_STELLEN];
- sprintf(pszTmp, "%x", i);
- return pszTmp;
- }
-
- void main(void)
- {
- int anInt = 11;
- afxDump << Hex(anInt);
- }