Click here to Skip to main content
16,014,869 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionWinLogon notification? Pin
Mathias Tunared2-Feb-01 1:54
Mathias Tunared2-Feb-01 1:54 
AnswerRe: WinLogon notification? Pin
3-Feb-01 12:42
suss3-Feb-01 12:42 
GeneralRe: WinLogon notification? Pin
Mathias Tunared4-Feb-01 21:50
Mathias Tunared4-Feb-01 21:50 
GeneralGood Ad-ware System Pin
Colin J Davies1-Feb-01 23:25
Colin J Davies1-Feb-01 23:25 
QuestionHow do they do anti-alias ??? Pin
Danoo1-Feb-01 20:21
Danoo1-Feb-01 20:21 
AnswerRe: How do they do anti-alias ??? Pin
Chris Losinger2-Feb-01 4:23
professionalChris Losinger2-Feb-01 4:23 
GeneralATL Com progamming - needed help !!! Pin
1-Feb-01 18:52
suss1-Feb-01 18:52 
GeneralDebugging VB COM Components from a C++ Client Pin
Chris Paulse1-Feb-01 16:49
Chris Paulse1-Feb-01 16:49 
I have a "hello world" situation with a VB COM DLL and an MFC client.

When I switch the VB COM DLL to debug with "wait for component to be created", QI of LPUNKOWN for the default interface returns 0x80004002 (No such interface supported). If I don't run the COM dll in the debugger, everything is fine.

If I use a compiled VB .exe as the client, VB component debugging is supported.

I was told that this is a security related issue, so I went into dcomcnfg and added myself and the interactive user to "Access Permissions" and "Launch Permission" under the Default Security tab. No luck.

Here is the relavent code in the client (hopefully I don't have to start learning about CoInitializeSecurity or get saddled with debugging VB in the VC++ IDE Frown | :( )

CoInitialize(0);
IUnknown* lpUnk;
// this succeeds each time, and hits on Class_Initialize in the debugger
HRESULT hr = CoCreateInstance(__uuidof(WhyDebug::TheObject), NULL, CLSCTX_ALL, IID_IUnknown, (LPVOID *)&lpUnk);
// this fails when the VB component is in "wait for component to be created" state
// and succeeds with the VB debugger switched off.
WhyDebug::_TheObject* pTheObject;
hr = lpUnk->QueryInterface( __uuidof(WhyDebug::_TheObject), (void**)&pTheObject);

GeneralRe: Debugging VB COM Components from a C++ Client Pin
Chris Paulse2-Feb-01 15:32
Chris Paulse2-Feb-01 15:32 
GeneralThe old mouse recorder Pin
1-Feb-01 12:53
suss1-Feb-01 12:53 
GeneralRe: The old mouse recorder Pin
Michael Dunn1-Feb-01 13:14
sitebuilderMichael Dunn1-Feb-01 13:14 
GeneralRe: The old mouse recorder Pin
1-Feb-01 14:07
suss1-Feb-01 14:07 
GeneralCRichEditCtrl and rotation Pin
AlexMarbus1-Feb-01 12:31
AlexMarbus1-Feb-01 12:31 
QuestionThe following code looses memory. What's wrong? Pin
1-Feb-01 10:16
suss1-Feb-01 10:16 
AnswerRe: The following code looses memory. What's wrong? Pin
1-Feb-01 10:48
suss1-Feb-01 10:48 
GeneralMDI application Pin
kk91-Feb-01 9:18
kk91-Feb-01 9:18 
GeneralBuilding DLL's with mutual dependencies Pin
1-Feb-01 7:57
suss1-Feb-01 7:57 
GeneralMDI application Pin
kk91-Feb-01 6:35
kk91-Feb-01 6:35 
GeneralControls... Pin
1-Feb-01 6:00
suss1-Feb-01 6:00 
GeneralRe: Controls... Pin
David Fedolfi1-Feb-01 6:51
David Fedolfi1-Feb-01 6:51 
Generalabout callback Pin
1-Feb-01 5:10
suss1-Feb-01 5:10 
GeneralCapturing LPT output from DOS application Pin
Mody_CZ1-Feb-01 3:12
Mody_CZ1-Feb-01 3:12 
Generalfunction call within timer-callback Pin
.::RockNix::.1-Feb-01 1:08
.::RockNix::.1-Feb-01 1:08 
Questionwhat this does Pin
Ahmad31-Jan-01 23:20
Ahmad31-Jan-01 23:20 
AnswerRe: what this does Pin
.::RockNix::.31-Jan-01 23:40
.::RockNix::.31-Jan-01 23:40 

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.