Jump to content
  • 0

several errors when compiling source MyExt64 and Interlude


tiagopyerri

Question

several errors when compiling source MyExt64 and Source Interlude Vanganth Visual Studio 2005.

 

as described in the post by Eressea (Emca)
since I lost my computer and got a new one, I downloaded the VS2005 version and installed it normally without errors, but since then I can't compile the sources from Vanganth and much less from MyExt64

I'm using virtual box windows server 2008 R2

 

  • Downvote 1
Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0
10 hours ago, Anarchy said:

you gotta post some errors bro no one can help you with 0 info

sry

look here again

 

 

Compiling...
DllMain.cpp
.\DllMain.cpp(69) : error C2664: 'LoadLibraryA' : cannot convert parameter 1 from 'const wchar_t [14]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\DllMain.cpp(78) : error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'const wchar_t [27]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\DllMain.cpp(82) : error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'const wchar_t [23]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
CallStack.cpp
.\CallStack.cpp(72) : error C2664: 'CreateFileA' : cannot convert parameter 1 from 'const WCHAR *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
DoorGeo.cpp
DoorData.cpp
Geo.cpp
HerbAbnormalMgr.cpp
SkillMod.cpp
ExData.cpp
CreatureTimerHandler.cpp
SystemMessage.cpp
CAttackAction.cpp
ClassExtender.cpp
NpcSocket.cpp
NpcServer.cpp
DB.cpp
OlympiadField.cpp
OlympiadUser.cpp
PartyRoom.cpp
CParty.cpp
Config.cpp
Generating Code...
Compiling...
SkillInfo.cpp
CPacket.cpp
L2Server.cpp
PvPAnnounce.cpp
.\PvPAnnounce.cpp(99) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'wchar_t [32]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\PvPAnnounce.cpp(100) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'wchar_t [32]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\PvPAnnounce.cpp(101) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'wchar_t [32]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
AutoAnnounce.cpp
.\AutoAnnounce.cpp(48) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'TCHAR [16384]' (or there is no acceptable conversion)
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(875): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const std::basic_string<_Elem,_Traits,_Ax> &)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(880): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(885): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        while trying to match the argument list '(std::wstring, TCHAR [16384])'
.\AutoAnnounce.cpp(52) : error C2664: 'std::basic_stringstream<_Elem,_Traits,_Alloc>::basic_stringstream(std::ios_base::openmode)' : cannot convert parameter 1 from 'TCHAR [16384]' to 'std::ios_base::openmode'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Alloc=std::allocator
        ]
        There is no context in which this conversion is possible
.\AutoAnnounce.cpp(66) : error C2664: 'GetPrivateProfileStringA' : cannot convert parameter 2 from 'const wchar_t *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\AutoAnnounce.cpp(68) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'TCHAR [16384]' (or there is no acceptable conversion)
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(875): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const std::basic_string<_Elem,_Traits,_Ax> &)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(880): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(885): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        while trying to match the argument list '(std::wstring, TCHAR [16384])'
.\AutoAnnounce.cpp(74) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'const wchar_t *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\AutoAnnounce.cpp(79) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'const wchar_t *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
Link to comment
Share on other sites

  • 0
14 hours ago, tiagopyerri said:

sry

look here again

 

 

Compiling...
DllMain.cpp
.\DllMain.cpp(69) : error C2664: 'LoadLibraryA' : cannot convert parameter 1 from 'const wchar_t [14]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\DllMain.cpp(78) : error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'const wchar_t [27]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\DllMain.cpp(82) : error C2664: 'MessageBoxA' : cannot convert parameter 2 from 'const wchar_t [23]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
CallStack.cpp
.\CallStack.cpp(72) : error C2664: 'CreateFileA' : cannot convert parameter 1 from 'const WCHAR *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
DoorGeo.cpp
DoorData.cpp
Geo.cpp
HerbAbnormalMgr.cpp
SkillMod.cpp
ExData.cpp
CreatureTimerHandler.cpp
SystemMessage.cpp
CAttackAction.cpp
ClassExtender.cpp
NpcSocket.cpp
NpcServer.cpp
DB.cpp
OlympiadField.cpp
OlympiadUser.cpp
PartyRoom.cpp
CParty.cpp
Config.cpp
Generating Code...
Compiling...
SkillInfo.cpp
CPacket.cpp
L2Server.cpp
PvPAnnounce.cpp
.\PvPAnnounce.cpp(99) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'wchar_t [32]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\PvPAnnounce.cpp(100) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'wchar_t [32]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\PvPAnnounce.cpp(101) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'wchar_t [32]' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
AutoAnnounce.cpp
.\AutoAnnounce.cpp(48) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'TCHAR [16384]' (or there is no acceptable conversion)
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(875): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const std::basic_string<_Elem,_Traits,_Ax> &)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(880): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(885): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        while trying to match the argument list '(std::wstring, TCHAR [16384])'
.\AutoAnnounce.cpp(52) : error C2664: 'std::basic_stringstream<_Elem,_Traits,_Alloc>::basic_stringstream(std::ios_base::openmode)' : cannot convert parameter 1 from 'TCHAR [16384]' to 'std::ios_base::openmode'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Alloc=std::allocator
        ]
        There is no context in which this conversion is possible
.\AutoAnnounce.cpp(66) : error C2664: 'GetPrivateProfileStringA' : cannot convert parameter 2 from 'const wchar_t *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\AutoAnnounce.cpp(68) : error C2679: binary '=' : no operator found which takes a right-hand operand of type 'TCHAR [16384]' (or there is no acceptable conversion)
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(875): could be 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const std::basic_string<_Elem,_Traits,_Ax> &)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(880): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(const _Elem *)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\xstring(885): or 'std::basic_string<_Elem,_Traits,_Ax> &std::basic_string<_Elem,_Traits,_Ax>::operator =(_Elem)'
        with
        [
            _Elem=wchar_t,
            _Traits=std::char_traits,
            _Ax=std::allocator
        ]
        while trying to match the argument list '(std::wstring, TCHAR [16384])'
.\AutoAnnounce.cpp(74) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'const wchar_t *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
.\AutoAnnounce.cpp(79) : error C2664: 'GetPrivateProfileIntA' : cannot convert parameter 2 from 'const wchar_t *' to 'LPCSTR'
        Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast

the errors are half written and also in a weird way just post them on www.pastebin.com and we will help you

Link to comment
Share on other sites

  • 0
On 2/10/2022 at 2:53 AM, tiagopyerri said:

sry

look here again

are you building in debug or release?

either way its just character encoding set is wrong, but should be correct unless someone has been playing with project settings, try release build if you're not already, if still errors, in VS right click IlExt project and go to properties, where it says "Character Set", set it to "Use Unicode Character Set"

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now


×
×
  • Create New...