Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> OO4O: ODynaset.Update() results in error OIP-00015
Hello, I have a problem with OO4O (Oracle 8.1.7) in connection with Microsoft
Visual C++ 6.0. I would like to add a new record to a dynaset (_dynJobs is a
member of the document class):
oresult CXXXXXDoc::addJob(const Job* pJob) {
// ...some ASSERT-Macros here...
oresult result;
// Add a new record to the dynaset result set result = _dynJobs.AddNewRecord(); if (result == OFAILURE)
{
DisplayOO4OError(_dynJobs); ASSERT(FALSE); // In DEBUG-Versions assert here! return (OFAILURE); } result = _dynJobs.StartEdit(); if (result == OFAILURE)
{
DisplayOO4OError(_dynJobs); ASSERT(FALSE); // In DEBUG-Versions assert here! return (OFAILURE); } OValue value; // Edit the field values value = static_cast<INT>(pJob->jobID()); result = _dynJobs.SetFieldValue(0, value); ASSERT(result == OSUCCESS);
// ....some more _dynJobs.SetFieldValue(...) ...
value = static_cast<INT>(pJob->systemID()); result = _dynJobs.SetFieldValue(9, value); ASSERT(result == OSUCCESS); result =_dynJobs.Update(); // THIS call fails!!!!!!}
Everytime I call the Update-method of the dynaset, I receive a return-value of 101 (OFAILURE). An evaluation of ErrorNumber() and GetErrorText() has the result:
15
OIP-00015: Message 15 not found; product=OO4O; facility=OIP
Where is the problem?!
Many thanks in advance for any help,
Stephan Roth
-- __________________________________________________________ News suchen, lesen, schreiben mit http://newsgroups.web.deReceived on Tue Oct 09 2001 - 02:24:37 CDT