News:

Download Pelles C here: http://www.smorgasbordet.com/pellesc/

Main Menu

Image Viewer Ended

Started by Grincheux, March 23, 2016, 11:08:03 AM

Previous topic - Next topic

frankie

#15
Grincheux thank you for appreciation.
the operator sizeof gives a constant result. So the behavior is the same as for the #define.
The workaround to remove the annoyance are 2 (choose only one):


  • Mask the warning using the pragma

  • Or don't inline safe functions defining the symbol STRSAFE_LIB.

If you choose the first case use:
#pragma warn(disable:2154)

For the second:

#define STRSAFE_LIB 1
#include <Strsafe.h>
"It is better to be hated for what you are than to be loved for what you are not." - Andre Gide

Grincheux

There is a third solution, DO NOT USE STRSAFE.

I choose this one. I don't want to disable that warning, it can helps while writing bad code.

QuoteJe tiens à vous remercier pour cette aide précieuse, sans vous je n'y serais jamais arrivé :).
QuoteThank you for this valuable help, without you I would never have happened. :)

Grincheux

#17

Now there is no warnngs.
You can download the full program (MSVC + PELLE) here
For details see here and here.

If you find errors or mistakes tell it to me in this forum.

Thank you for your help. :) :) :)

Philippe RIO
France, Jura

Grincheux

Source code Psw = jardin39600

I tested a program (I answer to the post), in this program it loaded 19201 images, when treated by my program, it only kept 4 !

4/19204 = 2.08 !

Grincheux

#19
Quote
2016/04/28 - Created P-Euphory.ini for PEuphory.exe.
2016/04/28 - Possibility or not to make the backup of DB_Effects. Backup is a long operation. Database can be used during backup.
2016/04/28 - Added backup at startup of DB_Effects in Temp directory. The file is named DB_Effects.db.Bak.
2016/04/28 - The DB_EFFECTS database is loaded in memory rather than making disk accesses.
2016/04/28 - When convolve operation is ended, the files are re-loaded automaticaly.
2016/04/28 - Added an option to display or not the end of convolve operations.
2016/04/27 - Added a flash and a beep when a long operation is finished.
2016/04/27 - Added a thread priority when generating filters. They are generated in background, when finished the program comes back to normal priority.
2016/04/27 - Replaced MD5 with CRC32
2016/04/27 - Added some masks and removed many others.
2016/04/27 - Modified "Neighbors" algorythm to delete more images when colors are very near. It is based on the Red, Green and Blue median.
2016/04/27 - Added auto delete duplicate image bits. It was too long making that with a listbox. I let the last way.

Profile : Euphory.ini
Quote
; Thumbs Width must be equal to Thumbs Canvas Width - 8
;
[Euphory]
Last Folder=E:\Euphory\Images de Tests\7x7\Work\01
Display End of Convole Operation=0
Backup DB_Effects=0
Thumbs Width=256
Thumbs Height=256
Thumbs Width Gap=8
Thumbs Height Gap=8
Thumbs Canvas Width=264
Thumbs Canvas Height=264
Icons Background=0
Images Background=0
Text Color=255
OutLine Color=0

Need users to make test, please.

Download

JohnF

Can't run it because of all those strange looking DLLs.

API-MS-WIN-SERVICE-CORE-L1-1-0.DLL
""
""
""

John

TimoVJL

#21
May the source be with you

JohnF

#22
Well, that's not a good idea. None of the apps on my PC need those.

John


JohnF

I put all those DLL's in your folder, here is the error message.

EDIT: I'll not be trying again.

John

Grincheux

Into the folder where ImageViewer is installed, you will find the Pelle's Version PEuphory.exe