.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > SDK Programming discussions > Half-Life 1 SDK
Half-Life 1 SDK For developments focused around Half-Life (and its mods) Half-Life

Reply
 
Thread Tools
Half life SDk with Visual Studio 2010?
Old
  (#1)
pivke
Member
 
Status: Offline
Posts: 1
Join Date: Jul 2011
Default Half life SDk with Visual Studio 2010? - 26-07-2011

Hi,
looks like nobody is really active in this section of the forum. But I will give a try:
Recently, I downloaded the Half Life 1 SDK. Unfortunately all the projectfiles are made for Visual Studio 6. The problem; Visual Studio 2010 seems to be too "new" for that old stuff. Or there has to be an importing/converting problem.

My question; How do you all work with the SDK, when you don't work with Visual Studio 6? Do I have the wrong SDK? What is my mistake?

Thank you very much ahead!
  
Reply With Quote
Re: Half life SDk with Visual Studio 2010?
Old
  (#2)
SamPlay
Member
 
Status: Offline
Posts: 46
Join Date: Jan 2006
Default Re: Half life SDk with Visual Studio 2010? - 26-07-2011

HI,
you should not expect a lot of activity during summer holidays!
I am using vc9 , not vc 10 but I compiled several old programms developped with vc6. It works but you unfortunately have to correct the code in some places:
- first because vc6 allowed things that are now forbidden , and set as such in in ms compilers> vc6; mainly due to "int i" and the like set in "for" loops the declaration of wich is now restricted to the loop (easiest solution: place the "int i" or whatever outside the loop: beware that the behavior is still the same.)
replace
for(int i= 0...)
by
int i;
for( i=...
this is the simplest but most time consuming change to do.
- in some case vc6 would allow a function as a righ-hand-side value where a function pointer is now demanded ( add a &..).
- some macros in the sdk bear the same name than macros introduce by ms later: no general solution here ( eg use "#undef ...", change sdk macro name, change order of #includes",..)
-warnings are generated for "old style" ( mainly input/output) standard functions ( fopen,..) but they still work and the compiler tells what preprocessor directive to use to get rid of those warnings.
-"libc.lib" may cause problems, which I always successfully get rid of by adding this lib in the "ignore specific library" in the "input" section of the linker. This goes along with getting rid of reference to the vc6 project in the "Inherited Project property sheets" in the"General" section once it has been translated into a vc9 solution.
I probably forgets some issues but
1. google is your friend, even for what seem extremely specific issues
2. I may help- just post here-, as I have gone trough that ( painful ) process before.
Again I assume vc10 is not too different from vc9.
good luck!
  
Reply With Quote
Re: Half life SDk with Visual Studio 2010?
Old
  (#3)
SamPlay
Member
 
Status: Offline
Posts: 46
Join Date: Jan 2006
Default Re: Half life SDk with Visual Studio 2010? - 27-07-2011

have a look there (bottom of comments):
http://www.moddb.com/games/half-life...lf-life-sdk-23
  
Reply With Quote
Re: Half life SDk with Visual Studio 2010?
Old
  (#4)
tschumann
Moderator
 
tschumann's Avatar
 
Status: Offline
Posts: 270
Join Date: Apr 2011
Location: Australia
Default Re: Half life SDk with Visual Studio 2010? - 06-08-2011

This compiler flag fixes the loop counter declaration errors.
  
Reply With Quote
Re: Half life SDk with Visual Studio 2010?
Old
  (#5)
Immortal_BLG
Member
 
Status: Offline
Posts: 171
Join Date: Nov 2007
Location: Russian Federation
Default Re: Half life SDk with Visual Studio 2010? - 06-08-2011

Try this
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com