Click here to Skip to main content
15,920,896 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: exception error Pin
Stuart Dootson12-Feb-05 2:33
professionalStuart Dootson12-Feb-05 2:33 
GeneralRe: exception error Pin
Tim Smith22-Feb-05 4:13
Tim Smith22-Feb-05 4:13 
GeneralCommandBarPopup not calling Exec Pin
JabraJabra11-Feb-05 23:15
JabraJabra11-Feb-05 23:15 
GeneralRFC - Duplicate file finder features Pin
Subhobroto11-Feb-05 20:41
Subhobroto11-Feb-05 20:41 
GeneralButtons in Outlook Addin Pin
ernst.maurer11-Feb-05 1:06
ernst.maurer11-Feb-05 1:06 
QuestionHow can I open Web page in Microsoft Web Browser through ATL Pin
devom11-Feb-05 0:03
devom11-Feb-05 0:03 
AnswerRe: How can I open Web page in Microsoft Web Browser through ATL Pin
Michael Dunn11-Feb-05 5:31
sitebuilderMichael Dunn11-Feb-05 5:31 
GeneralCreating Modeless Dialog Box Failed Pin
devom14-Feb-05 22:21
devom14-Feb-05 22:21 
As told in the article

CComObject<cmaindlg> dlgMain;
dlgMain.AddRef();
if ( dlgMain.Create(NULL) == NULL )
{
ATLTRACE(_T("Main dialog creation failed!\n"));
//return 0;
}

dlgMain.ShowWindow(SW_SHOWDEFAULT);
}
not working.
Now the program is compiling without any errors.But when i am clicking button then only Dialog Box is visible without ActiveX Control and that too with illegal operation, asks to close and send Error Report.
I know that the problem is somewhere with Create function .i.e. Dialog box is not creating.I also removed ActiveX control from Dialog Box ,then too the problem continues.It means that Dialog Box is not being Created.
But i don't know how and what to do.I tried as
For that i called AtlAxWinInit(); in CMainDlg::OnInitDialog();
LRESULT OnInitDialog(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
AtlAxWinInit();// Added this

CAxWindow wndIE = GetDlgItem(IDC_IE);
CComPtr<iwebbrowser2> pWB2;
HRESULT hr;
hr = wndIE.QueryControl ( &pWB2 );

if ( pWB2 )
{
CComVariant v; // empty variant

pWB2->Navigate ( CComBSTR("http://www.codeproject.com/"),
&v, &v, &v, &v );
}

but same problem continues.Any one Plz help me
Questionhow to put multiline comment to function header Pin
JabraJabra10-Feb-05 6:50
JabraJabra10-Feb-05 6:50 
GeneralVSSDatabase Pin
JabraJabra9-Feb-05 22:57
JabraJabra9-Feb-05 22:57 
GeneralRe: VSSDatabase Pin
Michael Bergman10-Feb-05 11:00
Michael Bergman10-Feb-05 11:00 
GeneralRe: VSSDatabase - thanks Pin
JabraJabra13-Feb-05 22:47
JabraJabra13-Feb-05 22:47 
GeneralCodeModel object Pin
JabraJabra9-Feb-05 22:55
JabraJabra9-Feb-05 22:55 
GeneralCompile error Pin
zsombor9-Feb-05 6:39
zsombor9-Feb-05 6:39 
GeneralRe: Compile error Pin
Stuart Dootson9-Feb-05 20:38
professionalStuart Dootson9-Feb-05 20:38 
QuestionWhat overloaded member function called in if(iterator) Pin
DevendraC8-Feb-05 0:41
DevendraC8-Feb-05 0:41 
AnswerRe: What overloaded member function called in if(iterator) Pin
Joaquín M López Muñoz8-Feb-05 5:22
Joaquín M López Muñoz8-Feb-05 5:22 
GeneralRe: What overloaded member function called in if(iterator) Pin
DevendraC8-Feb-05 17:33
DevendraC8-Feb-05 17:33 
GeneralRe: What overloaded member function called in if(iterator) Pin
guypremont9-Feb-05 3:04
guypremont9-Feb-05 3:04 
GeneralRe: What overloaded member function called in if(iterator) Pin
Michael Dunn10-Feb-05 10:27
sitebuilderMichael Dunn10-Feb-05 10:27 
Generalusing cout in template argument... Pin
Malcolm Smart7-Feb-05 22:23
Malcolm Smart7-Feb-05 22:23 
GeneralRe: using cout in template argument... Pin
Joaquín M López Muñoz8-Feb-05 5:35
Joaquín M López Muñoz8-Feb-05 5:35 
GeneralRe: using cout in template argument... Pin
Malcolm Smart8-Feb-05 21:44
Malcolm Smart8-Feb-05 21:44 
GeneralControl's window not ready even in FinalConstruct() Pin
greekgoddj7-Feb-05 5:21
greekgoddj7-Feb-05 5:21 
GeneralRe: Control's window not ready even in FinalConstruct() Pin
Michael Dunn7-Feb-05 7:02
sitebuilderMichael Dunn7-Feb-05 7:02 

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.