Click here to Skip to main content
15,898,947 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralModem informations Pin
Chernobog11-Apr-04 3:44
Chernobog11-Apr-04 3:44 
GeneralRe: Modem informations Pin
Roger Wright1-Apr-04 4:30
professionalRoger Wright1-Apr-04 4:30 
QuestionWhich message window receives after all when it open? Pin
vgrigor1-Apr-04 3:43
vgrigor1-Apr-04 3:43 
AnswerRe: Which message window receives after all when it open? Pin
Prakash Nadar1-Apr-04 4:42
Prakash Nadar1-Apr-04 4:42 
AnswerRe: Which message window receives after all when it open? Pin
Harold Bamford1-Apr-04 12:33
Harold Bamford1-Apr-04 12:33 
GeneralRe: Which message window receives after all when it open? Pin
vgrigor1-Apr-04 19:33
vgrigor1-Apr-04 19:33 
AnswerRe: Which message window receives after all when it open? Pin
gUrM33T1-Apr-04 16:44
gUrM33T1-Apr-04 16:44 
GeneralDatabases and threads Pin
islheg1-Apr-04 3:09
islheg1-Apr-04 3:09 
I developed an database application using VC++ and Micorsoft Access driver as the ODBC source. There are 2 threads in the application both accessing the same table. The first thread writes data in the table and the second thread reads and deletes data from the table. Here is a snapshot of the code of the second thread:

while (!attackRecSet->IsEOF())
{
.
.
.
.
.
.
try
{
attackRecSet->Delete();
attackRecSet->MoveNext();
} //try
catch(CDBException *e)
{
MessageBox(NULL, e->m_strError, "Error", MB_OK);
e->Delete();
} //catch
} //while

An error message occurs because of the delete function and the thread stops working. the error message is:

" Could not update; currently locked by user 'admin' on machine ISLAM_COMPUTER'. "

and when I press OK the following message occurs for ever (it reoccurs if I press the OK button):

" Invalid cursor position; no keyset defined. "

If I commented the delete function the thread will work perfectly. I searched the MSDN for an explanation but with no use. Could anyone tell where could I find an explanation for this error.

Islam Hegazy

islam
GeneralRe: Databases and threads Pin
Prakash Nadar1-Apr-04 4:45
Prakash Nadar1-Apr-04 4:45 
GeneralEntering new lines in edit box Pin
satcat1-Apr-04 3:02
satcat1-Apr-04 3:02 
GeneralRe: Entering new lines in edit box Pin
David Crow1-Apr-04 3:24
David Crow1-Apr-04 3:24 
GeneralRe: Entering new lines in edit box Pin
basementman1-Apr-04 5:02
basementman1-Apr-04 5:02 
GeneralMemory Device context+Createcompatible Bitmap related query Pin
JHAKAS1-Apr-04 1:59
JHAKAS1-Apr-04 1:59 
GeneralRe: Memory Device context+Createcompatible Bitmap related query Pin
John R. Shaw1-Apr-04 9:36
John R. Shaw1-Apr-04 9:36 
QuestionHow to detect that background under child window is changed? Pin
vgrigor1-Apr-04 0:48
vgrigor1-Apr-04 0:48 
QuestionHow to obtain interface ip from destination ip ? Pin
VF1-Apr-04 0:04
VF1-Apr-04 0:04 
AnswerRe: How to obtain interface ip from destination ip ? Pin
Antony M Kancidrowski1-Apr-04 1:17
Antony M Kancidrowski1-Apr-04 1:17 
AnswerRe: How to obtain interface ip from destination ip ? Pin
Mike Dimmick1-Apr-04 1:49
Mike Dimmick1-Apr-04 1:49 
Generalset cursor of SDI Pin
MeWithNoName1-Apr-04 0:04
MeWithNoName1-Apr-04 0:04 
GeneralRe: set cursor of SDI Pin
Milton Karimbekallil1-Apr-04 0:39
Milton Karimbekallil1-Apr-04 0:39 
Generalvector math on different pc processors (amd, intel) Pin
Mediate31-Mar-04 23:33
Mediate31-Mar-04 23:33 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Antony M Kancidrowski1-Apr-04 1:31
Antony M Kancidrowski1-Apr-04 1:31 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Alexander M.,1-Apr-04 3:37
Alexander M.,1-Apr-04 3:37 
GeneralRe: vector math on different pc processors (amd, intel) Pin
Mediate1-Apr-04 23:18
Mediate1-Apr-04 23:18 
Generalsubst programatically Pin
bruno leclerc31-Mar-04 22:30
bruno leclerc31-Mar-04 22:30 

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.