Solved

MFC CLongBinary

Posted on 1998-12-17
1
358 Views
Last Modified: 2013-11-20
I'm using CRecordset and CLongBinary to insert image into SQLServer6.5 database.  I did call SetFieldDirty() after I called AddNew(), then I read image out of a image file into the buffer I allocated.  The data pointer in the CLongBinary object points to the data buffer.  But after update() call, the image field still seems to be null.  No exception was thrown.  Everything seems to be ok except when I look at the table, the field is null.  Why?
0
Comment
Question by:accord
1 Comment
 
LVL 4

Accepted Solution

by:
piano_boxer earned 100 total points
ID: 1326372
Try also calling SetFieldNull(&m_nMyClassMember, FALSE) after the SetFieldDirty(&m_nMyClassMember, TRUE) call.
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
function returning CString in a regular win32 DLL 8 149
Strange date stored 22 100
substring method in java 1 79
pre4 challenge 19 88
Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now