<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>LPC MicrocontrollersのトピックOWN GUI creation...Probelm with dynamic memory allocation</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/OWN-GUI-creation-Probelm-with-dynamic-memory-allocation/m-p/519309#M3099</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc_learner on Thu Apr 12 02:54:47 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that there are several GUI are available with free of cost, but i am just creating my own gui with a small set of widgets. Up to now i managed to create the drawings of widgets. Now, i've to add the properties of each widget. so that i am creating a structure for each widget to store the properties.like this..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// structure for edit text widget&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;typedef struct{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int iLocX;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int iLocY;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const unsigned char* string;&amp;nbsp; // to store the string which i am going to display in my edit text widget&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}edit_text_widget;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;create_edit_text_widget(int locX,locY,char* name,unsigned char* str_to_display)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; edit_text_widget* edit_text_info;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; draw_editWidget(iLocX,iLocY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; edit_text_info = (edit_text_widget*)malloc(sizeof(edit_text_info)); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// with out above statement my widget is printing on TFT..but,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// with this statement, TFT is not at all intialising..controll is not all coming to main function itself&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how to allocate the memory for this structure...If any doubts on this question,let me know..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one get this, please help me out...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for poor English..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:38:04 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:38:04Z</dc:date>
    <item>
      <title>OWN GUI creation...Probelm with dynamic memory allocation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OWN-GUI-creation-Probelm-with-dynamic-memory-allocation/m-p/519309#M3099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc_learner on Thu Apr 12 02:54:47 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know that there are several GUI are available with free of cost, but i am just creating my own gui with a small set of widgets. Up to now i managed to create the drawings of widgets. Now, i've to add the properties of each widget. so that i am creating a structure for each widget to store the properties.like this..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// structure for edit text widget&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;typedef struct{&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;int iLocX;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;int iLocY;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;const unsigned char* string;&amp;nbsp; // to store the string which i am going to display in my edit text widget&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}edit_text_widget;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;create_edit_text_widget(int locX,locY,char* name,unsigned char* str_to_display)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; edit_text_widget* edit_text_info;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; draw_editWidget(iLocX,iLocY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; edit_text_info = (edit_text_widget*)malloc(sizeof(edit_text_info)); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// with out above statement my widget is printing on TFT..but,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// with this statement, TFT is not at all intialising..controll is not all coming to main function itself&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;how to allocate the memory for this structure...If any doubts on this question,let me know..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If any one get this, please help me out...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for poor English..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OWN-GUI-creation-Probelm-with-dynamic-memory-allocation/m-p/519309#M3099</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: OWN GUI creation...Probelm with dynamic memory allocation</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/OWN-GUI-creation-Probelm-with-dynamic-memory-allocation/m-p/519310#M3100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpc_learner on Thu Apr 19 21:02:25 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the solution for that.Now, i managed to use malloc function ...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank u all&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:38:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/OWN-GUI-creation-Probelm-with-dynamic-memory-allocation/m-p/519310#M3100</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:38:05Z</dc:date>
    </item>
  </channel>
</rss>

