Click here to Skip to main content
15,923,852 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
prasad_som26-Jan-07 5:42
prasad_som26-Jan-07 5:42 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 7:18
Jeffrey Walton26-Jan-07 7:18 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 4:14
Jeffrey Walton26-Jan-07 4:14 
AnswerRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Michael Dunn25-Jan-07 17:40
sitebuilderMichael Dunn25-Jan-07 17:40 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 3:26
Jeffrey Walton26-Jan-07 3:26 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Jeffrey Walton26-Jan-07 4:17
Jeffrey Walton26-Jan-07 4:17 
GeneralRe: STL: C2440: 'initializing' : cannot convert from 'char [12]' to 'SecureString' Pin
Joaquín M López Muñoz26-Jan-07 10:29
Joaquín M López Muñoz26-Jan-07 10:29 
QuestionProblem in Creating Activex in AtlComponent Pin
narayanagvs24-Jan-07 17:25
narayanagvs24-Jan-07 17:25 
Hi,

I have an Atl Component with an Interface EFCMyForm .(ATL Simple Object -- VS2005)
And a Dialog class CMydialog with ActiveX controls Placed on it. using right Click on Dialog and Insert ActiveX Control


In One of thw Exposed Method I am creating the dialog box CMyDialog

CMydialog g_myDlg;  // Global variable
STDMETHODIMP CEFCMyForm::Create() 
{
#ifdef _AFXDLL	
	AFX_MANAGE_STATE(AfxGetStaticModuleState())
#endif
    g_myDlg.Create(IDD_MY_DLG);
}

If I take a Global variable I don't have any problem but if I take mydialog obj as member variable as shown below...
CMydialog m_myDlg;  // member variable
STDMETHODIMP CEFCMyForm::Create() 
{
#ifdef _AFXDLL	
	AFX_MANAGE_STATE(AfxGetStaticModuleState())
#endif
   m_myDlg.Create(IDD_MY_DLG);
}
then the ActiveX Controls which are placed on the Dialog are not being Shown.

To resolve this If I try to Dyanamically create the ActiveX controls

CMyDialog::OninitDialog(){-----Using Create Control------           CLSID clsid;
		HRESULT hr1 = CLSIDFromProgID(OLESTR("EsdGraphCtrl.EsdGraphControl.3.0"),&clsid)	;
if (FAILED(hr1))		{		return FALSE;		}
BOOL blnSuccess;		CRect rc;		rc.left=0;		rc.top=0;		rc.right= 100;		rc.bottom =100;
blnSuccess = m_AxGraphControl.CreateControl(clsid,_T("Graph"),WS_VISIBLE|WS_CHILD,rc,this,100,0,0,0);
// Then  it is Resulting in Assertion in the above line
if (!blnSuccess)		
{		return FALSE;		}
}


Any Suggestions would be helpful

Thanks




Today is a gift, that's why it is called the present.

QuestionATL Object having event Pin
godspeed12324-Jan-07 12:35
godspeed12324-Jan-07 12:35 
AnswerRe: ATL Object having event Pin
Roger Stoltz24-Jan-07 21:07
Roger Stoltz24-Jan-07 21:07 
QuestionI can't see ListView Control.what's the problem ? Pin
shuaicarr23-Jan-07 14:39
shuaicarr23-Jan-07 14:39 
AnswerRe: I can't see ListView Control.what's the problem ? Pin
Michael Dunn23-Jan-07 15:37
sitebuilderMichael Dunn23-Jan-07 15:37 
AnswerRe: I can't see ListView Control.what's the problem ? Pin
Alain Rist24-Jan-07 0:16
Alain Rist24-Jan-07 0:16 
Answeri called AtlInitCommonControls() .and set proper styles. Pin
shuaicarr24-Jan-07 1:24
shuaicarr24-Jan-07 1:24 
AnswerRe: i called AtlInitCommonControls() .and set proper styles. Pin
Alain Rist24-Jan-07 8:54
Alain Rist24-Jan-07 8:54 
QuestionWTL compile problems Pin
damir_tk20-Jan-07 1:21
damir_tk20-Jan-07 1:21 
QuestionVBScript code to extract Window title Pin
B.L.Praveen17-Jan-07 1:12
B.L.Praveen17-Jan-07 1:12 
QuestionRedrawing problems while using ATL Dialog and Bitmaps Pin
rknrajesh15-Jan-07 22:50
rknrajesh15-Jan-07 22:50 
QuestionOutlook Toolbar Pin
_AnsHUMAN_ 15-Jan-07 22:34
_AnsHUMAN_ 15-Jan-07 22:34 
AnswerRe: Outlook Toolbar Pin
Laxman Auti30-Jan-07 22:18
Laxman Auti30-Jan-07 22:18 
Questionsubclassing without resource Pin
merlinos15-Jan-07 11:12
merlinos15-Jan-07 11:12 
AnswerRe: subclassing without resource Pin
prasad_som15-Jan-07 19:12
prasad_som15-Jan-07 19:12 
GeneralRe: subclassing without resource Pin
Jörgen Sigvardsson15-Jan-07 21:14
Jörgen Sigvardsson15-Jan-07 21:14 
GeneralRe: subclassing without resource Pin
prasad_som15-Jan-07 21:31
prasad_som15-Jan-07 21:31 
AnswerRe: subclassing without resource Pin
Jörgen Sigvardsson15-Jan-07 21:14
Jörgen Sigvardsson15-Jan-07 21:14 

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.