TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: CHRIS DOWNS
from: NEIL HELLER
date: 1997-08-26 19:08:00
subject: PRINTING POINTER VALU

CD>  void foobar(int type, long additional_info_of_some_type);
 
CD>  If you want to call foobar() with a CString, the cast to the LP(C)STR 
CD>  does a type conversion and the cast to the long is to satisfy the 
CD>  semantics of the function you want to call.
I'm not trying to be a smart-ass believe me; what I assume of that
function is that if "type" is a particular value, you'll cast the long
back into a far pointer and dereferrence the pointer in order to get at
the string.  Correct?
 * KWQ/2 1.2i * 
--- TMail v1.31.5
---------------
* Origin: Diablo Valley PCUG-BBS, Walnut Creek, CA 510/943-6238 (1:161/55)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.