Click here to Skip to main content
16,010,523 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Basic Statistics Pin
Mukkie1-Oct-01 5:50
Mukkie1-Oct-01 5:50 
GeneralRe: Basic Statistics Pin
Paul Selormey2-Oct-01 14:02
Paul Selormey2-Oct-01 14:02 
QuestionUse Dll that created in VC++ in Delphi ? Pin
1-Oct-01 3:14
suss1-Oct-01 3:14 
AnswerRe: Use Dll that created in VC++ in Delphi ? Pin
Michael P Butler1-Oct-01 3:22
Michael P Butler1-Oct-01 3:22 
GeneralConnection Point Hell, now with added MFC... Pin
Christian Graus1-Oct-01 3:03
protectorChristian Graus1-Oct-01 3:03 
GeneralRe: Connection Point Hell, now with added MFC... Pin
NormDroid1-Oct-01 3:18
professionalNormDroid1-Oct-01 3:18 
GeneralRe: Connection Point Hell, now with added MFC... Pin
Christian Graus1-Oct-01 3:26
protectorChristian Graus1-Oct-01 3:26 
GeneralRe: Connection Point Hell, now with added MFC... Pin
Michael P Butler1-Oct-01 3:33
Michael P Butler1-Oct-01 3:33 
CoInitialize(NULL);
m_pConnPt = new CConnPt();
LPUNKNOWN pUnkSink = m_pConnPt->GetIDispatch(FALSE);
ISAFileDBPtr pIFind(__uuidof(SAFileDB));
IUnknown * pUnk = NULL;	pIFind->QueryInterface(IID_IUnknown, (void**)&pUnk);
AfxConnectionAdvise(pUnk, IID_ISAFileDBEvents, pUnkSink, FALSE, &m_dwCookie);
pIFind->DoTest();	
AfxConnectionUnadvise(pUnk, IID_ISAFileDBEvents, pUnkSink, FALSE, m_dwCookie);pUnk->Release();	
CoUninitialize();


This code has me lost. Why are you asking to be advise of a connection point event and then asking to be unadvised all in the same function? This code doesn't seem like the best way (or even correct way) to use connection points.

Can you explain what your program should do?

Michael Smile | :)
GeneralRe: Connection Point Hell, now with added MFC... Pin
Christian Graus1-Oct-01 4:00
protectorChristian Graus1-Oct-01 4:00 
GeneralRe: Connection Point Hell, now with added MFC... Pin
Michael P Butler1-Oct-01 4:16
Michael P Butler1-Oct-01 4:16 
GeneralRe: Connection Point Hell, now with added MFC... Pin
Christian Graus1-Oct-01 10:42
protectorChristian Graus1-Oct-01 10:42 
GeneralRe: Connection Point Hell, now with added MFC... Pin
Michael P Butler1-Oct-01 22:20
Michael P Butler1-Oct-01 22:20 
GeneralFindExecutable Pin
1-Oct-01 2:04
suss1-Oct-01 2:04 
GeneralRe: FindExecutable Pin
Oscar Vazquez1-Oct-01 4:50
Oscar Vazquez1-Oct-01 4:50 
GeneralRe: FindExecutable Pin
Carlos Antollini1-Oct-01 5:16
Carlos Antollini1-Oct-01 5:16 
GeneralRe: FindExecutable Pin
Josh Knox1-Oct-01 7:03
Josh Knox1-Oct-01 7:03 
GeneralRe: FindExecutable Pin
Paolo Messina1-Oct-01 12:43
professionalPaolo Messina1-Oct-01 12:43 
GeneralHELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Janlim1-Oct-01 0:10
Janlim1-Oct-01 0:10 
GeneralRe: HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Christian Graus1-Oct-01 0:21
protectorChristian Graus1-Oct-01 0:21 
GeneralRe: HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Janlim1-Oct-01 0:25
Janlim1-Oct-01 0:25 
Generalre:HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Janlim1-Oct-01 0:31
Janlim1-Oct-01 0:31 
Generalre:HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Janlim1-Oct-01 0:32
Janlim1-Oct-01 0:32 
GeneralRe: re:HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Christian Graus1-Oct-01 0:35
protectorChristian Graus1-Oct-01 0:35 
GeneralRe: re:HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Janlim1-Oct-01 0:41
Janlim1-Oct-01 0:41 
GeneralRe: re:HELP NEEDED FOR GRAPHICS LIBRARY!!! Pin
Michael P Butler1-Oct-01 1:23
Michael P Butler1-Oct-01 1:23 

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.