views:

82

answers:

1

I'm trying to create a frame VCL inside my project using factory pattern

something like this:

 TFrame* newToolbarFrame =
 FrameFactory::getInstance().createObject(toolbarFrameClassId);

When the factory creates implementation class , I get a error message about missing recourse file.

For example if I create instance of class TFrameFooBar using factory , I get this Exception:

Project gymAce raised EResNotFound with message "Recourse TFrameFooBar not found" .

This looks bit like a IDE issue.

Does anyone know a workaround for this?

+1  A: 

TFrame is trying to perform DFM streaming of its design-time properties, but your app is not linking in the actual TFrameFooBar class's DFM into the executable's resources for TFrame to find at runtime.

Remy Lebeau - TeamB