Click here to Skip to main content
15,910,981 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralStruct from one class to another Pin
Claude Gagnon7-Jun-00 17:16
Claude Gagnon7-Jun-00 17:16 
GeneralRe: Struct from one class to another Pin
Amit B7-Jun-00 19:05
Amit B7-Jun-00 19:05 
GeneralRe: Struct from one class to another Pin
Uwe Keim8-Jun-00 11:49
sitebuilderUwe Keim8-Jun-00 11:49 
GeneralUsing STL in ATL Pin
Tony Li7-Jun-00 10:55
Tony Li7-Jun-00 10:55 
GeneralRe: Using STL in ATL Pin
Tim Deveaux7-Jun-00 11:32
Tim Deveaux7-Jun-00 11:32 
GeneralRe: Using STL in ATL Pin
Tony Li7-Jun-00 12:07
Tony Li7-Jun-00 12:07 
GeneralRe: Using STL in ATL Pin
Alex Gorev8-Jun-00 8:16
Alex Gorev8-Jun-00 8:16 
GeneralAccess replication/synchronization using CDaoDatabase Pin
W Dicks7-Jun-00 7:28
W Dicks7-Jun-00 7:28 
I am using CDaoDatabase and related classes to work with an MS-Access database. I need to do
replication and synchronization with this database. I need to synchronize between this database on a
local machine, and with it on a network drive. For some reason it does not want to work. It tells me
that "the database is not found." It does not tell me which one. I know for a fact that both of them
do exist.

The first thing that needs to be done is make sure that both databases have the "Replicable"
property. If this property does not exist, I need to create it. It is at this point that I already
have problems. Here I get a "Data type conversion error." This what my code looks like:

bool CMyDatabase::CreateDBProperty(CString sProperty)
{
DAOProperty *pdp;
DAOProperties *pdps;
bool bRet = false;
COleVariant vntName( sProperty );
COleVariant vntType(( short )VT_BSTR );
COleVariant vntValue( "T" );
COleVariant vntbDDL(( long )FALSE );
// m_daoDB is a DAODatabase (from CDaoDatabase::m_pDAODatabase)
HRESULT hr = m_daoDB->CreateProperty(
vntName,
vntType,
vntValue,
vntbDDL,
&pdp );
// hr result is 0x800A0D5D (3421)
// "Data type conversion error."
}



Does anyone have any ideas or help?

I would appreciate it!
GeneralLPARAM associated data in TVITEM in TreeCtrl Pin
Member 103121487-Jun-00 6:25
Member 103121487-Jun-00 6:25 
GeneralRe: LPARAM associated data in TVITEM in TreeCtrl Pin
Uwe Keim7-Jun-00 10:45
sitebuilderUwe Keim7-Jun-00 10:45 
GeneralRe: LPARAM associated data in TVITEM in TreeCtrl Pin
michael7-Jun-00 14:52
michael7-Jun-00 14:52 
GeneralRe: LPARAM associated data in TVITEM in TreeCtrl Pin
michael8-Jun-00 2:20
michael8-Jun-00 2:20 
GeneralProblems serializing data structures (2) Pin
JCpp6-Jun-00 22:24
JCpp6-Jun-00 22:24 
QuestionHow to display Video in a Window? Pin
RickL6-Jun-00 19:41
RickL6-Jun-00 19:41 
AnswerRe: How to display Video in a Window? Pin
Amit B7-Jun-00 19:00
Amit B7-Jun-00 19:00 
AnswerRe: How to display Video in a Window? Pin
9-May-01 2:09
suss9-May-01 2:09 
QuestionCRichEdit without OLE capabilities? Pin
JCpp6-Jun-00 11:58
JCpp6-Jun-00 11:58 
AnswerRe: CRichEdit without OLE capabilities? Pin
Ben Key7-Jun-00 10:39
Ben Key7-Jun-00 10:39 
GeneralSizing Child Window Pin
Joseph6-Jun-00 8:36
Joseph6-Jun-00 8:36 
GeneralRe: Sizing Child Window Pin
Sam Hobbs7-Jun-00 13:10
Sam Hobbs7-Jun-00 13:10 
GeneralRe: Sizing Child Window Pin
Joseph8-Jun-00 3:18
Joseph8-Jun-00 3:18 
GeneralRe: Sizing Child Window Pin
Sam Hobbs8-Jun-00 9:44
Sam Hobbs8-Jun-00 9:44 
GeneralPalm PC Keyboard Pin
Joe O'Connor6-Jun-00 8:11
Joe O'Connor6-Jun-00 8:11 
GeneralRe: Palm PC Keyboard Pin
Chris Maunder7-Jun-00 2:14
cofounderChris Maunder7-Jun-00 2:14 
GeneralRe: Palm PC Keyboard Pin
Joe O'Connor7-Jun-00 8:17
Joe O'Connor7-Jun-00 8:17 

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.