Click here to Skip to main content
15,907,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process handle Pin
Nish Nishant20-Jun-02 19:44
sitebuilderNish Nishant20-Jun-02 19:44 
GeneralRe: Process handle Pin
sultan_of_6string20-Jun-02 23:21
sultan_of_6string20-Jun-02 23:21 
GeneralC++ run-time library Pin
pearothy20-Jun-02 18:12
pearothy20-Jun-02 18:12 
GeneralRe: C++ run-time library Pin
Michael Dunn20-Jun-02 18:39
sitebuilderMichael Dunn20-Jun-02 18:39 
GeneralRe: C++ run-time library Pin
Alex Cramer20-Jun-02 20:35
Alex Cramer20-Jun-02 20:35 
QuestionHow to select HTML element like in it made Find Dilog? Pin
Alex Cramer20-Jun-02 17:58
Alex Cramer20-Jun-02 17:58 
GeneralDebug assertion failed when I try to connect to IE Events Pin
Alex Cramer20-Jun-02 17:24
Alex Cramer20-Jun-02 17:24 
GeneralADO message error not understood Pin
20-Jun-02 17:02
suss20-Jun-02 17:02 
When running the next program, I get the next error:
"Unspecified error Microsoft cursor Engine Key column information is insufficient or incorrect. Too many rows were affected by update".
A segment of the program is:

_RecordsetPtr pRs;
_ConnectionPtr m_pConn;
CString sErr;
HRESULT hr=0;
CoInitialize(NULL);
hr=m_pConn.CreateInstance(__uuidof(Connection));
m_pConn->Open (_bstr_t("DSN=egadb"), _bstr_t("scott"), _bstr_t("tiger"),
adConnectUnspecified);
_CommandPtr pCommand;
pCommand.CreateInstance (__uuidof (Command));
pCommand->ActiveConnection = m_pConn; // Formerly opened connection pointer
pCommand->CommandText = "select campo16, campo17, campo18, monto from carga";
variant_t vNull;
vNull.vt = VT_ERROR;
vNull.scode = DISP_E_PARAMNOTFOUND;
pRs.CreateInstance (__uuidof (Recordset));
pRs->CursorLocation = adUseClient;
MessageBox("Ahí voy con el recordset");
pRs->Open( (IDispatch *) pCommand, vtMissing, adOpenForwardOnly,
adLockOptimistic, adCmdUnknown);

CString pfldEName, pfldJob, stmp;
BeginWaitCursor();
try {
for (int i=1; i<2; i++) {
stmp.Format("%s", (char *) (_bstr_t)pRs->GetCollect("campo17"));
CString sValAux="";
pRs->PutCollect("campo18", _variant_t(atof(stmp)));
pRs->Update(vNull, vNull);
pRs->MoveNext();
}
pRs->Close();
}
catch (_com_error &e) {
sErr.Format("%08lx %s %s %s", e.Error(), e.ErrorMessage(),
(LPCTSTR) bstrSource, (LPCTSTR) bstrDescription);
MessageBox(sErr);
}
EndWaitCursor();
}

The table to update has more than 600,000 records. May be is it necessary to establish checkpoints?

Thank you in advance for you help!!
QuestionDialog in an DLL? Pin
Rene De La Garza20-Jun-02 16:40
Rene De La Garza20-Jun-02 16:40 
AnswerRe: Dialog in an DLL? Pin
Nish Nishant20-Jun-02 17:52
sitebuilderNish Nishant20-Jun-02 17:52 
GeneralRe: Dialog in an DLL? Pin
21-Jun-02 4:49
suss21-Jun-02 4:49 
GeneralRe: Dialog in an DLL? Pin
Michael P Butler21-Jun-02 6:19
Michael P Butler21-Jun-02 6:19 
AnswerRe: Dialog in an DLL? Pin
Michael P Butler21-Jun-02 6:29
Michael P Butler21-Jun-02 6:29 
GeneralResource Editor in Binary/Hex... Pin
Selevercin20-Jun-02 15:29
Selevercin20-Jun-02 15:29 
GeneralRe: Resource Editor in Binary/Hex... Pin
Christian Graus20-Jun-02 17:27
protectorChristian Graus20-Jun-02 17:27 
GeneralRe: Resource Editor in Binary/Hex... Pin
Mike Nordell20-Jun-02 18:44
Mike Nordell20-Jun-02 18:44 
GeneralRe: Resource Editor in Binary/Hex... Pin
Selevercin21-Jun-02 7:17
Selevercin21-Jun-02 7:17 
GeneralRe: Resource Editor in Binary/Hex... Pin
Mike Nordell21-Jun-02 11:17
Mike Nordell21-Jun-02 11:17 
Generaladdin/program that display dialog resource with resource_id Pin
aldeba20-Jun-02 15:28
aldeba20-Jun-02 15:28 
GeneralRe: addin/program that display dialog resource with resource_id Pin
aldeba20-Jun-02 15:32
aldeba20-Jun-02 15:32 
Generalunresizable dialog Pin
Steve L.20-Jun-02 15:11
Steve L.20-Jun-02 15:11 
GeneralRe: unresizable dialog Pin
Chris Losinger20-Jun-02 15:17
professionalChris Losinger20-Jun-02 15:17 
GeneralRe: unresizable dialog Pin
Steve L.20-Jun-02 15:39
Steve L.20-Jun-02 15:39 
GeneralRe: unresizable dialog Pin
Steve L.20-Jun-02 15:43
Steve L.20-Jun-02 15:43 
GeneralRe: unresizable dialog Pin
Chris Losinger20-Jun-02 15:44
professionalChris Losinger20-Jun-02 15:44 

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.