Psychohyena
New Member
- Joined
- Jan 10, 2010
- Messages
- 9 (0.00/day)
Hi peeps,
I'm putting together a Win32 app (API) and crazy me decided to do it in c++ coding (no visual editors). The problem I've run into is I'm filling a listbox with data from a database, the obvious result of this is that the index value of the items are going to be different from the Primary Key value in the database.
My question is: How can I link the Primary Key to the correct record in the Listbox and use that value rather than the index value?
So far I have managed to get most of the app worked out but this is creating a major stumbling block for having everything work smoothly.
Let me know if you need any more information.
I'm putting together a Win32 app (API) and crazy me decided to do it in c++ coding (no visual editors). The problem I've run into is I'm filling a listbox with data from a database, the obvious result of this is that the index value of the items are going to be different from the Primary Key value in the database.
My question is: How can I link the Primary Key to the correct record in the Listbox and use that value rather than the index value?
So far I have managed to get most of the app worked out but this is creating a major stumbling block for having everything work smoothly.
Let me know if you need any more information.