| View previous topic :: View next topic |
| Author |
Message |
bar Guest
|
Posted: Thu May 10, 2007 3:41 pm Post subject: GIFImage.pas |
|
|
Hello all
I am using BCB6. I want show gif files on my form.
I download the GIFImage.Pas created by Anders Melander.
I need to display the picture at runtime.
Code:-
USE(GIFImage.pas); //added in the Project->ViewSource option
Error showing unknow file format .gif.
Image1->Picture->LoadFromFile("c:\\n.gif");
Any suggestion greatly appreciated on how to use gifimage.pas with BCB6
Thanks
SA |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Thu May 10, 2007 10:54 pm Post subject: Re: GIFImage.pas |
|
|
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:4642f6a6 (AT) newsgroups (DOT) borland.com...
| Quote: | USE(GIFImage.pas); //added in the Project->ViewSource option
|
You did not add that by hand, did you? You can't do that in BCB 6.
The USE... macros have no effect anymore. Unit/lib references are
stored in the .bpr directly now. You must use the "Add to Project"
option instead.
| Quote: | Error showing unknow file format .gif.
Image1->Picture->LoadFromFile("c:\\n.gif");
|
The TGIFImage class was not registered, which suggests that
GIFImage.pas was not actually linked to the executable at all.
Gambit |
|
| Back to top |
|
 |
bar Guest
|
Posted: Sat May 12, 2007 1:19 pm Post subject: Re: GIFImage.pas |
|
|
Thanks for reply Remy.
The program is compiling without error.
But gif file is not showing and program is not responding.
Thanks
SA |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon May 14, 2007 10:16 pm Post subject: Re: GIFImage.pas |
|
|
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:46457888 (AT) newsgroups (DOT) borland.com...
| Quote: | The program is compiling without error.
But gif file is not showing and program is not responding.
|
Then you are still not using it correctly. Please explain, in detail,
step by step, exactly what you are doing.
Gambit |
|
| Back to top |
|
 |
bar Guest
|
Posted: Tue May 15, 2007 5:16 pm Post subject: Re: GIFImage.pas |
|
|
1.From Project->Addtoproject added GifImage.pas
2.Placed a TImage box on the form.
3.In a buttons click event.
Image1->Picture->LoadFromFile("C:\\n.gif");
Thanks
SA |
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 12:07 am Post subject: Re: GIFImage.pas |
|
|
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:4649a4a2 (AT) newsgroups (DOT) borland.com...
| Quote: | 1.From Project->Addtoproject added GifImage.pas
2.Placed a TImage box on the form.
3.In a buttons click event.
Image1->Picture->LoadFromFile("C:\\n.gif");
|
Did you #include the GifImage.hpp header file into your C++ code,
though? If not, then you need to do so. After adding the .pas file
to your project, you can compile just that unit to generate the .hpp
file, and then you can use it in your other units.
Gambit |
|
| Back to top |
|
 |
bar Guest
|
Posted: Wed May 16, 2007 8:11 am Post subject: Re: GIFImage.pas |
|
|
I included the #include <gifimage.hpp> still there is no display of picture.
Thanks
SA
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote in message
news:464a0688 (AT) newsgroups (DOT) borland.com...
| Quote: |
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:4649a4a2 (AT) newsgroups (DOT) borland.com...
1.From Project->Addtoproject added GifImage.pas
2.Placed a TImage box on the form.
3.In a buttons click event.
Image1->Picture->LoadFromFile("C:\\n.gif");
Did you #include the GifImage.hpp header file into your C++ code,
though? If not, then you need to do so. After adding the .pas file
to your project, you can compile just that unit to generate the .hpp
file, and then you can use it in your other units.
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Wed May 16, 2007 9:30 pm Post subject: Re: GIFImage.pas |
|
|
"bar" <shaikakbar250281 (AT) yahoo (DOT) co.in> wrote in message
news:464ab7bb (AT) newsgroups (DOT) borland.com...
| Quote: | I included the #include <gifimage.hpp> still there is no display of
picture. |
Then please post the actual GifImage.pas file to the
"borland.public.attachments" newsgroup. Sounds like something may be
wrong with it.
Gambit |
|
| Back to top |
|
 |
|