title: Need code for wxListCtrl change to working code for virtual style wxListCtrl
body: <p>I am new in c++ and I use for GUI wxWidget. My question is how this code for wxListCtrl change to working code for virtual ListCtrl...</p>
  
  <p>now my code is below and work but I have to try with virtual style</p>
  
  <pre><code>wxString SQL = "SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = '" + table + "'";
  
      int gstate = mysql_query(conn,SQL);
          if(!gstate){
              res = mysql_store_result(conn);
              int num = 0;
  
              lcData-&gt;SetColumnWidth(0,wxLIST_AUTOSIZE_USEHEADER);
              lcData-&gt;InsertColumn(0,"rb.");
  
              while(row = mysql_fetch_row(res)){
                  lcData-&gt;SetColumnWidth(num+1, wxLIST_AUTOSIZE_USEHEADER);
                  lcData-&gt;InsertColumn(num+1,row[0]);
  
                  num++;
              }
  
              if(res != NULL)
                  mysql_free_result(res);
  
          }
      SQL = tcSQL-&gt;GetValue();
  
      tcLog-&gt;AppendText(SQL+"\n");
      gstate = mysql_query(conn,SQL);
  
              if(!gstate){
                  res = mysql_store_result(conn);
                  long num_field = mysql_num_fields(res);
  
                     long num = 0;
                  lcData-&gt;SetColumnWidth(0,40);
  
                  while(row = mysql_fetch_row(res)){
  
                      lcData-&gt;InsertItem(num, wxString::Format(_T("%4d"),num+1));
  
                      for(long i = 0; i &lt; num_field; i++){
  
                          lcData-&gt;SetItem(num,i+1,row[i] );
  
                      }
  
                      num++;
                  }
  
                  if(res != NULL)
                      mysql_free_result(res);
  </code></pre>
  
  <p>Where I compiling the program and run I have this error :
  <a href="https://i.stack.imgur.com/JqK3h.jpg" rel="nofollow noreferrer">SharedScreens</a></p>
  
  <p>Thx.
  YuMERA</p>