Mai jos veti gasi FIX-uri pentru erorile si warning-urile care apar atunci cand dai update la sursa binary (de la VS13 -> VS19/VS22)
Pe mine m-a ajutat enorm atunci cand am facut update-ul, deoarece fix erorile astea le aveam!
Eroare:
Code:
"public: void __thiscall SpherePack::LostChild(class SpherePack *)" (?LostChild@SpherePack@@QAEXPAV1@@Z)".
Warning #1: (in EtherBase)
Code:
Warning C6328 Size mismatch: '__int64' was sent as _Param_(3) when the call to 'fprintf' required 'int'. EterBase 03.Source\Binary\source\EterBase\error.cpp 59
Warning C28159 Use 'CreateProcess' instead of 'WinExec'. Cause: Deprecated. See MSDN for details
EterBase 03.Source\Binary\source\EterBase\error.cpp 197
Warning C4477 'fprintf' : Format string '%08x' requires an argument of type 'unsigned int', but 1 variable number of arguments of type 'time_t'
EterBase \03.Source\Binary\source\EterBase\error.cpp 59
Warning #2 (in EterLib):
Code:
C5208: An unnamed class used in a typedef cannot declare members other than non-static data members, member initializer lists, or member classes.
File: EterLib/SkyBox.h (Line 108)
C4838: A narrowing conversion is required between 'DWORD' and 'LONG'.
File: EterLib/DibBar.cpp (Line 7)
C4838: A narrowing conversion is required between 'unsigned long' and 'LONG'.
File: EterLib/DibBar.cpp (Line 81)
C4267: '=': conversion from 'size_t' to 'short'; possible data loss.
File: EterLib/GrpFontTexture.cpp
C4838: A narrowing conversion is required between 'UINT' and 'LONG'.
File: EterLib/GrpScreen.cpp
C4996: 'GetVersionExA': declared deprecated.
File: EterLib/IME.cpp
Warning #3: (in EtherPythonLib)
Code:
C4838: A narrowing conversion is required between 'int' and 'unsigned char'.
File: EterPythonLib/PythonGraphic.cpp (Line 352)
C4091: 'typedef': ignored on the left of 'Ul::CSlotWindow::SStoreCoolDown' when no variable is declared.
File: EterPythonLib/PythonSlotWindow.h (Line 88)
C4267: '=': conversion from 'size_t' to 'BYTE'; possible data loss.
File: EterPythonLib/PythonSlotWindow.h (Line 88)
File: EterPythonLib/PythonWindow.cpp (Line 1633)
Warning #4 (in GameLib):
Code:
C5208: An unnamed class used in a typedef cannot declare members other than non-static data members, member initializer lists, or member classes.
File: GameLib/03.Source/Binary/source/eterLib/SkyBox.h (Line 108)
Warning #5: (in ScriptLib)
Code:
C5208: An unnamed class used in a typedef cannot declare members other than non-static data members, member initializer lists, or member classes.
File: ScriptLib/03.Source/Binary/source/eterLib/SkyBox.h (Line 108)
Warning #6 (in SpeedTreeLib)
Code:
C4477: 'sprintf': the format string '%s' requires a 'char *' type argument, but the type of the argument is 'LPVOID'.
File: SpeedTreeLib/03.Source/Binary/source/SpeedTreeLib/VertexShaders.h (Line 171)
Rezolvari:
1. FIX Eroare:
SpherePack.h:
Cauta:
Code:
inline void LostChild(SpherePack *pack);
2. GameLib Warnings, ScriptLib Warnings
SkyBox.h:
Cauta:
Code:
typedef TSkyObjectQuadVector::iterator TSkyObjectQuadIterator;
Code:
typedef struct
3. EterLib Warnings
DibBar.cpp:
Cauta:
Code:
CBlockTexture * CDibBar::__BuildTextureBlock(DWORD dwxPos, DWORD dwyPos, DWORD dwImageWidth, DWORD dwImageHeight, DWORD dwTextureWidth, DWORD dwTextureHeight)
DibBar.h:
Cauta:
Code:
CBlockTexture * __BuildTextureBlock(DWORD dwxPos, DWORD dwyPos, DWORD dwImageWidth, DWORD dwImageHeight, DWORD dwTextureWidth, DWORD dwTextureHeight);
DibBar.h:
Cauta:
Code:
DWORD m_dwWidth;
DWORD m_dwHeight;
GrpFontTexture.cpp:
Cauta:
Code:
rNewCharInfo.index = m_pFontTextureVector.size() - 1;
GrpScreen.cpp:
Cauta:
Code:
RECT rcTop={0, 0, ms_d3dPresentParameter.BackBufferWidth, g_rcBrowser.top};
RECT rcBottom={0, g_rcBrowser.bottom, ms_d3dPresentParameter.BackBufferWidth, ms_d3dPresentParameter.BackBufferHeight};
RECT rcLeft={0, g_rcBrowser.top, g_rcBrowser.left, g_rcBrowser.bottom};
RECT rcRight={g_rcBrowser.right, g_rcBrowser.top, ms_d3dPresentParameter.BackBufferWidth, g_rcBrowser.bottom};
4. EtherPythonLib Warnings
PythonGraphic.cpp:
Cauta:
Code:
imgDescLen, // textLen[0],
PythonWindow.cpp:
Cauta:
Code:
m_bycurIndex = rand() % m_ImageVector.size();
Inlocuieste cu:
5. SpeedTreeLib Warnings
VertexShaders.h:
Cauta:
Code:
sprintf(szError, "Failed to assemble branch vertex shader.\nThe error reported is [ %s ].\n", pError->GetBufferPointer( ));
Inlocuieste cu:
6. Pentru problemele legate de warning "GetVersionExA", recomand sa le ascundeti.. nu sunt nimic grav. Pentru a face asta mergeti in fisierul unde e warning-ul si adaugati:
7. Pentru a rezolva warning "SStoreCoolDown" in EtherPythonLib, faceti asa:
PythonSlotWindow.h:
Cauta:
Code:
typedef struct SStoreCoolDown { float fCoolTime; float fElapsedTime; bool bActive; };
8. Nu in ultimul rand, hai sa rezolvam si warning-ul din Eterbase legat de mismatch size:
error.cpp:
Cauta:
Code:
fprintf(fException, "Time Stamp: 0x%08x - %s\n", module_time, ctime(&module_time));
Orice alt warning aveti, cautati-l pe net, iar daca e nesemnificativ sau nu e grav il puteti ascunde adaugand in fisierul respectiv:
Code:
#pragma warning(disable : cod warning aici)