30 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

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

...