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

C / C++ / MFC

 
Generaldrawing editable objects Pin
Anonymous21-Oct-02 22:35
Anonymous21-Oct-02 22:35 
GeneralRe: drawing editable objects Pin
Stephane Rodriguez.21-Oct-02 22:37
Stephane Rodriguez.21-Oct-02 22:37 
GeneralRe: drawing editable objects Pin
Anonymous22-Oct-02 9:03
Anonymous22-Oct-02 9:03 
GeneralAccess Violation on GlobalAlloc() Pin
Alexinuk21-Oct-02 22:26
Alexinuk21-Oct-02 22:26 
GeneralRe: Access Violation on GlobalAlloc() Pin
Paul M Watt22-Oct-02 12:58
mentorPaul M Watt22-Oct-02 12:58 
GeneralRe: Access Violation on GlobalAlloc() Pin
Alexinuk22-Oct-02 22:23
Alexinuk22-Oct-02 22:23 
GeneralRe: Access Violation on GlobalAlloc() -helphelphelphelp! Pin
Alexinuk23-Oct-02 22:04
Alexinuk23-Oct-02 22:04 
GeneralProblem with ADO and MySQL Pin
Bash21-Oct-02 21:48
Bash21-Oct-02 21:48 
Hi!

I develop WIN32 software that uses MySQL database. My software uses MySQL
ODBC driver 3.51 and ADO interface. MDAC 2.7 is installed. My problem is
that while I'm trying to update MySQL record contained char(15) field, I get
an error "Microsoft OLE DB Provider for ODBC Drivers Multiple-step OLE DB
operation generated errors. Check each OLE DB status value, if available. No
work was done." I don't have such problem with numeric fields. The numeric
fields are updating normally with the same code.

Here is a sample of my code:

try
{
_RecordsetPtr pRecordset;
HRESULT hr;
_bstr_t btmp;

hr = pRecordset->Open(vTable, vConnection,adOpenForwardOnly,
adLockOptimistic, adCmdTableDirect);
hr = pRecordset->AddNew();
...
pRecordset->Fields->GetItem(L"id")->Value=btmp;
...
pRecordset->Fields->GetItem(L"proto")->Value=btmp;
...
pRecordset->Fields->GetItem(L"src_ip")->Value=btmp;
}

The fields "id" and "proto" are numeric, the field "src_ip" is char. And I
get the above error while updating the "src_ip" field. Do you have any
ideas? Can you help me?


Yours sincerely,
Alex Bash
GeneralRe: Problem with ADO and MySQL Pin
Vagif Abilov22-Oct-02 0:03
professionalVagif Abilov22-Oct-02 0:03 
GeneralThreads and Messages Pin
Shroom21-Oct-02 21:40
Shroom21-Oct-02 21:40 
GeneralRe: Threads and Messages Pin
Joaquín M López Muñoz21-Oct-02 22:06
Joaquín M López Muñoz21-Oct-02 22:06 
GeneralRe: Threads and Messages Pin
Steen Krogsgaard21-Oct-02 23:34
Steen Krogsgaard21-Oct-02 23:34 
GeneralRe: Threads and Messages Pin
Joaquín M López Muñoz21-Oct-02 23:45
Joaquín M López Muñoz21-Oct-02 23:45 
GeneralRe: Threads and Messages Pin
Steen Krogsgaard21-Oct-02 23:55
Steen Krogsgaard21-Oct-02 23:55 
GeneralRe: Threads and Messages Pin
Joaquín M López Muñoz22-Oct-02 0:19
Joaquín M López Muñoz22-Oct-02 0:19 
GeneralRe: Threads and Messages Pin
Hans Ruck22-Oct-02 0:36
Hans Ruck22-Oct-02 0:36 
GeneralRe: Threads and Messages Pin
Joaquín M López Muñoz22-Oct-02 0:39
Joaquín M López Muñoz22-Oct-02 0:39 
GeneralRe: Threads and Messages Pin
Hans Ruck22-Oct-02 1:01
Hans Ruck22-Oct-02 1:01 
GeneralRe: Threads and Messages Pin
Steen Krogsgaard22-Oct-02 1:40
Steen Krogsgaard22-Oct-02 1:40 
GeneralRe: Threads and Messages Pin
Zdenek Navratil21-Oct-02 23:06
Zdenek Navratil21-Oct-02 23:06 
GeneralRe: Threads and Messages Pin
Neville Franks21-Oct-02 23:32
Neville Franks21-Oct-02 23:32 
GeneralCHtmlView Pin
alex.barylski21-Oct-02 21:08
alex.barylski21-Oct-02 21:08 
GeneralJpeg Pin
Kristian3321-Oct-02 20:42
Kristian3321-Oct-02 20:42 
GeneralRe: Jpeg Pin
Stephane Rodriguez.21-Oct-02 20:46
Stephane Rodriguez.21-Oct-02 20:46 
GeneralRe: Jpeg Pin
Christian Graus21-Oct-02 20:47
protectorChristian Graus21-Oct-02 20:47 

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.