This has been bugging me for a long time now, but I can't figure out how to do it...
I just made a simple image viewing program, like the one that comes with Windows for previewing images.
So I thought, I'll add .gif to be opened with my prog. But when I click any .gif my program opens, but the picture doesn't get opened.
It works good if you just open from inside the program, just not when associating .ext with it.
What am I doing wrong?
I'm using
Do I need to use something else to make Association enabled for my program?
I just made a simple image viewing program, like the one that comes with Windows for previewing images.
So I thought, I'll add .gif to be opened with my prog. But when I click any .gif my program opens, but the picture doesn't get opened.
It works good if you just open from inside the program, just not when associating .ext with it.
What am I doing wrong?
I'm using
Code:
if OpenDialog1.execute then
begin
Image1.Picture.LoadFromFile(Opendialog1.FileName);
end;