Click here to Skip to main content
16,006,768 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: need help in CListCtrl Pin
firebolt7722-Aug-05 18:57
firebolt7722-Aug-05 18:57 
GeneralRe: need help in CListCtrl Pin
Christian Graus22-Aug-05 19:01
protectorChristian Graus22-Aug-05 19:01 
GeneralRe: need help in CListCtrl Pin
firebolt7722-Aug-05 20:05
firebolt7722-Aug-05 20:05 
GeneralRe: need help in CListCtrl Pin
ThatsAlok22-Aug-05 22:57
ThatsAlok22-Aug-05 22:57 
GeneralRe: need help in CListCtrl Pin
firebolt7723-Aug-05 19:42
firebolt7723-Aug-05 19:42 
GeneralRe: need help in CListCtrl Pin
ThatsAlok23-Aug-05 19:58
ThatsAlok23-Aug-05 19:58 
GeneralUpdating a field in Access database Pin
joy00722-Aug-05 18:12
joy00722-Aug-05 18:12 
GeneralRe: Updating a field in Access database Pin
Jose Lamas Rios22-Aug-05 18:27
Jose Lamas Rios22-Aug-05 18:27 
This may or may not be related to your problem, but

joy007 wrote:
if(db.CanUpdate()==TRUE)

The documentation says CDatabase::CanUpdate returns "nonzero if the CDatabase object allows updates".

"Nonzero" doesn't mean neccesarily TRUE, which is 1. You should always write your tests this way to be on the safe side:

if (db.CanUpdate() != FALSE)
{
}


You could also check rs.CanUpdate

Besides, shouldn't you use a SELECT statement instead of traversing all the recordset looking for a record by yourself?

--
jlr
http://jlamas.blogspot.com/[^]
GeneralRecieving a file over TCP Pin
Member 183908222-Aug-05 17:56
Member 183908222-Aug-05 17:56 
GeneralRe: Recieving a file over TCP Pin
Jose Lamas Rios22-Aug-05 18:04
Jose Lamas Rios22-Aug-05 18:04 
GeneralRe: Recieving a file over TCP Pin
Member 183908222-Aug-05 18:13
Member 183908222-Aug-05 18:13 
GeneralRe: Recieving a file over TCP Pin
Jose Lamas Rios22-Aug-05 19:10
Jose Lamas Rios22-Aug-05 19:10 
GeneralRe: Recieving a file over TCP Pin
Member 183908223-Aug-05 7:44
Member 183908223-Aug-05 7:44 
GeneralRe: Recieving a file over TCP Pin
Member 183908223-Aug-05 17:10
Member 183908223-Aug-05 17:10 
Questionhow to create a listbox using GLUI. Pin
jasrina22-Aug-05 17:45
jasrina22-Aug-05 17:45 
AnswerRe: how to create a listbox using GLUI. Pin
Jose Lamas Rios22-Aug-05 18:02
Jose Lamas Rios22-Aug-05 18:02 
GeneralTree List Control Pin
Nishad S22-Aug-05 17:45
Nishad S22-Aug-05 17:45 
GeneralRe: Tree List Control Pin
Jose Lamas Rios22-Aug-05 18:08
Jose Lamas Rios22-Aug-05 18:08 
QuestionHow to make text link in dialog box with Win32api? Pin
Member 159461422-Aug-05 16:55
Member 159461422-Aug-05 16:55 
AnswerRe: How to make text link in dialog box with Win32api? Pin
Jose Lamas Rios22-Aug-05 17:05
Jose Lamas Rios22-Aug-05 17:05 
GeneralRe: How to make text link in dialog box with Win32api? Pin
Member 159461422-Aug-05 18:01
Member 159461422-Aug-05 18:01 
GeneralRe: How to make text link in dialog box with Win32api? Pin
Jose Lamas Rios22-Aug-05 18:05
Jose Lamas Rios22-Aug-05 18:05 
QuestionInternet game? Pin
gr8coaster32922-Aug-05 16:14
gr8coaster32922-Aug-05 16:14 
QuestionHow can i chang the type of int to type of POSITION Pin
ebinaini22-Aug-05 15:14
ebinaini22-Aug-05 15:14 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Anonymous22-Aug-05 15:33
Anonymous22-Aug-05 15:33 

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.