I am not sure. I need to check how TC handles the case where [face=courier]ContentGetValueW()[/face] does not exist but field type is [face=courier]ft_stringw[/face]. I guess that field type is independent of existence of [face=courier]ContentGetValueW()[/face].Alextp wrote:Can plugin return w value directly in ContentGetValue (not W).? Or I must call ContentGetValueW to get w value
WDX Guide
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Indeed you can return the data in both functions as Unicode or ANSI, independent of how the field was defined in ContentGetSupportedField. The plugin just needs to return ft_stringw instead of ft_string if the data is Unicode.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Confirmed in TC 7.50a.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
- franck8244
- Power Member
- Posts: 704
- Joined: 2003-03-06, 17:37 UTC
- Location: Geneva...
2Lefteous Maybe off-topic but, I didn't say it was your fault (or mine)...I just wanted to share the fact that I had -unwanted behaviour- when using this function.
For example : Load some plugins in TC (displaying some value) and at -the same time- call ContentunloadPlugin for those plugin from another apps/plugin...
For example : Load some plugins in TC (displaying some value) and at -the same time- call ContentunloadPlugin for those plugin from another apps/plugin...
TC#88260 -
Alex, I get the following error if I test aECO117390_Hebrew.jpg by jpg-comment.wdx. I tried to debug but its not in the plugin but rather in WDX Guide.
---------------------------
WDX Guide
---------------------------
Access violation at address 0048000D in module 'Guide.exe'. Read of address FFFFFFFF.
---------------------------
OK
---------------------------
---------------------------
WDX Guide
---------------------------
Access violation at address 0048000D in module 'Guide.exe'. Read of address FFFFFFFF.
---------------------------
OK
---------------------------
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more