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

 

  • Downvote 1

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

    • I’ve seen tools like Find Person Name by Photo come in handy for creators who want to understand their audience better or spot fake accounts trying to piggyback on their growth. Pairing something like that with a solid SMM panel can make your workflow feel way smoother, especially if you're trying to grow without getting tangled in guesswork.
    • Join our discord: https://www.lineage2.cz/discord  
    • You should buy it then I’ll make a discount  
    • Hi everyone,   In 2014, I completely stepped away from developing L2 servers and doing L2J-related work. Since then, I’ve only opened this server about once a year and helped a few servers and individuals for free. I haven’t taken on any paid L2J work since then.   LINEAGE2.GOLD is a project that has reached about Season 6. The first season launched at the end of 2020 and was a fully rebuilt Gold-style server on the Classic client (protocol 110). It featured many custom systems and enhancements. After several seasons, I decided to abandon the Mobius-based project and move to Lucera, as my goal was to get as close as possible to Interlude PTS behavior while still staying on the L2J platform.   The current project was once again completely rebuilt, this time on the Essence client (protocol 306), and is based on Lucera. Because of that, acquiring a license from Deazer is required.   My Lucera extender includes, but is not limited to: Formulas.java Basic anti-bot detection, which proved quite effective, we caught most Adrenaline users using relatively simple server-side logic, logged them, and took staff action. Simple admin account lookup commands based on IP, HWID, and similar identifiers. In-game Captcha via https://lineage2.gold/code, protected by Cloudflare, including admin commands for blacklisting based on aggression levels and whitelisting. Additional admin tools such as Auto-Play status checks, Enchanted Hero Weapon live sync, force add/remove clans from castle sieges, item listeners for live item monitoring, and more. A fully rewritten Auto-Play system with support for ExAutoPlaySetting, while still using the Auto-Play UI wheel, featuring: Debuff Efficiency Party Leader Assist Respectful Hunting Healer AI Target Mode Range Mode Summoner buff support Dwarf mechanics Reworked EffectDispelEffects to restore buffs after Cancellation. Raid Bomb item support. Reworked CronZoneSwitcher. Prime Time Raid Respawn Service. Community Board features such as Top rankings and RB/Epic status. Custom systems for Noblesse, Subclasses, support-class rewards, and much more.   Depending on the deal, the project can include: The lineage2.gold domain The website built on the Laravel PHP framework The server’s Discord Client Interface source Server files and extender source The server database (excluding private data such as emails and passwords)   I’m primarily looking for a serious team to continue the project, as it would be a shame to see this work abandoned. This is not cheap. You can DM me with offers. If you’re wondering why I’m doing this: I’ve felt a clear lack of appreciation from the L2 community, and I’m not interested in doing charity work for people who don’t deserve it. I’m simply not someone who tolerates BS. Server Info: https://lineage2.gold/info Server for test: https://lineage2.gold/download Over 110 videos YouTube playlist: https://www.youtube.com/watch?v=HO7BZaxUv2U&list=PLD9WZ0Nj-zstZaYeWxAxTKbX7ia2M_DUu&index=113
  • 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..

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock