|
Thank you Cedric,
Same thing i asked.You answered my question.
Thanks,
Krishna
|
|
|
|
|
Unless you want to do some real fancy footwork you can only have one document in an SDI application. This is due to the limitation of only having one frame window per instance of the application with MFC out of the box. There are ways you could get 'round this but they're probably not worth doing. With MDI apps you can have as many frame windows as you want so as many documents as you can fit in memory.
You can have as many views per document as you want with the limitations of what can fit on your screen.
Cheers,
Ash
|
|
|
|
|
SDI is short for Single Document Interface, MDI for Multiple Document Interface. So that's that. As for views, you can have as many as you like as long as they fit into memory. You can even have more than can be shown at a time on screen if you'd like, since you can dynamically change what views you want to be visible.
|
|
|
|
|
Means for SDI i have only one Document, But i can have any no of views ?
Thanks,
Krishna
|
|
|
|
|
Mr.Cedric
Answered my Question Thanks once Again guys.
Krishna
|
|
|
|
|
I have it down to one error I can not fix
here it is
Error 1 error C2660: 'CBaseEntity::isFaceing' : function does not take 1 arguments C:\Users\Josh\Desktop\pXi_r1430\src\CZoneHandler.cpp 356 1 PXI<br />
Here is the code in question
if(mob->hasBehaviour(AGGRO_SIGHT) && mob->isFaceing(schar->loc.p)) {
if((CUtil::distance(schar->loc.p, mob->loc.p) <= 15 )) {<br />
mob->aggroChar(schar);<br />
Here is the function ( I think tis what it is called )
bool CBaseEntity::isFaceing(struct position p, int coneAngle) {<br />
<br />
unsigned char truerot = (unsigned char)this->getRot();<br />
<br />
if((p.x - this->loc.p.x) == 0) { <br />
p.x += 0.001f;<br />
}<br />
<br />
if((p.z - this->loc.p.z) == 0) { <br />
p.z += 0.001f;<br />
}<br />
<br />
float angle = atan2((p.z - this->loc.p.z),(p.x - this->loc.p.x));
unsigned char rot = (unsigned char) ((2 * 3.14159265358979f - angle) * 256 / (2 * 3.14159265358979f));
<br />
unsigned char diff = (unsigned char) (abs(truerot - rot));
<br />
if(diff <= coneAngle || diff >= (256 - coneAngle)) {
return true;
}<br />
<br />
return false;
<br />
}<br />
Any help here is greatly appreciated
|
|
|
|
|
It seem to me the compiler is telling you exactly what's going wrong.
The function CBaseEntity::isFaceing is defined as follows:
bool CBaseEntity::isFaceing(struct position p, int coneAngle)
I have underlined it's two parameters.
You're calling it like this:
mob->isFaceing(schar->loc.p)
Here your only using one parameter.
Steve
|
|
|
|
|
So I modified and added twoparameters and now I am getting
Error 1 error C2036: 'regions *const ' : unknown size C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector 879 1 PXI<br />
Here is the code in question
for(unsigned int i = 0; i <this->statusEffectContainer->m_statusEffectList.size(); i++) {<br />
CStatusEffect * tmpEffect = this->statusEffectContainer->m_statusEffectList.at(i);<br />
if(tmpEffect != NULL) {<br />
int tmpTick = tmpEffect->getTickTime();<br />
if(tmpTick != 0) {<br />
if((time(NULL)%tmpTick == 0) && tmpEffect->m_lastTick != time(NULL)) {<br />
CLuaManager::OnEffectTick(this,tmpEffect);<br />
tmpEffect->m_lastTick = (unsigned int)time(NULL);<br />
<br />
}<br />
}
Here is the recomendation for what I am supposed to do acording to msvs
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector(879): error C2036: 'regions *const ' : unknown size<br />
1> C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\include\vector(878) : while compiling class template member function 'unsigned int std::vector<_Ty>::size(void) const'<br />
1> with<br />
1> [<br />
1> _Ty=regions<br />
1> ]<br />
1> c:\users\josh\desktop\pxi_r1430\src\CBaseEntity.cpp(844) : see reference to class template instantiation 'std::vector<_Ty>' being compiled<br />
1> with<br />
1> [<br />
1> _Ty=regions<br />
1> ]
|
|
|
|
|
If the definition of regions included? Also, surround code with <pre> tags so we can read it.
Steve
|
|
|
|
|
Thanks for that is wasdefined as region rather then regions
But now I am getting over 200 errors
Error 1 error LNK2005: "public: static char const * const CBaseEntity::className" (?className@CBaseEntity@@2QBDB) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 2 error LNK2005: "public: static struct Luna<class CBaseEntity>::RegType * CBaseEntity::methods" (?methods@CBaseEntity@@2PAURegType@?$Luna@VCBaseEntity@@@@A) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 3 error LNK2005: "public: __thiscall CBaseEntity::CBaseEntity(void)" (??0CBaseEntity@@QAE@XZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 4 error LNK2005: "public: __thiscall CBaseEntity::~CBaseEntity(void)" (??1CBaseEntity@@QAE@XZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 5 error LNK2005: "public: bool __thiscall CBaseEntity::isCasting(void)" (?isCasting@CBaseEntity@@QAE_NXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 6 error LNK2005: "public: unsigned int __thiscall CBaseEntity::getId(void)" (?getId@CBaseEntity@@QAEIXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 7 error LNK2005: "public: void __thiscall CBaseEntity::setId(unsigned int)" (?setId@CBaseEntity@@QAEXI@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 8 error LNK2005: "public: unsigned short __thiscall CBaseEntity::getTargId(void)" (?getTargId@CBaseEntity@@QAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 9 error LNK2005: "public: void __thiscall CBaseEntity::setTargId(unsigned int)" (?setTargId@CBaseEntity@@QAEXI@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 10 error LNK2005: "public: bool __thiscall CBaseEntity::isDead(void)" (?isDead@CBaseEntity@@QAE_NXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 11 error LNK2005: "public: char * __thiscall CBaseEntity::getStrippedName(void)" (?getStrippedName@CBaseEntity@@QAEPADXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 12 error LNK2005: "public: void __thiscall CBaseEntity::setObjType(unsigned short)" (?setObjType@CBaseEntity@@QAEXG@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 13 error LNK2005: "public: int __thiscall CBaseEntity::getMaxHp(void)" (?getMaxHp@CBaseEntity@@QAEHXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 14 error LNK2005: "public: int __thiscall CBaseEntity::getMaxMp(void)" (?getMaxMp@CBaseEntity@@QAEHXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 15 error LNK2005: "public: virtual unsigned short __thiscall CBaseEntity::getWeaponDamage(unsigned char)" (?getWeaponDamage@CBaseEntity@@UAEGE@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 16 error LNK2005: "public: virtual unsigned short __thiscall CBaseEntity::getBaseDef(void)" (?getBaseDef@CBaseEntity@@UAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 17 error LNK2005: "public: virtual unsigned short __thiscall CBaseEntity::getDef(void)" (?getDef@CBaseEntity@@UAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 18 error LNK2005: "public: virtual unsigned short __thiscall CBaseEntity::getBaseAttack(void)" (?getBaseAttack@CBaseEntity@@UAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 19 error LNK2005: "public: virtual unsigned short __thiscall CBaseEntity::getAttack(void)" (?getAttack@CBaseEntity@@UAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 20 error LNK2005: "public: unsigned short __thiscall CBaseEntity::getZone(void)" (?getZone@CBaseEntity@@QAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 21 error LNK2005: "public: void __thiscall CBaseEntity::setZone(unsigned short)" (?setZone@CBaseEntity@@QAEXG@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 22 error LNK2005: "public: void __thiscall CBaseEntity::setAltAnimation(unsigned char)" (?setAltAnimation@CBaseEntity@@QAEXE@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 23 error LNK2005: "public: int __thiscall CBaseEntity::getHp(void)" (?getHp@CBaseEntity@@QAEHXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 24 error LNK2005: "public: short __thiscall CBaseEntity::getMp(void)" (?getMp@CBaseEntity@@QAEFXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 25 error LNK2005: "public: short __thiscall CBaseEntity::getHpp(void)" (?getHpp@CBaseEntity@@QAEFXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 26 error LNK2005: "public: short __thiscall CBaseEntity::getMpp(void)" (?getMpp@CBaseEntity@@QAEFXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 27 error LNK2005: "public: short __thiscall CBaseEntity::getTp(void)" (?getTp@CBaseEntity@@QAEFXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 28 error LNK2005: "public: void __thiscall CBaseEntity::setHp(int)" (?setHp@CBaseEntity@@QAEXH@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 29 error LNK2005: "public: void __thiscall CBaseEntity::setMp(int)" (?setMp@CBaseEntity@@QAEXH@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 30 error LNK2005: "public: void __thiscall CBaseEntity::setTp(short)" (?setTp@CBaseEntity@@QAEXF@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 31 error LNK2005: "public: float __thiscall CBaseEntity::getMaxCRatio(class CBaseEntity *)" (?getMaxCRatio@CBaseEntity@@QAEMPAV1@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 32 error LNK2005: "public: float __thiscall CBaseEntity::getMinCRatio(class CBaseEntity *)" (?getMinCRatio@CBaseEntity@@QAEMPAV1@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 33 error LNK2005: "public: virtual void __thiscall CBaseEntity::die(void)" (?die@CBaseEntity@@UAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 34 error LNK2005: "public: void __thiscall CBaseEntity::takePhysicalDamage(int,class CBaseEntity *)" (?takePhysicalDamage@CBaseEntity@@QAEXHPAV1@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 35 error LNK2005: "public: void __thiscall CBaseEntity::weaponskill(unsigned short,unsigned short,class CBaseEntity *)" (?weaponskill@CBaseEntity@@QAEXGGPAV1@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 36 error LNK2005: "public: unsigned short __thiscall CBaseEntity::getHitRate(class CBaseEntity *,unsigned int)" (?getHitRate@CBaseEntity@@QAEGPAV1@I@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 37 error LNK2005: "public: virtual unsigned short __thiscall CBaseEntity::getEva(void)" (?getEva@CBaseEntity@@UAEGXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 38 error LNK2005: "public: unsigned short __thiscall CBaseEntity::getAccuracy(class CBaseEntity *,unsigned int)" (?getAccuracy@CBaseEntity@@QAEGPAV1@I@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 39 error LNK2005: "public: void __thiscall CBaseEntity::missedAttackAction(class CBaseEntity *)" (?missedAttackAction@CBaseEntity@@QAEXPAV1@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 40 error LNK2005: "public: bool __thiscall CBaseEntity::isFaceing(struct position,int)" (?isFaceing@CBaseEntity@@QAE_NUposition@@H@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 41 error LNK2005: "public: bool __thiscall CBaseEntity::isInFrontOf(class CBaseEntity *,int)" (?isInFrontOf@CBaseEntity@@QAE_NPAV1@H@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 42 error LNK2005: "public: bool __thiscall CBaseEntity::isBehind(class CBaseEntity *,int)" (?isBehind@CBaseEntity@@QAE_NPAV1@H@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 43 error LNK2005: "public: float __thiscall CBaseEntity::getVModifier(void)" (?getVModifier@CBaseEntity@@QAEMXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 44 error LNK2005: "public: float __thiscall CBaseEntity::getCModifier(void)" (?getCModifier@CBaseEntity@@QAEMXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 45 error LNK2005: "public: void __thiscall CBaseEntity::updateEnmity(class CBaseEntity *,int,int)" (?updateEnmity@CBaseEntity@@QAEXPAV1@HH@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 46 error LNK2005: "public: bool __thiscall CBaseEntity::isRangedAttacking(void)" (?isRangedAttacking@CBaseEntity@@QAE_NXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 47 error LNK2005: "public: int __thiscall CBaseEntity::adjustDamage(class CWeaponItem *,int)" (?adjustDamage@CBaseEntity@@QAEHPAVCWeaponItem@@H@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 48 error LNK2005: "public: void __thiscall CBaseEntity::disableJobTraits(void)" (?disableJobTraits@CBaseEntity@@QAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 49 error LNK2005: "public: void __thiscall CBaseEntity::enableJobTraits(void)" (?enableJobTraits@CBaseEntity@@QAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 50 error LNK2005: "public: void __thiscall CBaseEntity::setTraits(void)" (?setTraits@CBaseEntity@@QAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 51 error LNK2005: "public: void __thiscall CBaseEntity::checkEffects(void)" (?checkEffects@CBaseEntity@@QAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 52 error LNK2005: "public: bool __thiscall CBaseEntity::hasStatusEffect(unsigned short)" (?hasStatusEffect@CBaseEntity@@QAE_NG@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 53 error LNK2005: "public: void __thiscall CBaseEntity::eraseStatusEffect(void)" (?eraseStatusEffect@CBaseEntity@@QAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 54 error LNK2005: "public: void __thiscall CBaseEntity::dispelStatusEffect(void)" (?dispelStatusEffect@CBaseEntity@@QAEXXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 55 error LNK2005: "public: unsigned int __thiscall CBaseEntity::getCritHitRateOn(class CBaseEntity *)" (?getCritHitRateOn@CBaseEntity@@QAEIPAV1@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 56 error LNK2005: "public: bool __thiscall CBaseEntity::canPerform(enum action)" (?canPerform@CBaseEntity@@QAE_NW4action@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 57 error LNK2005: "public: bool __thiscall CBaseEntity::isCountering(void)" (?isCountering@CBaseEntity@@QAE_NXZ) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 58 error LNK2005: "public: int __thiscall CBaseEntity::getModSum(int)" (?getModSum@CBaseEntity@@QAEHH@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 59 error LNK2005: "public: int __thiscall CBaseEntity::reduceDamage(int)" (?reduceDamage@CBaseEntity@@QAEHH@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 60 error LNK2005: "public: bool __thiscall CBaseEntity::removeShadows(int)" (?removeShadows@CBaseEntity@@QAE_NH@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 61 error LNK2005: "public: __thiscall CBaseEntity::CBaseEntity(struct lua_State *)" (??0CBaseEntity@@QAE@PAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 62 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetMp(struct lua_State *)" (?LUAgetMp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 63 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetTp(struct lua_State *)" (?LUAgetTp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 64 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetMaxHp(struct lua_State *)" (?LUAgetMaxHp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 65 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetMaxMp(struct lua_State *)" (?LUAgetMaxMp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 66 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetXPos(struct lua_State *)" (?LUAgetXPos@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 67 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetYPos(struct lua_State *)" (?LUAgetYPos@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 68 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetZPos(struct lua_State *)" (?LUAgetZPos@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 69 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetRotation(struct lua_State *)" (?LUAgetRotation@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 70 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetZone(struct lua_State *)" (?LUAgetZone@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 71 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddStatusEffect(struct lua_State *)" (?LUAaddStatusEffect@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 72 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetStatusEffect(struct lua_State *)" (?LUAgetStatusEffect@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 73 error LNK2005: "public: int __thiscall CBaseEntity::LUAremoveStatusType(struct lua_State *)" (?LUAremoveStatusType@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 74 error LNK2005: "public: int __thiscall CBaseEntity::LUAremoveStatusEffect(struct lua_State *)" (?LUAremoveStatusEffect@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 75 error LNK2005: "public: int __thiscall CBaseEntity::LUAeraseStatusEffect(struct lua_State *)" (?LUAeraseStatusEffect@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 76 error LNK2005: "public: int __thiscall CBaseEntity::LUAdispelStatusEffect(struct lua_State *)" (?LUAdispelStatusEffect@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 77 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetAtt(struct lua_State *)" (?LUAgetAtt@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 78 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetAcc(struct lua_State *)" (?LUAgetAcc@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 79 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetDef(struct lua_State *)" (?LUAgetDef@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 80 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetEva(struct lua_State *)" (?LUAgetEva@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 81 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetBaseMoveSpeed(struct lua_State *)" (?LUAgetBaseMoveSpeed@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 82 error LNK2005: "public: int __thiscall CBaseEntity::LUAisInFrontOf(struct lua_State *)" (?LUAisInFrontOf@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 83 error LNK2005: "public: int __thiscall CBaseEntity::LUAisBehind(struct lua_State *)" (?LUAisBehind@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 84 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetMod(struct lua_State *)" (?LUAgetMod@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 85 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetVModifier(struct lua_State *)" (?LUAgetVModifier@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 86 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetCModifier(struct lua_State *)" (?LUAgetCModifier@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 87 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetTarget(struct lua_State *)" (?LUAgetTarget@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 88 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetElementalResist(struct lua_State *)" (?LUAgetElementalResist@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 89 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetStat(struct lua_State *)" (?LUAgetStat@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 90 error LNK2005: "public: int __thiscall CBaseEntity::LUAisPlayer(struct lua_State *)" (?LUAisPlayer@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 91 error LNK2005: "public: int __thiscall CBaseEntity::LUAisNPC(struct lua_State *)" (?LUAisNPC@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 92 error LNK2005: "public: int __thiscall CBaseEntity::LUAisMob(struct lua_State *)" (?LUAisMob@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 93 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetBaseDamage(struct lua_State *)" (?LUAgetBaseDamage@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 94 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetHp(struct lua_State *)" (?LUAsetHp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 95 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetTp(struct lua_State *)" (?LUAsetTp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 96 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetMp(struct lua_State *)" (?LUAsetMp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 97 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddHp(struct lua_State *)" (?LUAaddHp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 98 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddMp(struct lua_State *)" (?LUAaddMp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 99 error LNK2005: "public: int __thiscall CBaseEntity::LUAremoveHp(struct lua_State *)" (?LUAremoveHp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 100 error LNK2005: "public: int __thiscall CBaseEntity::LUAremoveMp(struct lua_State *)" (?LUAremoveMp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 101 error LNK2005: "public: int __thiscall CBaseEntity::LUAupdateEnmity(struct lua_State *)" (?LUAupdateEnmity@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 102 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetName(struct lua_State *)" (?LUAgetName@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 103 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetId(struct lua_State *)" (?LUAgetId@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 104 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetJob(struct lua_State *)" (?LUAgetJob@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 105 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetLvl(struct lua_State *)" (?LUAgetLvl@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 106 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetSubLvl(struct lua_State *)" (?LUAgetSubLvl@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 107 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetSubJob(struct lua_State *)" (?LUAgetSubJob@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 108 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetHp(struct lua_State *)" (?LUAgetHp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 109 error LNK2005: "public: int __thiscall CBaseEntity::LUAwarp(struct lua_State *)" (?LUAwarp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 110 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendMessage(struct lua_State *)" (?LUAsendMessage@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 111 error LNK2005: "public: int __thiscall CBaseEntity::LUAsteal(struct lua_State *)" (?LUAsteal@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 112 error LNK2005: "public: int __thiscall CBaseEntity::LUAshowNPCTextLine(struct lua_State *)" (?LUAshowNPCTextLine@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 113 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendMoreEvent(struct lua_State *)" (?LUAsendMoreEvent@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 114 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendRelease(struct lua_State *)" (?LUAsendRelease@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 115 error LNK2005: "public: int __thiscall CBaseEntity::LUAunlockSubjobs(struct lua_State *)" (?LUAunlockSubjobs@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 116 error LNK2005: "public: int __thiscall CBaseEntity::LUAunlockJob(struct lua_State *)" (?LUAunlockJob@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 117 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetFreeSlotCount(struct lua_State *)" (?LUAgetFreeSlotCount@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 118 error LNK2005: "public: int __thiscall CBaseEntity::LUAcreateShop(struct lua_State *)" (?LUAcreateShop@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 119 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendShop(struct lua_State *)" (?LUAsendShop@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 120 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendGuild(struct lua_State *)" (?LUAsendGuild@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 121 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetSkill(struct lua_State *)" (?LUAgetSkill@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 122 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetSkillRank(struct lua_State *)" (?LUAgetSkillRank@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 123 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetSkillRank(struct lua_State *)" (?LUAsetSkillRank@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 124 error LNK2005: "public: int __thiscall CBaseEntity::LUAstartEvent(struct lua_State *)" (?LUAstartEvent@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 125 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendSpecialMessage(struct lua_State *)" (?LUAsendSpecialMessage@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 126 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddQuest(struct lua_State *)" (?LUAaddQuest@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 127 error LNK2005: "public: int __thiscall CBaseEntity::LUAcompleteQuest(struct lua_State *)" (?LUAcompleteQuest@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 128 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetQuestStatus(struct lua_State *)" (?LUAgetQuestStatus@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 129 error LNK2005: "public: int __thiscall CBaseEntity::LUAlearnWs(struct lua_State *)" (?LUAlearnWs@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 130 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddSpell(struct lua_State *)" (?LUAaddSpell@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 131 error LNK2005: "public: int __thiscall CBaseEntity::LUAhasSpell(struct lua_State *)" (?LUAhasSpell@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 132 error LNK2005: "public: int __thiscall CBaseEntity::LUAcurrentMission(struct lua_State *)" (?LUAcurrentMission@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 133 error LNK2005: "public: int __thiscall CBaseEntity::LUAcompleteMission(struct lua_State *)" (?LUAcompleteMission@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 134 error LNK2005: "public: int __thiscall CBaseEntity::LUAfailMission(struct lua_State *)" (?LUAfailMission@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 135 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetMissionStatus(struct lua_State *)" (?LUAgetMissionStatus@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 136 error LNK2005: "public: int __thiscall CBaseEntity::LUAincreaseStorage(struct lua_State *)" (?LUAincreaseStorage@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 137 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetLevelCap(struct lua_State *)" (?LUAsetLevelCap@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 138 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetLevelCap(struct lua_State *)" (?LUAgetLevelCap@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 139 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetTitle(struct lua_State *)" (?LUAsetTitle@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 140 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetTitle(struct lua_State *)" (?LUAgetTitle@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 141 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetRace(struct lua_State *)" (?LUAgetRace@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 142 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetNation(struct lua_State *)" (?LUAgetNation@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 143 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetRank(struct lua_State *)" (?LUAgetRank@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 144 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetRankPoints(struct lua_State *)" (?LUAgetRankPoints@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 145 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetPrevZone(struct lua_State *)" (?LUAgetPrevZone@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 146 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetCurrGil(struct lua_State *)" (?LUAgetCurrGil@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 147 error LNK2005: "public: int __thiscall CBaseEntity::LUAgainGil(struct lua_State *)" (?LUAgainGil@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 148 error LNK2005: "public: int __thiscall CBaseEntity::LUAremoveGil(struct lua_State *)" (?LUAremoveGil@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 149 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetFame(struct lua_State *)" (?LUAgetFame@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 150 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetEquip(struct lua_State *)" (?LUAgetEquip@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 151 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetFameLevel(struct lua_State *)" (?LUAgetFameLevel@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 152 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetFame(struct lua_State *)" (?LUAsetFame@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 153 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddFame(struct lua_State *)" (?LUAaddFame@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 154 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetCurrGil(struct lua_State *)" (?LUAsetCurrGil@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 155 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetPos(struct lua_State *)" (?LUAsetPos@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 156 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetAnimation(struct lua_State *)" (?LUAsetAnimation@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 157 error LNK2005: "public: int __thiscall CBaseEntity::LUArankUp(struct lua_State *)" (?LUArankUp@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 158 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddRankPoints(struct lua_State *)" (?LUAaddRankPoints@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 159 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetNation(struct lua_State *)" (?LUAsetNation@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 160 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetWeaponDelay(struct lua_State *)" (?LUAgetWeaponDelay@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 161 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetFameSan(struct lua_State *)" (?LUAsetFameSan@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 162 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetFameBas(struct lua_State *)" (?LUAsetFameBas@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 163 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetFameWin(struct lua_State *)" (?LUAsetFameWin@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 164 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetFameNorg(struct lua_State *)" (?LUAsetFameNorg@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 165 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddItem(struct lua_State *)" (?LUAaddItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 166 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetVar(struct lua_State *)" (?LUAsetVar@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 167 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetVar(struct lua_State *)" (?LUAgetVar@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 168 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetItemInfo(struct lua_State *)" (?LUAgetItemInfo@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 169 error LNK2005: "public: int __thiscall CBaseEntity::LUAhasItem(struct lua_State *)" (?LUAhasItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 170 error LNK2005: "public: int __thiscall CBaseEntity::LUAtakeItem(struct lua_State *)" (?LUAtakeItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 171 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddAndEquipItem(struct lua_State *)" (?LUAaddAndEquipItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 172 error LNK2005: "public: int __thiscall CBaseEntity::LUAaddKeyItem(struct lua_State *)" (?LUAaddKeyItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 173 error LNK2005: "public: int __thiscall CBaseEntity::LUAhasKeyItem(struct lua_State *)" (?LUAhasKeyItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 174 error LNK2005: "public: int __thiscall CBaseEntity::LUAseenKeyItem(struct lua_State *)" (?LUAseenKeyItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 175 error LNK2005: "public: int __thiscall CBaseEntity::LUAremoveKeyItem(struct lua_State *)" (?LUAremoveKeyItem@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 176 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendRaise(struct lua_State *)" (?LUAsendRaise@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 177 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendTractor(struct lua_State *)" (?LUAsendTractor@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 178 error LNK2005: "public: int __thiscall CBaseEntity::LUAsendMenu(struct lua_State *)" (?LUAsendMenu@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 179 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetHomePoint(struct lua_State *)" (?LUAsetHomePoint@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 180 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetFamilyId(struct lua_State *)" (?LUAgetFamilyId@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 181 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetSystemId(struct lua_State *)" (?LUAgetSystemId@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 182 error LNK2005: "public: int __thiscall CBaseEntity::LUAgetState(struct lua_State *)" (?LUAgetState@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 183 error LNK2005: "public: int __thiscall CBaseEntity::LUAsetState(struct lua_State *)" (?LUAsetState@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 184 error LNK2005: "public: int __thiscall CBaseEntity::LUAOnMobDeath(struct lua_State *)" (?LUAOnMobDeath@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 185 error LNK2005: "public: int __thiscall CBaseEntity::LUAOnMobSpawn(struct lua_State *)" (?LUAOnMobSpawn@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 186 error LNK2005: "public: int __thiscall CBaseEntity::LUAgainEXP(struct lua_State *)" (?LUAgainEXP@CBaseEntity@@QAEHPAUlua_State@@@Z) already defined in CBaseEntity.obj C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Warning 187 warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other libs; use /NODEFAULTLIB:library C:\Users\Josh\Desktop\pXi_r1430\LINK PXI
Error 188 error LNK2019: unresolved external symbol "public: void __thiscall CZoneHandler::unlockZoneList(void)" (?unlockZoneList@CZoneHandler@@QAEXXZ) referenced in function "int __cdecl l_registerRegion(struct lua_State *)" (?l_registerRegion@@YAHPAUlua_State@@@Z) C:\Users\Josh\Desktop\pXi_r1430\CLuaManager.obj PXI
Error 189 error LNK2019: unresolved external symbol "public: void __thiscall CZoneHandler::lockZoneList(void)" (?lockZoneList@CZoneHandler@@QAEXXZ) referenced in function "int __cdecl l_registerRegion(struct lua_State *)" (?l_registerRegion@@YAHPAUlua_State@@@Z) C:\Users\Josh\Desktop\pXi_r1430\CLuaManager.obj PXI
Error 190 error LNK2001: unresolved external symbol "public: static class std::vector<struct region,class std::allocator<struct region> > * CLuaManager::regionList" (?regionList@CLuaManager@@2PAV?$vector@Uregion@@V?$allocator@Uregion@@@std@@@std@@A) C:\Users\Josh\Desktop\pXi_r1430\CZoneHandler.obj PXI
Error 191 error LNK2019: unresolved external symbol __imp__DispatchMessageA@4 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 192 error LNK2019: unresolved external symbol __imp__TranslateMessage@4 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 193 error LNK2019: unresolved external symbol __imp__SetWindowTextA@8 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 194 error LNK2019: unresolved external symbol __imp__GetWindowLongA@8 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 195 error LNK2019: unresolved external symbol __imp__PeekMessageA@20 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 196 error LNK2019: unresolved external symbol __imp__RedrawWindow@16 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 197 error LNK2019: unresolved external symbol __imp__UpdateWindow@4 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 198 error LNK2019: unresolved external symbol __imp__ShowWindow@8 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 199 error LNK2019: unresolved external symbol __imp__CreateWindowExA@48 referenced in function "public: static unsigned long __stdcall CWindowClass::handleWindow(void *)" (?handleWindow@CWindowClass@@SGKPAX@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 200 error LNK2019: unresolved external symbol __imp__RegisterClassExA@4 referenced in function "private: unsigned short __thiscall CWindowClass::registerWindowClass(struct HINSTANCE__ *)" (?registerWindowClass@CWindowClass@@AAEGPAUHINSTANCE__@@@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 201 error LNK2019: unresolved external symbol __imp__LoadCursorA@8 referenced in function "private: unsigned short __thiscall CWindowClass::registerWindowClass(struct HINSTANCE__ *)" (?registerWindowClass@CWindowClass@@AAEGPAUHINSTANCE__@@@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 202 error LNK2019: unresolved external symbol __imp__ScrollWindow@20 referenced in function "public: static long __stdcall CWindowClass::callbackProc(struct HWND__ *,unsigned int,unsigned int,long)" (?callbackProc@CWindowClass@@SGJPAUHWND__@@IIJ@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 203 error LNK2019: unresolved external symbol __imp__SetScrollInfo@16 referenced in function "public: static long __stdcall CWindowClass::callbackProc(struct HWND__ *,unsigned int,unsigned int,long)" (?callbackProc@CWindowClass@@SGJPAUHWND__@@IIJ@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 204 error LNK2019: unresolved external symbol __imp__GetScrollInfo@12 referenced in function "public: static long __stdcall CWindowClass::callbackProc(struct HWND__ *,unsigned int,unsigned int,long)" (?callbackProc@CWindowClass@@SGJPAUHWND__@@IIJ@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 205 error LNK2019: unresolved external symbol __imp__DefWindowProcA@16 referenced in function "public: static long __stdcall CWindowClass::callbackProc(struct HWND__ *,unsigned int,unsigned int,long)" (?callbackProc@CWindowClass@@SGJPAUHWND__@@IIJ@Z) C:\Users\Josh\Desktop\pXi_r1430\CWindowClass.obj PXI
Error 206 error LNK1120: 18 unresolved externals C:\Users\Josh\Desktop\pXi_r1430\Debug\PXI.exe PXI
There are all the errors, they say alot of stuff is redefined but it is only defined once, I think
|
|
|
|
|
|
Thank you so much
|
|
|
|
|
Hi,
I have a Arrow bitmap which has a White background and a Yellow Arrow
The BackGround of My Rich Edit is Gray RGB(125,125,125)
I would like the background of the Yellow Arrow to Match the background of My CRichEdit
I looked at some code from article on The CodeProject By Raja Segar entitled
"Drawing TransParent Bitmaps with ease"
and it seemed to do something close to what I want
I figured I didn't have to make the code that generic rather
I could Load the Bitmap and then create a mask bitmap with a text of white and background of Gray "OR" Orignal Bitmap and get what I went
Aprarently not
below is part of the Code
CBitmap *bm = new CBitmap;
bm->LoadBitmap((UINT) IDD_BITMAP);
CDC dcmask;
dcmask.CreateCompatibleDC(NULL);
BITMAP bm_struct;
bm->GetBitmap(&bm_struct);
CBitmap bmask;
bmask.CreateBitmap(bm_struct.bmWidth,bm_struct.bmHeight,bm_struct.bmPlanes,bm_struct.bmBitsPixel,NULL);
dcmask.SelectObject(&bmask);
dcmask.SetTextColor(RGB(0,0,0));
dcmask.SetBkColor(RGB(125,125,125));
CDC dcarrow;
dcarrow.CreateCompatibleDC(NULL);
dcarrow.SelectObject(bm);
dcarrow.BitBlt(0,0,bm_struct.bmWidth,bm_struct.bmHeight,&dcmask,0,0,SRCPAINT);
dcmask.DeleteDC();
dcarrow.DeleteDC();
Afterwards I used OleCreateStaticfromData using the bitmap handle to Display the bitmap
would anyone know why I didn't get a gray background for the yellow arrow
thankx
|
|
|
|
|
Hi guys what i want to do is to show some data in a ClistCtrl column like the following:
________________________________________
stuff |$ 434.55 |
----------------------------------------
stuff2|$ 22,333.55 |
----------------------------------------
stuff2|$ 86.55 |
----------------------------------------
have the dollar sign at the left side, and the number be always at the right side, can someone point me how to do this?? maybe calculing the size of the text and compare it to the cell rect and to some math there? but how how do you get the size of the text?, i remember seeing a function for that but i don't remember the name of it, or if you have an another suggestion please
|
|
|
|
|
manchukuo wrote: but how how do you get the size of the text?
GetTextExtentPoint32[^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Thanks CPallini that is the one i was looking for, so there is no easy way to achieve what i need? or i will have to do all the mungle jumble that i already wrote?
|
|
|
|
|
I would go with the mungle jumble (i.e. sorry, I don't know an alternative).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Have you tried GetNumberFormat() to properly insert the commas and decimal? Then just prefix a '$' and a number of spaces to the resulting string.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
Have you tried GetCurrencyFormat[^]?
You may be right
I may be crazy
-- Billy Joel --
Within you lies the power for good - Use it!
|
|
|
|
|
Hello All!
I want to read a number from CMD [For example: 1234]. Then put each of its components in an array [ For example: a[0]=1, a[1]=2, a[2]=3, a[3]=4 ].
Could anyone help me with my duty?!
The case is urgent!
Thanks for your further cooperation.
|
|
|
|
|
in most programming languages a string is an array of characters;
and in ASCII (and Unicode) the digits 0-9 have consecutive values
(actually 0x30-0x39, but you don't need to know that since you could do (int)(mychar-'0') ).
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read formatted code with indentation, so please use PRE tags for code snippets.
I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).
|
|
|
|
|
Try this code.
It reads a number from CMD [For example: 1234].
Then puts each of its components in an array - digitArray[3]=1, digitArray[2]=2, digitArray[1]=3, digitArray[0]=4
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
int digit=0,digitInput=0;
int digitArray[4]={0},digitn;
void getIntKey(void)
{
digitArray[0]=0;
digitArray[1]=0;
digit=0;
digitInput=0;
while((digit<4))
{
if (kbhit())
{
digitInput=getch();
if ((digitInput>47) && (digitInput<59))
{
digitArray[digit]=(unsigned char)digitInput-48;
digit++;
}
if (digitInput==13) { digitn=digitArray[0]; break; }
}
}
if (digitInput!=13) digitn=digitArray[3]*1+digitArray[2]*10+digitArray[1]*100+digitArray[0]*1000 ;
printf("\n%i\n\n",digitn);
}
int main()
{
system("color 1F");
printf("This program by TopCoder requires you to input 4 digits \n ");
printf("Input Digits (ex. 1=0001 , 1234=1234) \n ");
printf("\nInput Digits >");
getIntKey();
printf("\ndigitArray[3]=%d \n",digitArray[3]);
printf("digitArray[2]=%d \n",digitArray[2]);
printf("digitArray[1]=%d \n",digitArray[1]);
printf("digitArray[0]=%d \n",digitArray[0]);
printf("\n%i\n\n",digitn);
return 0;
}
..
|
|
|
|
|
That was co0l, realy!!
But, is it possible to wait until Enter pressed to diagnose the number of digits? And then the program dynamicaly tunes itself in order to put these digits into the char array which its dimension is defined by the number of digits, the user entered?
|
|
|
|
|
Yes, digit++ can sets the dimension.
Lets say you want to limit the user input to a 9 figure number or 100,000,000,
just set while((digit<4)) to be 9 or whatever and then write the code to process it.
eg.. digitn=digitArray[3]*1+digitArray[2]*10+digitArray[1]*100+digitArray[0]*1000 to digitArray[n]*100000000
This method is clunky .
|
|
|
|
|
Now it is just clunky
#include <iostream.h>
#include <conio.h>
#include <stdio.h>
#include <stdlib.h>
int digit=0,digitInput=0;
int digitArray[10]={0},digitn;
void getIntKey(void)
{
digitArray[0]=0;
digitArray[1]=0;
digit=0;
digitInput=0;
while((digit<9))
{
if (kbhit())
{
digitInput=getch();
if ((digitInput>47) && (digitInput<59))
{
digitArray[digit]=(unsigned char)digitInput-48;
digit++;
printf("%d",digitInput-48);
}
if (digitInput==13) { digitn=digitArray[0]; break; }
}
}
switch(digit)
{
case 0:
case 1:
digitn=digitArray[0]*1 ;
break;
case 2:
digitn= digitArray[1]*1 +digitArray[0]*10 ;
break;
case 3:
digitn= digitArray[2]*1+digitArray[1]*10 +digitArray[0]*100 ;
break;
case 4:
digitn=digitArray[3]*1+digitArray[2]*10+digitArray[1]*100+digitArray[0]*1000 ;
break;
case 5:
digitn=digitArray[4]*1+digitArray[3]*10+digitArray[2]*100+digitArray[1]*1000+digitArray[0]*10000 ;
break;
case 6:
digitn=digitArray[5]*1+digitArray[4]*10+digitArray[3]*100+digitArray[2]*1000+digitArray[1]*10000
+digitArray[0]*100000;
break;
case 7:
digitn=digitArray[6]*1+digitArray[5]*10+digitArray[4]*100+digitArray[3]*1000+digitArray[2]*10000
+digitArray[1]*100000 +digitArray[0]*1000000;
break;
case 8:
digitn=digitArray[7]*1+digitArray[6]*10+digitArray[5]*100+digitArray[4]*1000+digitArray[3]*10000
+digitArray[2]*100000 +digitArray[1]*1000000+digitArray[0]*10000000;
break;
case 9:
digitn=digitArray[8]*1+digitArray[7]*10+digitArray[6]*100+digitArray[5]*1000+digitArray[4]*10000
+digitArray[3]*100000 +digitArray[2]*1000000+digitArray[1]*10000000 +digitArray[0]*100000000;
break;
}
printf("\n%i\n\n",digitn);
}
int main()
{
system("color 1F");
printf("DigitsIntoArrayComponents 3.1 by TopCoder \n ");
printf("Max Input is 8 Digits ( . 99,999,999) \n ");
printf("\nInput Digits >");
getIntKey();
printf("\ndigitArray[7]=%d \n",digitArray[7]);
printf("digitArray[6]=%d \n",digitArray[6]);
printf("digitArray[5]=%d \n",digitArray[5]);
printf("digitArray[4]=%d \n",digitArray[4]);
printf("digitArray[3]=%d \n",digitArray[3]);
printf("digitArray[2]=%d \n",digitArray[2]);
printf("digitArray[1]=%d \n",digitArray[1]);
printf("digitArray[0]=%d \n",digitArray[0]);
printf("\n%i\n\n",digitn);
return 0;
}
...
|
|
|
|
|