Click here to Skip to main content
15,909,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 9:15
Tomasz Sowinski19-Sep-01 9:15 
GeneralRe: PostMessage... philosophy... Pin
Remi Morin19-Sep-01 9:57
Remi Morin19-Sep-01 9:57 
GeneralRe: PostMessage... philosophy... Pin
Tomasz Sowinski19-Sep-01 10:20
Tomasz Sowinski19-Sep-01 10:20 
GeneralProblem with msadox.dll and msado15.dll Pin
19-Sep-01 5:27
suss19-Sep-01 5:27 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
Remi Morin19-Sep-01 5:53
Remi Morin19-Sep-01 5:53 
GeneralProblem with msadox.dll and msado15.dll Pin
19-Sep-01 5:59
suss19-Sep-01 5:59 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
Carlos Antollini19-Sep-01 5:58
Carlos Antollini19-Sep-01 5:58 
GeneralRe: Problem with msadox.dll and msado15.dll Pin
19-Sep-01 6:04
suss19-Sep-01 6:04 
Yes, if I use that everything goes OK, but the problem is that I have two classes (one using msado15.dll and the other using msadox.dll) and I want them to share the connection, so I thought of passing the ConnectionPtr from one class to the other. Otherwise, I've to do two different connections to the same source and It's not very efficient.

I found this in msdn:

// BeginCloseConnectionCpp
#import "c:\Program Files\Common Files\system\ado\msadox.dll" \
no_namespace
#import "c:\Program Files\Common Files\system\ado\msado15.dll"

and in a function:
m_pCatalog->PutActiveConnection(_variant_t((IDispatch *)m_pCnn));

where m_pCnn is a ConnectionPtr

That's what I want to do !!!!!


GeneralLoadString... Pin
19-Sep-01 5:05
suss19-Sep-01 5:05 
GeneralRe: LoadString... Pin
Not Active19-Sep-01 6:04
mentorNot Active19-Sep-01 6:04 
GeneralRe: LoadString... Pin
19-Sep-01 8:06
suss19-Sep-01 8:06 
GeneralRe: LoadString... Pin
Not Active19-Sep-01 9:59
mentorNot Active19-Sep-01 9:59 
GeneralRe: LoadString... Pin
Steen Krogsgaard19-Sep-01 23:39
Steen Krogsgaard19-Sep-01 23:39 
GeneralRe: LoadString... Pin
Carlos Antollini19-Sep-01 10:20
Carlos Antollini19-Sep-01 10:20 
GeneralRe: LoadString... Pin
The_Server19-Sep-01 21:08
The_Server19-Sep-01 21:08 
GeneralRe: LoadString... Pin
The_Server19-Sep-01 21:09
The_Server19-Sep-01 21:09 
GeneralRe: LoadString... Pin
Steen Krogsgaard19-Sep-01 23:31
Steen Krogsgaard19-Sep-01 23:31 
GeneralRe: LoadString... Pin
Carlos Antollini19-Sep-01 8:26
Carlos Antollini19-Sep-01 8:26 
GeneralTwo Basic Questions about SnapIn Pin
19-Sep-01 4:43
suss19-Sep-01 4:43 
GeneralRe: Two Basic Questions about SnapIn Pin
Jeremy Pullicino19-Sep-01 5:02
Jeremy Pullicino19-Sep-01 5:02 
GeneralRe: Two Basic Questions about SnapIn Pin
19-Sep-01 8:49
suss19-Sep-01 8:49 
GeneralRe: Two Basic Questions about SnapIn Pin
Jeremy Pullicino19-Sep-01 21:32
Jeremy Pullicino19-Sep-01 21:32 
Generalmenu at Right Side...VC++ Pin
Ahmad9919-Sep-01 3:51
Ahmad9919-Sep-01 3:51 
GeneralRe: menu at Right Side...VC++ Pin
Not Active19-Sep-01 6:11
mentorNot Active19-Sep-01 6:11 
GeneralRe: menu at Right Side...VC++ Pin
Michael Dunn19-Sep-01 8:16
sitebuilderMichael Dunn19-Sep-01 8:16 

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.