Click here to Skip to main content
15,887,822 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Best database classes for this purpose: not really a programming question Pin
John M. Drescher17-Dec-03 17:09
John M. Drescher17-Dec-03 17:09 
Generalquick question Pin
Qbus17-Dec-03 10:41
Qbus17-Dec-03 10:41 
GeneralRe: quick question Pin
Terry O'Nolley17-Dec-03 12:34
Terry O'Nolley17-Dec-03 12:34 
GeneralRe: quick question Pin
sam India17-Dec-03 17:47
sam India17-Dec-03 17:47 
GeneralCRecordset, ODBC, and Access Pin
David Crow17-Dec-03 8:34
David Crow17-Dec-03 8:34 
GeneralRe: CRecordset, ODBC, and Access Pin
Terry O'Nolley17-Dec-03 12:39
Terry O'Nolley17-Dec-03 12:39 
GeneralRe: CRecordset, ODBC, and Access Pin
David Crow18-Dec-03 2:51
David Crow18-Dec-03 2:51 
GeneralRe: CRecordset, ODBC, and Access Pin
Terry O'Nolley18-Dec-03 8:19
Terry O'Nolley18-Dec-03 8:19 
DavidCrow wrote:
I'll try this, but I'm not following your logic. What would an exclusive lock on a single-user database have to with being able to query an AutoNumber field of a newly-added record?

I didn't realize it was a single-user DB.

If it is a single user DB then you don't need the lock. Just do the insert and query for MAX ID.
If your ID field is an auto-number, then the MAX will be the newly inserted record.

Using LOCK prevents other records from being inserted while you do your insert.



GeneralRe: CRecordset, ODBC, and Access Pin
sam India17-Dec-03 18:21
sam India17-Dec-03 18:21 
GeneralRe: CRecordset, ODBC, and Access Pin
David Crow18-Dec-03 2:40
David Crow18-Dec-03 2:40 
GeneralOWL to MFC Pin
olezhik17-Dec-03 8:16
olezhik17-Dec-03 8:16 
GeneralRe: OWL to MFC Pin
Jörgen Sigvardsson17-Dec-03 8:24
Jörgen Sigvardsson17-Dec-03 8:24 
GeneralRe: OWL to MFC Pin
Terry O'Nolley17-Dec-03 12:40
Terry O'Nolley17-Dec-03 12:40 
GeneralRe: OWL to MFC Pin
Anthony_Yio17-Dec-03 15:56
Anthony_Yio17-Dec-03 15:56 
GeneralRe: OWL to MFC Pin
Joe Woodbury18-Dec-03 5:31
professionalJoe Woodbury18-Dec-03 5:31 
GeneralHardware Interfacing Pin
Member 17799617-Dec-03 7:05
Member 17799617-Dec-03 7:05 
GeneralRe: Hardware Interfacing Pin
Nitron17-Dec-03 7:16
Nitron17-Dec-03 7:16 
GeneralRe: Hardware Interfacing Pin
John M. Drescher17-Dec-03 7:30
John M. Drescher17-Dec-03 7:30 
GeneralRe: Hardware Interfacing Pin
Peter Molnar17-Dec-03 13:25
Peter Molnar17-Dec-03 13:25 
QuestionAutomated Windows testing tools...??? Pin
vlusardi17-Dec-03 5:41
vlusardi17-Dec-03 5:41 
AnswerRe: Automated Windows testing tools...??? Pin
Peter Molnar17-Dec-03 13:16
Peter Molnar17-Dec-03 13:16 
General_beginthreadex() problem... Pin
jhoin17-Dec-03 4:04
jhoin17-Dec-03 4:04 
GeneralRe: _beginthreadex() problem... Pin
John M. Drescher17-Dec-03 4:19
John M. Drescher17-Dec-03 4:19 
GeneralRe: _beginthreadex() problem... Pin
jhoin18-Dec-03 23:15
jhoin18-Dec-03 23:15 
GeneralRe: _beginthreadex() problem... Pin
John M. Drescher19-Dec-03 8:07
John M. Drescher19-Dec-03 8:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.