News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Graphic Library

Started by Grincheux, February 18, 2007, 06:16:05 PM

Previous topic - Next topic

Grincheux

 :U
I have a found a graphic library very useful for viewing images. It is very easy to use with assembly language.
This library is GFL, you certainly know it, it is used by XnView.

I have included it in a small image viewer and you can dowload it from http://www.idcat39.com/download/IVBin.exe this link is for the program binaries. Source code can be dowloaded at http://www.idcat39.com/download/IVSrc.exe and the languages sources files, including French, English and Spanish can be dowloaded here : http://www.idcat39.com/download/IVLang.exe

Spanish translation has been made by Ipadilla. Thanks to him.

For changing the default language click on the French Flag.

A brief description of this program can be read from http://www.stosd.com/asmrealis.html. Some screenshots can be viewed at http://www.stosd.com/asmencours.html. Sorry this link is in French, I am working on it and in a few days you have an English site.

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

TNick

Looks very promising, I will have a look!

Thanks for sharing!
Nick

six_L

 :U
Looks very good.

i can't run I-View.exe. that's why ?


[attachment deleted by admin]
regards

Grincheux

Thanks for trying to use mi pgm.

Did you initialize the registry database using reg file ?
Verify you have a "Temp" sub folder.

I have joined the initialization files.

A+

[attachment deleted by admin]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

six_L

thanks response soon.

QuoteDid you initialize the registry database using reg file ?
Verify you have a "Temp" sub folder.
yes.

can't still run.
maybe i need to rebuild the exe.
regards

Grincheux

I don't undestand. The only problems I met were the reg file and the temp directory.
I would do like you, try in debug mode.

Give me your feedback.

A+
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Grincheux

I have re-tested the program it works fine.
You have to install the program in a directory named "C:\I-View" unless you made change in the registry database. :'(
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

six_L

i'v installed your program in c:\I-View.
QuoteI have re-tested the program it works fine
maybe not tested on Unicode OS environment.

could you translate the error msg( in err.jpg) into english?
regards

Grincheux

The error message tells that it cannot initialize default parameters.
And default parameters are taken from the registry database.
HKEY_CURRENT_USER/Sofware/I-View
I have joined a snapshot of my own registry database


[attachment deleted by admin]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Grincheux

This version speaks to you in english.

[attachment deleted by admin]
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

six_L

Hello,Grincheux

i'm very interesting your program since i saw it several months ago. i learned alot of matters about how do a bigger program.


  • the design of a project structure
  • the array of global value and local value
  • the design of complicated message system
  • handle Error

thanks for sharing the source code. :U

i'm continuing to do it during night. here is a part(exe), not finished. if i'll finish it in future, post all here(include source).

;===================================================================================

i commented the following lines, the I-View runs. but no image list.

INVOKE RegQueryValueEx,_hkKey,ADDR szItem_0008,NULL,NULL,ADDR szMesImages,ADDR _dwResult

test eax,eax
jnz @Error_1

mov _dwResult,LEN_LIBELLE

;INVOKE RegQueryValueEx,_hkKey,ADDR szItem_0009,NULL,NULL,ADDR szMesVideos,ADDR _dwResult

;test eax,eax
;jnz @Error_1

;mov _dwResult,LEN_LIBELLE

;INVOKE RegQueryValueEx,_hkKey,ADDR szItem_0010,NULL,NULL,ADDR szMaMusique,ADDR _dwResult

;test eax,eax
;jnz @Error_1

; ***************************
; *** Dossier des Masques ***
; ***************************

mov _dwResult,MAX_PATH

INVOKE RegQueryValueEx,_hkKey,ADDR szItem_0013,NULL,NULL,ADDR szMasksDirectory,ADDR _dwResult

test eax,eax
jnz @Error_1



[attachment deleted by admin]
regards

Grincheux

I have run your program I already saw something like this...
I am very pleased that you use my own work to create your own.

I have tried many graphic libraries and the XnView's is one of the easiest. Perhaps it can help you showing images.
You commented lines about "Mes Documents", "My Pictures". I had to put this info in the registry database because I don't know how to get them from Windows.
The only infos that I got where the place of "My Documents" folder, but not the name "My Documents".

In France we call "My Documents" "Mes Documents" and how do they call "My Documents" in Germany ?
Is there a Window function or registry entry to get this ?

Thiw week end I will make an other upgrade. The first errors messages will be in English rather than in French.
After the call to InitCommonControlsEx ther will not be a test. This because Windows 2000 users cannot run the program.

If the program cannot read the registry database it will displaya warning message and will use default values.
If you want some help don't hesitate. And if you have infos to share don't hesitate too.

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

six_L

Hello,Grincheux
i still don't read your new codes carefully. a bit suggestion in the following maybe not suitable.

1. to use the gdiplus.lib is better than to use the gdi32.lib, because it supported more image file formats.
2. to use the registry database is not good idea, should replace with ini.
regards

Grincheux

GDI32 does not support any image format. For loading images it is better to use GDIPlus.
I suggested to you to use the GFL SDK coming with XnView.
This library interface can be found in a folder named xx-GFL in I-View.
I have made the assembly interface.
For loading an image you can use the GFL_LoadImageFromFile giving it the filename to load as a parameter.

You are right, using the registry is not a good idea. I will change this this week end.
I think that a I-View.ini could be the best idea.

Thanks
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz

Grincheux

I have been obliged to move the dowload directory http://www.idcat39.com/download/IVBin.exe this link is for the program binaries. Source code can be dowloaded now at http://www.idcat39.com/download/IVSrc.exe.
Kenavo

Grincheux
_____________________________________________________
http://www.phrio.biz