Jump to content
  • 0

several errors when compiling source MyExt64 and Interlude


Question

Posted

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

 

7 answers to this question

Recommended Posts

  • 0
Posted
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
  • 0
Posted
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

  • 0
Posted
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"

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • 🌐 Works Globally Without VPN: Activate 5TB + Gemini Pro anywhere in the world on your personal Google account in under 60 seconds!     FINAL CALL: Google is Shutting This Down After October 2026! Google will NEVER bring back this window of opportunity again. Once this month ends, this massive backdoor upgrade is gone permanently!  BUY 2, GET 1 FREE IS STILL LIVE! Stock up now for yourself, your family, your business, and your friends! Think about it: Every single person you know uses a Gmail account, and everyone is running out of storage. Don't let your loved ones get trapped paying $20–$30 every single month when you can set them up with 5TB Cloud Storage + Gemini Advanced (12–18 Months) right now for only $15! Why Buy Bulk Activations Today? Instant Gift Value: Perfect lifetime-style gift for clients, family, or team members. 100% Private & Safe: Activates on personal Gmails—zero passwords or logins required. Global Access: Works worldwide with zero VPN hassles. Instant Automated Delivery: Receive your activation links in seconds 24/7! ‍ Time is running out fast—secure your extra free licenses before the October deadline hits! Order Your Bundle Now on the Website
    • The server will officially launch on 2026-10-24, at 10:00 AM (GMT+3).
    • L2OFF Vanganth Gracia Final P110 [Experimental Pre-Alpha] Hello everyone! I would like to share some early gameplay footage of my L2OFF Vanganth Gracia Final P110 project. The project is currently in Experimental Pre-Alpha development. Many systems have already been implemented or adapted to Protocol 110, but there is still a lot of work and testing to be done.   Current Development Progress: Character creation, login and gameplay Character movement, combat and skills NPCs, monsters and basic interactions Inventory, equipment and visual effects Clan and party systems Warehouse and freight systems NPC shops, multisell and trading Mail system Pets and summons Skill Enchant and Ability system Fishing, quests and other gameplay features Various additional features and improvements Please note: Not all features are fully functional yet. Some systems are still incomplete, and bugs or unexpected issues are expected. This is an early experimental project, and a lot more testing, fixes and improvements are required before it can be considered stable.   Gameplay Preview #1       Gameplay Preview #2     More updates and gameplay previews will be shared as development continues.   Project Status: Experimental Pre-Alpha Platform: L2OFF Vanganth Gracia Final Client Protocol: P110 (Grand Crusade) Thanks for watching!
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..