flyingrock
December 11th, 2002, 05:02 PM
I just want to get a unique INT value to assign it to every record in database as primary key, any API can do it? Any related information is appreciated.
|
Click to See Complete Forum and Search --> : how to get a unique INT value in C++? flyingrock December 11th, 2002, 05:02 PM I just want to get a unique INT value to assign it to every record in database as primary key, any API can do it? Any related information is appreciated. Mikey December 11th, 2002, 05:23 PM a unique INT? You mean through different app-starts? You can store Your value in the registry or in an ini-file and increment it. Hope this helps :confused: Mikey Kheun December 11th, 2002, 06:54 PM May be CoCreateGuid() or UuidCreate() or UuidCreateSequential() suite your needs. These are usually used for generating a unique 128-bit integer in M$ plaftorms. TheCPUWizard December 11th, 2002, 10:42 PM Why not just use an autonumber field in the database??????? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |