Building flhook
-
ok below is my build log, what am i missing here?
ive just read this topic http://the-starport.net/index.php?option=com_smf&Itemid=26&topic=998.0, is there no way to update it to be buildable in all c++ compilers?
Compiling…
cl : Command line warning D9035 : option ‘Wp64’ has been deprecated and will be removed in a future release
Tools.cpp
…\source\Tools.cpp(33) : warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of ‘sprintf’
…\source\Tools.cpp(82) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\Tools.cpp(84) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\Tools.cpp(86) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\Tools.cpp(113) : warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of ‘sprintf’
…\source\Tools.cpp(142) : warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of ‘sprintf’
…\source\Tools.cpp(161) : warning C4996: ‘sscanf’: This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(324) : see declaration of ‘sscanf’
…\source\Tools.cpp(191) : warning C4996: ‘sscanf’: This function or variable may be unsafe. Consider using sscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(324) : see declaration of ‘sscanf’
Settings.cpp
…\source\Settings.cpp(148) : warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of ‘sprintf’
…\source\Settings.cpp(161) : error C2065: ‘i’ : undeclared identifier
…\source\Settings.cpp(161) : error C2065: ‘i’ : undeclared identifier
…\source\Settings.cpp(164) : error C2065: ‘i’ : undeclared identifier
FLHook.cpp
…\source\FLHook.cpp(182) : warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of ‘fopen’
…\source\FLHook.cpp(185) : warning C4996: ‘localtime’: This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(114) : see declaration of ‘localtime’
…\source\FLHook.cpp(245) : warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of ‘fopen’
…\source\FLHook.cpp(398) : warning C4996: ‘swscanf’: This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(575) : see declaration of ‘swscanf’
…\source\FLHook.cpp(404) : warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of ‘sprintf’
…\source\FLHook.cpp(406) : warning C4996: ‘sprintf’: This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(366) : see declaration of ‘sprintf’
…\source\FLHook.cpp(455) : warning C4996: ‘_vsnwprintf’: This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of ‘_vsnwprintf’
…\source\FLHook.cpp(470) : warning C4996: ‘_vsnwprintf’: This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of ‘_vsnwprintf’
wildcards.cpp
HkDataBaseMarket.cpp
HkFuncTools.cpp
…\source\HkFuncTools.cpp(82) : warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of ‘fopen’
…\source\HkFuncTools.cpp(157) : warning C4996: ‘swscanf’: This function or variable may be unsafe. Consider using swscanf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(575) : see declaration of ‘swscanf’
…\source\HkFuncTools.cpp(183) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkFuncTools.cpp(254) : error C2679: binary ‘=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(914): 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\Microsoft Visual Studio 9.0\VC\include\xstring(919): 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\Microsoft Visual Studio 9.0\VC\include\xstring(924): 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, const unsigned short *)’
HkFuncPlayers.cpp
…\source\HkFuncPlayers.cpp(24) : warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of ‘fopen’
…\source\HkFuncPlayers.cpp(217) : warning C4996: ‘strcpy’: This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(74) : see declaration of ‘strcpy’
…\source\HkFuncPlayers.cpp(462) : error C2679: binary ‘=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(914): 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\Microsoft Visual Studio 9.0\VC\include\xstring(919): 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\Microsoft Visual Studio 9.0\VC\include\xstring(924): 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, const unsigned short *)’
…\source\HkFuncPlayers.cpp(982) : error C2679: binary ‘=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(914): 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\Microsoft Visual Studio 9.0\VC\include\xstring(919): 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\Microsoft Visual Studio 9.0\VC\include\xstring(924): 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, const unsigned short *)’
…\source\HkFuncPlayers.cpp(1000) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkFuncPlayers.cpp(1051) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
HkFuncOther.cpp
…\source\HkFuncOther.cpp(68) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
HkFuncMsg.cpp
HkFuncLog.cpp
…\source\HkFuncLog.cpp(11) : warning C4996: ‘unlink’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _unlink. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(301) : see declaration of ‘unlink’
…\source\HkFuncLog.cpp(12) : warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of ‘fopen’
…\source\HkFuncLog.cpp(19) : warning C4996: ‘_vsnprintf’: This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(358) : see declaration of ‘_vsnprintf’
…\source\HkFuncLog.cpp(23) : warning C4996: ‘localtime’: This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(114) : see declaration of ‘localtime’
…\source\HkFuncLog.cpp(37) : warning C4996: ‘unlink’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _unlink. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(301) : see declaration of ‘unlink’
…\source\HkFuncLog.cpp(38) : warning C4996: ‘fopen’: This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(237) : see declaration of ‘fopen’
…\source\HkFuncLog.cpp(45) : warning C4996: ‘_vsnprintf’: This function or variable may be unsafe. Consider using _vsnprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(358) : see declaration of ‘_vsnprintf’
…\source\HkFuncLog.cpp(49) : warning C4996: ‘localtime’: This function or variable may be unsafe. Consider using localtime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\time.inl(114) : see declaration of ‘localtime’
…\source\HkFuncLog.cpp(63) : warning C4996: ‘_vsnwprintf’: This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of ‘_vsnwprintf’
…\source\HkFuncLog.cpp(68) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkFuncLog.cpp(129) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkFuncLog.cpp(158) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
HkUserCmd.cpp
…\source\HkUserCmd.cpp(25) : warning C4996: ‘_vsnwprintf’: This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of ‘_vsnwprintf’
…\source\HkUserCmd.cpp(282) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkUserCmd.cpp(536) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkUserCmd.cpp(655) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
HkTimers.cpp
HkCbOther.cpp
HkCbIServerImpl.cpp
…\source\HkCbIServerImpl.cpp(108) : error C2664: ‘BinaryRDLReader::extract_text_from_buffer’ : cannot convert parameter 1 from ‘wchar_t [1024]’ to ‘unsigned short *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkCbIServerImpl.cpp(143) : error C2679: binary ‘=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(914): 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\Microsoft Visual Studio 9.0\VC\include\xstring(919): 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\Microsoft Visual Studio 9.0\VC\include\xstring(924): 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, const unsigned short *)’
…\source\HkCbIServerImpl.cpp(157) : error C2679: binary ‘+=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(929): 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\Microsoft Visual Studio 9.0\VC\include\xstring(934): 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\Microsoft Visual Studio 9.0\VC\include\xstring(939): 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, const unsigned short *)’
…\source\HkCbIServerImpl.cpp(174) : error C2679: binary ‘+=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\xstring(929): 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\Microsoft Visual Studio 9.0\VC\include\xstring(934): 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\Microsoft Visual Studio 9.0\VC\include\xstring(939): 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, const unsigned short *)’
…\source\HkCbIServerImpl.cpp(219) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkCbIServerImpl.cpp(382) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkCbIServerImpl.cpp(383) : error C2446: ‘:’ : no conversion from ‘const wchar_t *’ to ‘const unsigned short *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkCbIServerImpl.cpp(393) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkCbIServerImpl.cpp(452) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkCbIServerImpl.cpp(501) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkCbIServerImpl.cpp(571) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
…\source\HkCbIServerImpl.cpp(730) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘const wchar_t *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
HkCbDisconnect.cpp
HkCbDeath.cpp
…\source\HkCbDeath.cpp(10) : warning C4996: ‘wcscpy’: This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(252) : see declaration of ‘wcscpy’
…\source\HkCbDeath.cpp(11) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\HkCbDeath.cpp(140) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\HkCbDeath.cpp(148) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkCbDeath.cpp(173) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
…\source\HkCbDeath.cpp(188) : error C2440: ‘initializing’ : cannot convert from ‘const unsigned short *’ to ‘std::basic_string<_Elem,_Traits,_Ax>’
with
[
_Elem=wchar_t,
_Traits=std::char_traits,
_Ax=std::allocator
]
No constructor could take the source type, or constructor overload resolution was ambiguous
HkCbDamage.cpp
HkCbChat.cpp
…\source\HkCbChat.cpp(22) : error C2664: ‘BinaryRDLReader::extract_text_from_buffer’ : cannot convert parameter 1 from ‘wchar_t [1024]’ to ‘unsigned short *’
Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast
HkInit.cpp
…\source\HkInit.cpp(312) : error C2065: ‘i’ : undeclared identifier
…\source\HkInit.cpp(312) : error C2065: ‘i’ : undeclared identifier
…\source\HkInit.cpp(312) : error C2065: ‘i’ : undeclared identifier
…\source\HkInit.cpp(314) : error C2065: ‘i’ : undeclared identifier
…\source\HkInit.cpp(314) : error C2228: left of ‘.iConnects’ must have class/struct/union
…\source\HkInit.cpp(315) : error C2065: ‘i’ : undeclared identifier
HkFLIni.cpp
Generating Code…
Compiling…
HkError.cpp
flcodec.cpp
…\source\flcodec.cpp(43) : warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(316) : see declaration of ‘open’
…\source\flcodec.cpp(48) : warning C4996: ‘lseek’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _lseek. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(314) : see declaration of ‘lseek’
…\source\flcodec.cpp(49) : warning C4996: ‘lseek’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _lseek. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(314) : see declaration of ‘lseek’
…\source\flcodec.cpp(54) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(58) : warning C4996: ‘read’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _read. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(317) : see declaration of ‘read’
…\source\flcodec.cpp(66) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(74) : warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(316) : see declaration of ‘open’
…\source\flcodec.cpp(93) : warning C4996: ‘write’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(322) : see declaration of ‘write’
…\source\flcodec.cpp(97) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(105) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(114) : warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(316) : see declaration of ‘open’
…\source\flcodec.cpp(119) : warning C4996: ‘lseek’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _lseek. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(314) : see declaration of ‘lseek’
…\source\flcodec.cpp(120) : warning C4996: ‘lseek’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _lseek. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(314) : see declaration of ‘lseek’
…\source\flcodec.cpp(126) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(130) : warning C4996: ‘read’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _read. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(317) : see declaration of ‘read’
…\source\flcodec.cpp(138) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(140) : warning C4996: ‘open’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _open. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(316) : see declaration of ‘open’
…\source\flcodec.cpp(152) : warning C4996: ‘write’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(322) : see declaration of ‘write’
…\source\flcodec.cpp(156) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(168) : warning C4996: ‘write’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _write. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(322) : see declaration of ‘write’
…\source\flcodec.cpp(172) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
…\source\flcodec.cpp(179) : warning C4996: ‘close’: The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _close. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\io.h(306) : see declaration of ‘close’
CSocket.cpp
CInGame.cpp
CConsole.cpp
CCmds.cpp
…\source\CCmds.cpp(480) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\CCmds.cpp(483) : warning C4996: ‘wcscpy’: This function or variable may be unsafe. Consider using wcscpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(252) : see declaration of ‘wcscpy’
…\source\CCmds.cpp(485) : warning C4996: ‘wcscat’: This function or variable may be unsafe. Consider using wcscat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(245) : see declaration of ‘wcscat’
…\source\CCmds.cpp(599) : warning C4996: ‘swprintf’: swprintf has been changed to conform with the ISO C standard, adding an extra character count parameter. To use traditional Microsoft swprintf, set _CRT_NON_CONFORMING_SWPRINTFS.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\swprintf.inl(85) : see declaration of ‘swprintf’
…\source\CCmds.cpp(1126) : warning C4996: ‘_vsnwprintf’: This function or variable may be unsafe. Consider using _vsnwprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
c:\Program Files\Microsoft Visual Studio 9.0\VC\include\stdio.h(483) : see declaration of ‘_vsnwprintf’
Generating Code… -
Yes it is possible to make flhook compile on all compilers - but it’s a lot of work and not worth it for the limited number of people who develop it. I guess you’d really like to compile flhook on your compiler. What version is it? I think it is VS2008 Express - am I right?
Reading the build log adding a #define _CRT_SECURE_NO_WARNINGS 1 to the start of the global.h file should help remove a lot of the warnings.
For error lines of the type “…\source\HkFuncTools.cpp(254) : error C2679: binary ‘=’ : no operator found which takes a right-hand operand of type ‘const unsigned short *’ (or there is no acceptable conversion)”
find
wscCharname = Players.GetActiveCharacterName(iClientID);
and replace it with
wscCharname = (wchar_t *)Players.GetActiveCharacterName(iClientID);there are a few lines like this.
What version of flhook are you trying to compile? I’d recommend using the plugin version and writing plugins instead. For most people this much easier. If I get some free time I’ll compile flhook under VS2008 express and post the changes here.
-
its VS2008 full version and flhook plugin 1.60
ok ill try those edits ect, i am going down the plugin side of it but id still like to play with flhook itself before i do to get a feel for it, its just i want to port my plugins from flac to flhook
thanks for the info
BD
-
waves thanks
yeah i noticed, if i can get flhook to compile ill be much happier before i start work on plugins tbh, if i could compile in VS2008 perfectly it would be great, i dont feel like ‘getting’ a copy of VC++7 unless its a free download from microsoft, guessing its not lol
yeah thats what i like about flhook is the plugin interface isnt as restrictive as flac which is nice, might even work on a GUI for it also if i dont like the current one ive seen out there
BD
-
for these errors:
.\source\HkInit.cpp(312) : error C2065: ‘i’ : undeclared identifieryou have to actually declare the variable instead of just using it and expecting the compiler to know what type it is (which was ok in the old days of VC6 and 7 but Microsoft changed a few things over the years to make programs more error free (as ironic as that seems in this case)
-
I’ve created an experimental flhook version that compiles with VS2008 C++. It also seems to work too. I used the freely available Express edition.
I’ll call this experimental until it has got some history behind it. I had to make a number of changes and then started getting carried away and changed a few other things that were bugging me. I think the changes are safe and secure. This version is a built against my last unofficial version and that version had a few bug fixes in it above the last official version.
Note that this version breaks binary compatibility with existing plugins. I don’t know why and haven’t looked into it.
I’ve put both the new experiment and the last unofficial but heavily used version up on forge:
http://forge.the-starport.net/gf/download/user/106/89/flhook1.6.0_plugin-p3.7z (fixes for rename issues & autobuy - binary compatible with all/most plugins)http://forge.the-starport.net/gf/download/user/106/90/flhook1.6.0_plugin-e1.7z (experimental version includes above fixes but not binary compatible)
You mentioned creating some sort of UI for hook. Note that HazardFN is working on one (Biocross) and I just released (a very early version) one here:
http://forge.the-starport.net/gf/download/user/106/87/dam0.1.7z
I’m not suggesting you shouldn’t do one; just letting know about these two in case you missed 'em. There might be something useful you can grab out of them.PS: could a mod/admin please move this all into the flhook-plugin subforum…if you can do that sort of thing and can be bothered.
-
nice it builds, still alot of deprecated issues but i can iron those out, thanks cannon
Note that this version breaks binary compatibility with existing plugins. I don’t know why and haven’t looked into it.
any way around this? building the plugins into the main code?
BD
-
nice it builds, still alot of deprecated issues but i can iron those out, thanks cannon
I think I might go through those and fix them up. I supressed 100-200 warnings in the compilation. These really should be fixed properly. I marked the spots with the word HACK.
any way around this? building the plugins into the main code?
Yes. But I don’t know what it is. Won’t need to build the plugins into the main code. They just need to be recompiled using the sdk from this version of flhook - the new flhook.lib and flhook.dll in particular - I think. Wodk4 knows lots more about this than I do. He might have a more sensible answer.