Delphi 64-bit: Can't use DLL icons

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Delphi 64-bit: Can't use DLL icons

Post by *Alextp »

Q: I use Delphi XE2 64-bit to compile FS plugin DLL. I cannot embed icon in Compiled DLL

A: This is because D 64bit uses MSBuild system to create resources, it recreates resources from Proj options. In proj options u cannot specify icon. So DLL doesn't contain it. Solution to make RES/VRC file R/O doesn't work: MSBuild then stops.
Solution to add new *.RES also doesn't work.

(From me)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Have you tried a simple
{$R resourcefile.res}

in the source?

Btw, if you bundle 32-bit and 64-bit plugin (recommended), TC should take the icon from the 32-bit plugin.
Author of Total Commander
https://www.ghisler.com
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

tried a simple
{$R resourcefile.res}
yes. Icon appears in x64 DLL then, but TC can't see it. See MSIE Cache plugin 1.4.4.1. No Icon.

Img of ICO: http://shot.qip.ru/008s9h-1QODkgLSm/
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

If i bundle X32 too, then icon appears. But not in single X64.
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I usually delete the 32bit plugins manually anyway in my TC x64 installations - so it would be nice if the icons could work for the 64bit plugins too.

I don't have TC x64 here at work, but at home I have seen icons for other x64 file-system plugins in the file panel - so when I get home I'll check whether these other plugins only have .wfx64 files installed.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply