Докладываю.
Новые hpp из указанного архива взял, запустил соответствующую консоль Студии 2008, подправил вызов компилятора:
Code: Select all
cl /Zp2 /O1igy /GF /Gr /GR- /EHs-c- /Wp64 /LD %PlugName%.cpp /link /subsystem:console /machine:x64 /opt:nowin98 /noentry /nodefaultlib /def:%PlugName%.def kernel32.lib advapi32.lib user32.lib msvcrt.lib shell32.lib %PlugName%.res /map:"..\%PlugName%.map" /out:"..\%PlugName%.dll" /merge:.rdata=.text
Предупреждений немного:
HotDir.cpp(115) : warning C4311: 'type cast' : pointer truncation from 'char *const ' to 'unsigned int'
HotDir.cpp(116) : warning C4311: 'type cast' : pointer truncation from 'char *const ' to 'unsigned int'
HD_DirMenu.cpp(98 ) : warning C4311: 'type cast' : pointer truncation from 'const char *' to 'int'
HD_DirMenu.cpp(102) : warning C4311: 'type cast' : pointer truncation from 'const char *' to 'int'
HD_DirMenu.cpp(104) : warning C4311: 'type cast' : pointer truncation from 'const char *' to 'int'
При запуске:
Ошибка при загрузке плагина
C:\far64\Plugins\hotdir64\HotDir.dll
После замены int -> INT_PTR (и unsigned int тоже) предупреждения пропали, но работать от этого не начало. Вот весь протокол:
Code: Select all
Make HotDir.def file...
... succesfully
Make HotDir.rc file...
... succesfully
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation. All rights reserved.
Microsoft (R) C/C++ Optimizing Compiler Version 15.00.20706.01 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
cl : Command line warning D9035 : option 'Og' has been deprecated and will be removed in a future release
cl : Command line warning D9035 : option 'Wp64' has been deprecated and will be removed in a future release
HotDir.cpp
Microsoft (R) Incremental Linker Version 9.00.20706.01
Copyright (C) Microsoft Corporation. All rights reserved.
/out:HotDir.dll
/dll
/implib:HotDir.lib
/subsystem:console
/machine:x64
/opt:nowin98
/noentry
/nodefaultlib
/def:HotDir.def
kernel32.lib
advapi32.lib
user32.lib
msvcrt.lib
shell32.lib
HotDir.res
/map:..\HotDir.map
/out:..\HotDir.dll
/merge:.rdata=.text
HotDir.obj
LINK : warning LNK4224: /OPT:NOWIN98 is no longer supported; ignored
Creating library HotDir.lib and object HotDir.exp