Skip to content

several errors when compiling source MyExt64 and Interlude

Featured Replies

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

 

  • Author
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
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

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"

do u have x64 compiler installed in your visual studio?

  • Author

solved, it was just the part #pragma optimize("",off) changed to #pragma optimize("",on)

  • 2 weeks later...
  • Author

he only open question now would be the slot_bit_type={Hair2}, {hairall}, {face} which doesn't work in Vanganth ext

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.