sQUEEK559003

Hello, i was just wondering if i could download

Microsoft Visual C++ 6.0

somwhere, i can't find it anywhere.

Thank you,
Daniel Cove



Re: Visual C++ General Where can I download old versions?

Jonathan Caves - MSFT

Visual C++ 6.0 is dead ... it is an ex-compiler, it is pushing up the daisies, it has kicked the bucket ... in short it is no longer available in any shape or form.




Re: Visual C++ General Where can I download old versions?

sQUEEK

Oh... Quick question then, is there anyway i can compile the sdk released for half life 1 I am desperate to code something on it...

sQUEEK




Re: Visual C++ General Where can I download old versions?

Jonathan Caves - MSFT

I would try Visual C++ Express Edition - for more information see here.




Re: Visual C++ General Where can I download old versions?

sQUEEK

I tried
Code Snippet

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

(i wasn't shouting with the FUNCTION CALL MISSING ARGUMENT LIST, just showing error)




Re: Visual C++ General Where can I download old versions?

Jonathan Caves - MSFT

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 '&'.






Re: Visual C++ General Where can I download old versions?

sQUEEK

Thecode that the compiler is pointing to is this
(where void is declared)
Code Snippet


void CSprite::AnimateUntilDead( void )
{
if ( gpGlobals->time > pev->dmgtime )
UTIL_Remove(this);
else
{
AnimateThink();
pev->nextthink = gpGlobals->time;
}
}

then in the header
Code Snippet

SetThink(AnimateUntilDead);
pev->framerate = framerate;
pev->dmgtime = gpGlobals->time + (m_maxFrame / framerate);
pev->nextthink = gpGlobals->time;
}

void EXPORT AnimateUntilDead( void );

is this what the attempting to create a pointer-to-member function is
by the way, I am pretty new to programing, I mainly can only edit already working code, and i don't know what to do when you say to add the &, I'm sorry I'm so new...




Re: Visual C++ General Where can I download old versions?

Jonathan Caves - MSFT

It looks as if this line:

Code Snippet
SetThink(AnimateUntilDead);

should be:

Code Snippet
SetThink(AnimateUntilDead());

either that or it should be something like:

Code Snippet
SetThink(&CSprite::AnimateUntilDead);

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.






Re: Visual C++ General Where can I download old versions?

sQUEEK

THANK YOU!!! I have been trying to get this to work for months, and no one has helped me. THANK YOU. And I will read up on the basics, and get a better understanding of what I am doing like you suggested. again, Thank you.

Daniel Cove