670 views
in GUI Development by
Hi,

when i am trying to integrate one functionality with Embedded device i got blocked.

could you please help me out to solve this issue.

To fill a string array in UI, I need to call a function from backend which returns a char*

var int32 i=0;
  for( i;i<totalCount;i++)
  {
   text.mydata[i]=GeData(i);
  }

 

here mydata is an array of string and get data returns the startin g address from backend.

How i able to retrieve all datas from backend to the array mydata?

1 Answer

0 votes
by

Hello,

how is your function GeData() implemented? I assume this is a native function where you get some C strings.

Let me recommend to have a look to the section Be careful when exchanging strings. Does this answer your question?

Best regards,

Manfred.

by
it is a native function call.

when i am trying to create const XChar* src it is making errors

i am passing an index to this function in backend.

so they are retuning a char*

how can we able to get all the datas
by

Thanks for the additional information - so the referred section will guide you through the aspects of exchanging strings between native C code and your GUI application.

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

...