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"

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • L2 DEVS - HTML DESIGN (ALL NPC'S)    
    • I only share for free what they are reselling 🙂 You keep crying in all the publications, and if you are looking for h5 or gd wait for 5 or 6 years... cheers.... GENERAL Cached Extended to 8192kb IOBuffer Hair2SlotCache ItemBidAuctioner Clan Hall Current Olympiad Season Rank pages System (Shows Points/Games - Fully Configurable) Automatic Flag Around Raidboss System Offline Shop & Buffers Restore After Restart (Fixed location) Offline Buffer System PvP Auto Announce System Rebuilt with Extra Addons (Fully Configurable, Name, Zones, Rewards) Automatic Announce System Rebuilt with Extra Addons (Fully Configurable) ALT+B Augmentation House Shift+Click Droplist/Spoil List Epic Items Rank RB points Rank ChangeColorName ChangeColorTitle Change Skin (Race) Change Gender Custom Subclass (Acumulative) Achievements Item Delivery System  Augmentations/Enchants Automatic Announce System Auto Learn Skills PvP Reward Pk Reward War Reward Scheme buffer GlobalChatTrade Trade Augment Items Castle Announce Time Castle Standby Time Fix Spiritshots delay SpellbooksDrop Enable/Disable Drop custom Fully configurable, lvl min max allmobs, allrb, individual New cancel effect min,max BlessedarmorEnchantRate BlessedmagicWeaponEnchantRate BlessednormalWeaponEnchantRate MaxSlosChars MaxSlotsDwarfs Enable or disable all commands Fix fast loading npc OlympiadRestoreStatsOnFightStart OlympiadSystemSecondTimeEnabled OlympiadEnterLast10Minute OlympiadThirdClassSummons MinLevelTrade AnnounceSubClassMsg1 AnnounceSubClassMsg2 AnnounceSubClassMsg3 LimitedSubClassRace NoSellItems Change ID SealStones for AA NoPrivateBuyItems NoDropPlayerOnDie DisableSkillEnchantData Show Level Mobs Show npc clan flag DespawnSummonEnBattle SummonPetEnBattle RideSummonPetEnBattle DitanceToTargetMove EnterWorld_Undying EnterWorld_UnHide BlockWhispMessagePlayerToGM UseItemsWithHide CriticalSkillDamageBonusPer=4.0 Disable SSQSystem OnCastle Siege End Use any dyes Buy halls directly in auctioneer without waiting for the auction, configuration to change the item you consume MensajeEnterWorldServer Command .hero enable/disable hero aura Config vip global chat character, chat by systemsg Soulshots: NoSendSystemMessageUse Panel //admin Global vote reward Agathions system Anti Interface, control all patch files by md5 Command .menu configurable, last restart, name, maxusers, privatestores Spawn protection activate deactivate consume items to activate  Activate or deactivate autoloot for vip characters EVENTS Happy Hour Event reworked Configurable by announcements or systemsg Team VS Team Capture The Flag Death Match Last Man Standing Destroy The Base Korean Style Castle Siege Check if the player is inside the tvt event due to disconnection/critical error Top 1/5 killer reward/announce TimeAfk ResetReuseSkills ResetBuffsOnFinish Firework effect Reward win/lost Add Team Location Title custom Red/blue Open Door/Wall System BalanceBishops Show kills in title Invest positions Show Death To Top Delete Non-Subclass Skills     RELOADS Reload Enterworld Html Option Reload Faction System Reload Donate Shop Reload OfflineBuffer Reload Champion NPC Reload CliExt Reload AntiBot Reload Vip System Reload Auction Reload AutoLoot Reload CastleSiegeManager Reload CharacterLock Reload ClanPvPStatus Reload AutoLearn Reload ClanReputationRank Reload ClanSystem Reload CreatureAction Reload Customs.ini Reload L2server.ini Reload SkillData.txt Reload doordata.txt Reload decodata.txt Reload Multisell Reload DropList   Extender tested for more than 3 years. Assured stability. Possibility of adding MOD's upon request. (Not included, consult).
    • some peoples trash is another mans treasure, is that your treasure?   people might like the content but you are still the rat in the room     thats the community judging you.  
    • Keep reselling what I publish here for free!!! 🙂 GG  
  • Topics

×
×
  • Create New...