407 views
in System Integration by
Hi,

I have 2 properties in the Application::DeviceClass that I'd like to be able to update their resource reference.

One is a string, the other an image. The new string and image both exist already in the GUI and have their generator set to true. I want to pass in the resource identifier, not the raw content.

Is it possibly to pass in a different value to a property from the device layer?

A method along the lines of:

void UpdateImage( arg Resources::Bitmap NewImage )

{

    pure ExistingImage =  NewImage;

}

1 Answer

0 votes
by

Hi,

maybe I did not fully get your question (what you tried or what is not working).

Anyway, let me express another thought:

A Device Class (and its corresponding Device Driver) is the interface between the GUI application and a certain software API (= your middleware, your business logic).

Resources and string constants are aspects of the GUI application and should be handled GUI internally. From an interface perspective, a middleware should report only a certain system state to the GUI application and should not assign bitmap resources.

Maybe it is better to introduce some system states and let the GUI react accordingly. See also the chapter Implementing a Device Interface.

Does this help?

Best regards,

Manfred.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...