Microsoft Visual C++ 6.0
somwhere, i can't find it anywhere.Thank you,
Daniel Cove
that compiler, and it didnt work. I got it past the windows.h problem and what not, but when i compile the project, it runs into almost 300 FUNCTION CALL MISSING ARGUMENT LIST errors. Any tips
(i edited to show the problem)
1>c:\sdk\multiplayer source\engine\eiface.h(382) : warning C4005: 'ARRAYSIZE' : macro redefinition
1> c:\program files\microsoft visual studio 8\vc\platformsdk\include\winnt.h(950) : see previous definition of 'ARRAYSIZE'
1>c:\sdk\multiplayer source\dlls\effects.h(82) : error C3867: 'CSprite::AnimateUntilDead': function call missing argument list; use '&CSprite::AnimateUntilDead' to create a pointer to member
1>c:\sdk\multiplayer source\dlls\effects.h(171) : error C3867: 'CBaseEntity::SUB_Remove': function call missing argument list; use '&CBaseEntity::SUB_Remove' to create a pointer to member
1>c:\sdk\multiplayer source\dlls\weapons.h(448) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\sdk\multiplayer source\dlls\weapons.h(448) : warning C4183: 'HasWeapon': missing return type; assumed to be a member function returning 'int'
1>c:\sdk\multiplayer source\dlls\airtank.cpp(61) : error C3867: 'CAirtank::TankTouch': function call missing argument list; use '&CAirtank::TankTouch' to create a pointer to member
1>c:\sdk\multiplayer source\dlls\airtank.cpp(62) : error C3867: 'CAirtank::TankThink': function call missing argument list; use '&CAirtank::TankThink' to create a pointer to member
1>animation.cpp
For the ARRAYSIZE issue I would try something like:
#ifndef ARRAYSIZE
#define ARRAYSIZE ...
#endif
I suspect that the definitions are probably compatible - if they are not you'll have to try a different solution.
For the rest I would double check the code and if it is really attempting to create a pointer-to-member function then I would add the '&'.
void CSprite::AnimateUntilDead( void )
{
if ( gpGlobals->time > pev->dmgtime )
UTIL_Remove(this);
else
{
AnimateThink();
pev->nextthink = gpGlobals->time;
}
}
SetThink(AnimateUntilDead);
pev->framerate = framerate;
pev->dmgtime = gpGlobals->time + (m_maxFrame / framerate);
pev->nextthink = gpGlobals->time;
}
void EXPORT AnimateUntilDead( void );
It looks as if this line:
should be:
either that or it should be something like:
There just isn't enough context to be sure.
BTW: you cannot learn C++ by just attempting to change code and hope it works: you need to spend time and get a through grounding in the basics - once you know the basics answer to the question you have posted above become obvious.