BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

GIFImage.pas

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students)
View previous topic :: View next topic  
Author Message
bar
Guest





PostPosted: Thu May 10, 2007 3:41 pm    Post subject: GIFImage.pas Reply with quote



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





PostPosted: Thu May 10, 2007 10:54 pm    Post subject: Re: GIFImage.pas Reply with quote



"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





PostPosted: Sat May 12, 2007 1:19 pm    Post subject: Re: GIFImage.pas Reply with quote



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





PostPosted: Mon May 14, 2007 10:16 pm    Post subject: Re: GIFImage.pas Reply with quote

"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





PostPosted: Tue May 15, 2007 5:16 pm    Post subject: Re: GIFImage.pas Reply with 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");

Thanks
SA
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed May 16, 2007 12:07 am    Post subject: Re: GIFImage.pas Reply with quote

"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





PostPosted: Wed May 16, 2007 8:11 am    Post subject: Re: GIFImage.pas Reply with quote

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





PostPosted: Wed May 16, 2007 9:30 pm    Post subject: Re: GIFImage.pas Reply with quote

"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder (Students) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.