Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to make a ClistCtrl has a gridline look? Pin
LiYS30-Nov-04 21:55
LiYS30-Nov-04 21:55 
AnswerRe: How to make a ClistCtrl has a gridline look? Pin
mirex1-Dec-04 5:10
mirex1-Dec-04 5:10 
GeneralRe: How to make a ClistCtrl has a gridline look? Pin
LeeeNN1-Dec-04 7:00
LeeeNN1-Dec-04 7:00 
GeneralCAB project in Visual Studio .NET (Simple Q) Pin
anderslundsgard30-Nov-04 21:46
anderslundsgard30-Nov-04 21:46 
QuestionOPENFILENAME: Modify Places bar? Pin
peterchen30-Nov-04 21:22
peterchen30-Nov-04 21:22 
AnswerRe: OPENFILENAME: Modify Places bar? Pin
Maximilien1-Dec-04 2:25
Maximilien1-Dec-04 2:25 
AnswerRe: OPENFILENAME: Modify Places bar? Pin
David Crow1-Dec-04 4:02
David Crow1-Dec-04 4:02 
Questionhow to retrieve Correct and valid data from "Ole Object" data type field in a Access DataBase? Pin
pubududilena30-Nov-04 20:42
pubududilena30-Nov-04 20:42 
hi all,
I am doing a Project using MFC and Access DataBase.In the Access Database, there is a Field called "Details" which data type is "OLE Object"..

How do we retrieve Valid data from that field using C++.?
I am trying like this:

BYTE * m_details;
CDatabase c1;CString s1;
c1.Open("demo");
CRecordset rs( &c1 );
rs.Open( CRecordset::forwardOnly, _T( "SELECT Details FROM ABC"));
do{
rs.GetFieldValue( (LPCTSTR)"Details",s1);
//I retrieve data like this:
m_details=(BYTE*)(LPSTR)(LPCTSTR)s1;

rs.MoveNext( );
}while( !rs.IsEOF( ) );

Program is compilling ...But I can not retrieve Valid value from the "Details" Field.."Details" is not integer or text..Data type of "details is Ole Object..
..
Can any body please reply me how to retrieve Correct and valid data from "Ole Object" data type field in a Access DataBase?

Thanks in advance..
Generalsome stupid questions ....... Pin
pc_dev30-Nov-04 20:12
pc_dev30-Nov-04 20:12 
GeneralRe: some stupid questions ....... Pin
peterchen30-Nov-04 21:34
peterchen30-Nov-04 21:34 
GeneralRe: some stupid questions ....... Pin
Anonymous30-Nov-04 22:49
Anonymous30-Nov-04 22:49 
Questionhow to hide "main dialog" properly? Pin
includeh1030-Nov-04 20:11
includeh1030-Nov-04 20:11 
AnswerRe: how to hide "main dialog" properly? Pin
mirex1-Dec-04 5:18
mirex1-Dec-04 5:18 
GeneralDocking Window Pin
Shree30-Nov-04 18:57
Shree30-Nov-04 18:57 
GeneralBorland C++ Pin
Member 147636730-Nov-04 18:49
Member 147636730-Nov-04 18:49 
GeneralRe: Borland C++ Pin
toxcct1-Dec-04 5:09
toxcct1-Dec-04 5:09 
GeneralResource Script Errors Pin
CNewbie30-Nov-04 17:58
CNewbie30-Nov-04 17:58 
GeneralRe: Resource Script Errors Pin
David Crow1-Dec-04 4:17
David Crow1-Dec-04 4:17 
GeneralMenu bar with controls Pin
Member 69142230-Nov-04 17:21
Member 69142230-Nov-04 17:21 
GeneralRe: Menu bar with controls Pin
Antti Keskinen30-Nov-04 21:08
Antti Keskinen30-Nov-04 21:08 
GeneralRe: Menu bar with controls Pin
toxcct1-Dec-04 5:46
toxcct1-Dec-04 5:46 
QuestionHow to draw a bitmap from the memory. Pin
paul_0730-Nov-04 16:20
paul_0730-Nov-04 16:20 
AnswerRe: How to draw a bitmap from the memory. Pin
rw1041-Dec-04 2:10
rw1041-Dec-04 2:10 
GeneralRe: How to draw a bitmap from the memory. Pin
paul_071-Dec-04 13:50
paul_071-Dec-04 13:50 
GeneralRe: How to draw a bitmap from the memory. Pin
rw1042-Dec-04 2:59
rw1042-Dec-04 2:59 

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.