How can i know if the .res have the file "xxx"

F-IN-BOX for Delphi / Builder C++ / VCL
yallepaixao
Posts: 13
Joined: Sat Mar 03, 2007 7:35 pm

How can i know if the .res have the file "xxx"

Postby yallepaixao » Wed Apr 04, 2007 6:19 pm

Hello,

How can know if exist one file "teste.swf" in the .res ?

Thanks

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Apr 05, 2007 9:16 am

Thank you.

Unfortunaly, I don't understand your question... Do you mean that you would like to know, is present a some resource into module or not?
Best regards, Artem A. Razin,
F-IN-BOX support
Ask your question here: http://www.f-in-box.com/support.html

yallepaixao
Posts: 13
Joined: Sat Mar 03, 2007 7:35 pm

Postby yallepaixao » Thu Apr 05, 2007 1:30 pm

Hello,

Yes, i want to know if some resource is is present into my module. Like if the user click in a link that the "URL" or SWF Resource is not present i want to send a msg of error and not just show a black image.

Thank you.

Yalle 8)

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Thu Apr 05, 2007 2:58 pm

yallepaixao wrote:Hello,

Yes, i want to know if some resource is is present into my module. Like if the user click in a link that the "URL" or SWF Resource is not present i want to send a msg of error and not just show a black image.

Thank you.

Yalle 8)


Just try to create TResourceStream ;)
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html

yallepaixao
Posts: 13
Joined: Sat Mar 03, 2007 7:35 pm

Postby yallepaixao » Fri Apr 06, 2007 2:14 am

Hello,

Sorry i didnÒ‘t undersdant.
Can you send a example please?

Thanks

Softanics
Site Admin
Posts: 1402
Joined: Sat Sep 18, 2004 3:03 am
Location: Russia, St. Petersburg
Contact:

Postby Softanics » Fri Apr 06, 2007 6:06 am

yallepaixao wrote:Hello,

Sorry i didnÒ‘t undersdant.
Can you send a example please?

Thanks


Something like that:

Code: Select all

var
   ResourceStream: TResourceStream;
begin
   ResourceStream := TResourceStream.Create(0, 'FLVPlayer', 'SWF');


If the resource doesn't exist, ResourceStream will be null and you'll get an exception (as soon as I know -- please check it).
Best regards, Artem A. Razin,

F-IN-BOX support

Ask your question here: http://www.f-in-box.com/support.html


Return to “Delphi / Builder / VCL Edition”

Who is online

Users browsing this forum: No registered users and 30 guests

cron