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)
|