Compile Ran Source VS2005

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! navirius is offline
    MemberRank
    Feb 2010 Join Date
    309Posts

    Compile Ran Source VS2005

    I tried to compile Ran Source with Visual Studio 2005, currently I can full compile all source, I take source from this thread

    My Laptop configuration, Visual Studio 2005, DXSDK 2004, .Net 1.1, 2.0, 3.0, 3.5, 4.0, 4.5.1
    In my laptop also installed VS2003, VS2010 and VS2013, but I use VS2005 to compile RanSource

    As I know, C++ VS2005 does not support default int variable, like C++ 6.0 or C++ 2003, with that diferrence I got lot error because in Ran Source so many code like this
    Code:
            for ( i = 0; i< 33; ++i)
    	{
    		strArray = new CStringArray;
    		strBuff.LoadString(szID[i]);
    		strArray->Add(strBuff);
    		m_LauncherText.mapFlags[strID[i]] = strArray;
    	}
    for know I can analyze and complete the diferences between VS2005 and VS2003, but one last think I need help for this code

    Code:
            std::set<int>::iterator iter_EffNum;
    	iter_EffNum = m_setLandEffectNum.begin();
    	for( ; iter_EffNum != m_setLandEffectNum.end(); ++iter_EffNum )
    	{
    		if( i >= EMLANDEFFECT_MULTI ) break;
    		dropChar.nLandEffect[i] = *iter_EffNum;
    	}
    you can find that code at GLCharEx.cpp, RanClientLib project, line 528

    I can't find any reference to "i" and what should I do with that "i", if I look that code, I almost sure, I must increment "i" but I can't get it where I can increment "i"

    for now I edit that code like this

    Code:
            std::set<int>::iterator iter_EffNum;
    	int i=0;
    	iter_EffNum = m_setLandEffectNum.begin();
    	for( ; iter_EffNum != m_setLandEffectNum.end(); ++iter_EffNum )
    	{
    		if( i >= EMLANDEFFECT_MULTI ) break;
    		dropChar.nLandEffect[i] = *iter_EffNum;
    		++i;
    	}
    anyone can look that code and give me suggestion?


  2. #2
    Valued Member Regemson386 is offline
    MemberRank
    Jun 2008 Join Date
    120Posts

    Re: Compile Ran Source VS2005

    Guide sir pls.

  3. #3
    sapadia.net geger009 is online now
    DeveloperRank
    Mar 2011 Join Date
    IndonesiaLocation
    1,007Posts

    Re: Compile Ran Source VS2005

    mine like this..

    Code:
    std::set<int>::iterator iter_EffNum;
    iter_EffNum = m_setLandEffectNum.begin();
    for( int i=0; i<EMLANDEFFECT_MULTI; ++i )
    {
    	for( ; iter_EffNum != m_setLandEffectNum.end(); ++iter_EffNum )
    	{
    		if( i >= EMLANDEFFECT_MULTI ) break;
    		dropChar.nLandEffect[i] = *iter_EffNum;
    	}
    }
    i prefer VS2008 since it support physx engine library..
    hope this help..

    whoops..i'm sorry for bump this old thread..didnt read the date first before reply.. X_X

  4. #4
    Account Upgraded | Title Enabled! navirius is offline
    MemberRank
    Feb 2010 Join Date
    309Posts

    Re: Compile Ran Source VS2005

    oke geger, thanks for the tips, but, I message you in YM but likely you never online

    Can I request your LevelEdit source?

  5. #5
    StoP Callin me MentaL I'm Not MentaL is offline
    MemberRank
    Dec 2008 Join Date
    Guang Dong, PRCLocation
    4,279Posts

    Re: Compile Ran Source VS2005

    Can compile in VS2010 or 2013 or 2015?

  6. #6
    Account Upgraded | Title Enabled! navirius is offline
    MemberRank
    Feb 2010 Join Date
    309Posts

    Re: Compile Ran Source VS2005

    Yes it can, you need some modification for default int variable in vc7.1

    Most important is, you need change class aligment to compatible with with vc7.1

    Sent from my GT-I9300 using Tapatalk

  7. #7

    Re: Compile Ran Source VS2005

    did anyone already compile it in vs2013? i can't install my vs2003.



Advertisement