Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Jet and Replication Objects (JRO) & Visual C++

138 views
Skip to first unread message

Marc Oliver

unread,
Apr 7, 2000, 3:00:00 AM4/7/00
to
I would like to use the JetEngine.RefreshCache(Connection)
method in Visual C++ program, but don't know how to include
support for this in my project. Anybody know how to do this?

Something like this......
pJetEngine pJet;
pJet->RefreshCache(Connection);


Bob Nakarada

unread,
Apr 11, 2000, 3:00:00 AM4/11/00
to

"Marc Oliver" <oli...@qsicorp.com> wrote in message
news:eU2DqsNo$GA.300@cppssbbsa05...
try this:

#import <msjro.dll>

JRO::IJetEnginePtr jet( __uuidof(JRO::JetEngine) );
jet->RefreshCache( m_Conn );

where m_Conn is the ADO connection you want to refresh. Check the "Jet and
Replication Objects" section of the Platform SDK.

I found this fixed my multiuser problems, if I refreshed the cache after I
retrieved the connection from the pool (Opened the connection) and performed
the same before I closed the connection.

Marc Oliver

unread,
Apr 13, 2000, 3:00:00 AM4/13/00
to
Thanks for the reply Bob.

Sometimes I feel like us VC++ guys our out
here alone when it comes to ADO. I looked
High and low for how to do this in VC++,
but all of the documentation is for VB. I'm
curious how you found how to use JRO.

"Bob Nakarada" <bobn@No_Spam.metrics.com> wrote in message
news:O96sKG9o$GA.307@cppssbbsa04...

Bob Nakarada

unread,
Apr 13, 2000, 3:00:00 AM4/13/00
to
I know how you feel. I found a blurb on Microsoft's Web site about the JRO
object (in VB of course). I just seemed the logical way to call it from C++.


"Marc Oliver" <oli...@qsicorp.com> wrote in message

news:#Fdy8yWp$GA....@cppssbbsa02.microsoft.com...

0 new messages