Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to add a large amount of records from Microsoft Office Access 2007 database into a list box control using the native C++ WIN32 API
    primarykey
    data
    text
    <h2>How to add a large amount of records from <em>Microsoft Office Access 2007</em> database into a <em>list box</em> control using the <em>native C++ WIN32 API</em>?</h2> <p>Hello friends! I want to make a dictionary like Microsoft Encarta English Dictionary using the native C++ WIN32 API. My database is Microsoft Office Access 2007 format database which has 21,364 records (filled with vocabularies and their meanings). I want to add the vocabularies into a list box control using the "<code>CreateWindow</code>" function with the "<code>listbox</code>" window class name as fast as possible so that no one will get annoyed of waiting. </p> <p>I am very much interested in the <strong>OLE DB</strong> database connection method as it is said to be the fastest of all other methods. I followed the OLE DB tutorial as given in this link: <a href="http://msdn.microsoft.com/en-us/library/office/ff965871%28v=office.14%29" rel="nofollow">http://msdn.microsoft.com/en-us/library/office/ff965871%28v=office.14%29</a>. Following the tutorial, I successfully connected to the database of <strong>Microsoft Office Access 2007</strong> format having 21,364 records and added the vocabularies into the list box using the "<code>SendMessage</code>" function with the "<code>LB_ADDSTRING</code>" message type within a "<code>for</code>" loop. </p> <p>However, I feel that adding the <strong>21,364 records</strong> into the <strong>list box</strong> using the "<code>for</code>" loop takes a bit longer than someone could patiently wait. On the contrary, I am sure the <em>Microsoft Encarta English Dictionary</em> should be having millions of vocabularies and they all added into a list box so fast that someone would burst out with joy!</p> <p>Can anyone please kindly tell me, guide me, show me with code examples how to speed up my adding <em>huge amount</em> of <strong>Microsoft Office Access 2007</strong> database records into a <strong>list box</strong> using the <strong>native C++ WIN32 API</strong>? I shall be very thankful!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload