20 views
in GUI Development by

Hi team,

I'm using EW 9.30 I want to access methods of a CPP file I have gone through the below article 

https://ask.embedded-wizard.de/3808/generated-code-from-embedded-wizard

1.Changed the extension to .cpp generated the code 

2.Added the header file containing the method in inline code 

3.In Native code called the method which is present in CPP file 

is it possible to directly call a method declared in CPP file through native code or we have to use DeviceDriver file only to integrate data to GUI  

how can data(methods, variables etc.) be exchanged to GUI from a CPP file ??

1 Answer

0 votes
by

Hello Kunal,

you can invoke native (e.g. C++) code directly within the native statement. DeviceDriver file and also Device Interface classes are just concepts to unify and simplify the integration between the GUI and external device code.

how can data(methods, variables etc.) be exchanged to GUI from a CPP file ??

From your question I suppose you are looking for a technique to invoke GUI code from the C code. If this is the case, please see the article Invoke GUI application code from device. The concepts explained in the article are valid for the integration with C as well as C++ code.

I hope it helps you further.

Best regards

Paul Banach

Ask Embedded Wizard

Welcome to the question and answer site for Embedded Wizard users and UI developers.

Ask your question and receive answers from the Embedded Wizard support team or from other members of the community!

Embedded Wizard Website | Privacy Policy | Imprint

...