You only have to do that (if I've good understood you problem ;) ) :
CFuncTest* pTest = (CFuncTest*)CBaseEntity::Instance(pEdict);.
Then, you can use pTest as a CFuncTest.
- Cortex : HL Albator coder and mapper ( www.hlalbator.fr.st )
- email : [EMAIL PROTECTED]ICQ : 71548738
Actually, the in a declaration like that is a reference, not the address
of operator. Kinda confusing shared syntax ;) What you told him to do is
correct though, I am just nit-picking :D
int i = 1;
int r = i; // r is a reference to i
int *p = i;// p is a pointer to i
// All of these
ah, my bad. forgot about the pass-by-value / pass-by-reference business.
thanks for clearing it up.
barret
- Original Message -
From: Commando [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, October 05, 2002 4:35 PM
Subject: Re: Re[2]: [hlcoders] returning string
Actually,
At 07:03 PM 05/10/2002 +0200, you wrote:
Wouldn't it be :
cout *p= *p endl;
/me bad too, I was typing too quickly and forgot the * :(
Rob Prouse (Commando)
Tour of Duty Mod
http://www.tourofdutymod.com
___
To unsubscribe, edit your list
I was just wondering if anyone knew what Wxdebug.cpp was for? Obviously debugging,
but for what, and is it of any use to mod makers?
Also stats.cpp.
Thanks, Jeff.
-
Jeffrey Fearn
[EMAIL PROTECTED]
Programmer Software Engineer
5 matches
Mail list logo