Click here to Skip to main content
15,900,511 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionLoading Icon on buttons created using TBBUTTON Pin
georgekjolly1-Nov-06 2:40
georgekjolly1-Nov-06 2:40 
AnswerRe: Loading Icon on buttons created using TBBUTTON Pin
led mike1-Nov-06 5:16
led mike1-Nov-06 5:16 
QuestionInsert data in ms access by oledb connection Pin
With_problem31-Oct-06 15:04
With_problem31-Oct-06 15:04 
QuestionHow to provide tooltip for toolbar on ATL control? Pin
Amar Sutar31-Oct-06 2:04
Amar Sutar31-Oct-06 2:04 
Questionregistering a plugin Pin
saqib8230-Oct-06 1:57
saqib8230-Oct-06 1:57 
AnswerRe: registering a plugin Pin
dharani7-Nov-06 21:57
dharani7-Nov-06 21:57 
GeneralRe: registering a plugin Pin
saqib827-Nov-06 22:24
saqib827-Nov-06 22:24 
QuestionCoCreateInstance problem Pin
hybride27-Oct-06 1:05
hybride27-Oct-06 1:05 
Does anyone know why CoCreateInstance for IShellWindows fails if called by an IE extension running in windows service?
Code for creating service:
SC_HANDLE hSCM = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if (!hSCM)
{
WriteMainLog(_T("INSTALL: OpenSCManager error."));
return FALSE;
}
SC_HANDLE hService = ::CreateService(hSCM,
SERVICE_STR_ID,
SERVICE_STR_ID,
SERVICE_ALL_ACCESS,
SERVICE_WIN32_OWN_PROCESS |
SERVICE_INTERACTIVE_PROCESS,
SERVICE_AUTO_START, // start condition
SERVICE_ERROR_NORMAL,
gszFileNewPath,
NULL,
NULL,
NULL,
NULL,
NULL);
if( !hService )
{
WriteMainLog(_T("INSTALL: CreateService error."));
return FALSE;
}

....

hr = CoCreateInstance(__uuidof(SHDocVw::ShellWindows),
NULL,
CLSCTX_ALL,
IID_IShellWindows,
(void**)&spShWin);
if( FAILED( hr ) )
{
_com_error er(hr);

_stprintf(err, _T("[MTProcessesInfo::GetURLInformation]. spShWin.CoCreateInstance. %s\r\n"), er.ErrorMessage());
WriteSpyLog(err);
return FALSE;
}

Error: "Class isn't registered".


AnswerRe: CoCreateInstance problem [modified] Pin
Jonathan [Darka]27-Oct-06 4:40
professionalJonathan [Darka]27-Oct-06 4:40 
QuestionMemory of the COM objects get allocated? Pin
Killer326-Oct-06 19:19
Killer326-Oct-06 19:19 
AnswerRe: Memory of the COM objects get allocated? Pin
Gupta Suraj14-Nov-06 8:19
Gupta Suraj14-Nov-06 8:19 
QuestionHow to mashal IElementBehaviorFactory interface? Pin
jinhaibo26-Oct-06 0:02
jinhaibo26-Oct-06 0:02 
Questionhelp in coding for database Pin
With_problem24-Oct-06 17:45
With_problem24-Oct-06 17:45 
AnswerRe: help in coding for database Pin
led mike25-Oct-06 12:30
led mike25-Oct-06 12:30 
QuestionConversion to and from TCHAR* Pin
rana7423-Oct-06 20:19
rana7423-Oct-06 20:19 
AnswerRe: Conversion to and from TCHAR* Pin
Michael Dunn23-Oct-06 20:53
sitebuilderMichael Dunn23-Oct-06 20:53 
AnswerRe: Conversion to and from TCHAR* Pin
lafleon17-Nov-06 13:35
lafleon17-Nov-06 13:35 
QuestionCan I derive from an ATL ActiveX control? Pin
markjmalin23-Oct-06 6:44
markjmalin23-Oct-06 6:44 
AnswerRe: Can I derive from an ATL ActiveX control? Pin
led mike25-Oct-06 13:24
led mike25-Oct-06 13:24 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 3:15
markjmalin26-Oct-06 3:15 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
led mike26-Oct-06 4:50
led mike26-Oct-06 4:50 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 4:54
markjmalin26-Oct-06 4:54 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
led mike26-Oct-06 5:31
led mike26-Oct-06 5:31 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
markjmalin26-Oct-06 5:53
markjmalin26-Oct-06 5:53 
GeneralRe: Can I derive from an ATL ActiveX control? Pin
led mike26-Oct-06 6:06
led mike26-Oct-06 6:06 

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.