Load .res in run time

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

Load .res in run time

Postby yallepaixao » Fri Jul 13, 2007 1:54 pm

Hello,

My application has 6 res file, each one with 100 mb. My application is very big.
How can i load this file in run time?

thanks

Yalle

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

Postby Softanics » Fri Jul 13, 2007 2:54 pm

Thank you for your question.

Do you mean that loading takes much time?...
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 Jul 13, 2007 9:58 pm

No, the problem is that my executable is very big. 650 mb.
I want to load .res in run time becouse if the user needs to upgrade one .res (with swf) they can upgrade just one file.

I want to load in run time the .res, if i replace the .res i upgrade my animation too and i donÒ‘t need to replace the executable.

Thanks

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

Postby Softanics » Fri Jul 13, 2007 10:03 pm

I'm not sure that it can help you. My idea is you can create a separate DLL with this res. After that, in runtime you can load the DLL, and use resources from it.
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 » Mon Jul 16, 2007 7:17 pm

Hello,

Thanks. Can u send a exemplo how can i load the dll in run time to use the .res?
I know how load the Dll but it dont find the flie that are in .res.

Thank you

Yalle

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

Postby Softanics » Mon Jul 16, 2007 10:36 pm

yallepaixao wrote: Thanks. Can u send a exemplo how can i load the dll in run time to use the .res?
I know how load the Dll but it dont find the flie that are in .res.


Use TResourceStream.Create -- as soon as I remember, the first argument of the Create is a module handle. So just load a DLL and pass its handle as a first parameter.
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 16 guests