Click here to Skip to main content
15,891,951 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralLsaLogonUser() + MSV1_0_LM20_LOGON Pin
choupani8-Jan-08 3:49
choupani8-Jan-08 3:49 
QuestionRe: LsaLogonUser() + MSV1_0_LM20_LOGON Pin
Rajesh R Subramanian8-Jan-08 21:44
professionalRajesh R Subramanian8-Jan-08 21:44 
GeneralRe: LsaLogonUser() + MSV1_0_LM20_LOGON Pin
choupani8-Jan-08 21:51
choupani8-Jan-08 21:51 
GeneralRe: LsaLogonUser() + MSV1_0_LM20_LOGON Pin
Rajesh R Subramanian8-Jan-08 22:02
professionalRajesh R Subramanian8-Jan-08 22:02 
GeneralRe: LsaLogonUser() + MSV1_0_LM20_LOGON Pin
choupani8-Jan-08 22:10
choupani8-Jan-08 22:10 
GeneralRe: LsaLogonUser() + MSV1_0_LM20_LOGON Pin
Rajesh R Subramanian8-Jan-08 22:15
professionalRajesh R Subramanian8-Jan-08 22:15 
GeneralRe: LsaLogonUser() + MSV1_0_LM20_LOGON Pin
choupani8-Jan-08 22:31
choupani8-Jan-08 22:31 
GeneralWorking with dynamically created dialog Pin
narayanagvs8-Jan-08 1:56
narayanagvs8-Jan-08 1:56 
Hi,

In a com component ,I took a dialog resource added a class
for it and even inserted an Activex Control on dialog
(with activex variable m_ctrlHMFAx).

I am creating the dialog dynamically as shown below

//pDialog initialized to NULL in the constructor of CMyWnd class
   pDialog = new CMyDialog();
   //Check if new succeeded and we got a valid pointer to a dialog object
   if(pDialog != NULL)
   {
      BOOL ret = pDialog->Create(IDD_MYDIALOG,this);
      if(!ret)   //Create failed.
         AfxMessageBox("Error creating Dialog");
      pDialog->ShowWindow(SW_SHOW);
   }


Now as my dialog is created I am trying to work with my
ActiveX variable as pDialog->m_ctrlHMFAx.AddItem(); but
it throws an assertion

when I debug I recognized that m_ctrlHMFAx is showing NULL
value.I tried creating the activex control dynamically in
OnInitdialog but no use.

I also placed AfxEnableControlContainer() in initinstance.
What could be the reason ? Any suggestions would be helpful.

Thanks
Satya

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

GeneralRe: Working with dynamically created dialog Pin
CPallini8-Jan-08 2:16
mveCPallini8-Jan-08 2:16 
QuestionRe: Working with dynamically created dialog Pin
David Crow8-Jan-08 3:13
David Crow8-Jan-08 3:13 
GeneralRe: Working with dynamically created dialog Pin
Hamid_RT8-Jan-08 18:14
Hamid_RT8-Jan-08 18:14 
Generalunexpected exception handler Pin
George_George8-Jan-08 1:46
George_George8-Jan-08 1:46 
GeneralRe: unexpected exception handler Pin
Matthew Faithfull8-Jan-08 7:27
Matthew Faithfull8-Jan-08 7:27 
GeneralRe: unexpected exception handler Pin
George_George8-Jan-08 16:29
George_George8-Jan-08 16:29 
GeneralRe: unexpected exception handler Pin
Matthew Faithfull8-Jan-08 21:50
Matthew Faithfull8-Jan-08 21:50 
GeneralRe: unexpected exception handler Pin
George_George9-Jan-08 2:29
George_George9-Jan-08 2:29 
Generalusing swap to make assignment operator exception safe Pin
George_George8-Jan-08 1:14
George_George8-Jan-08 1:14 
GeneralRe: using swap to make assignment operator exception safe Pin
CPallini8-Jan-08 2:03
mveCPallini8-Jan-08 2:03 
GeneralRe: using swap to make assignment operator exception safe Pin
George_George8-Jan-08 2:24
George_George8-Jan-08 2:24 
GeneralRe: using swap to make assignment operator exception safe Pin
CPallini8-Jan-08 2:33
mveCPallini8-Jan-08 2:33 
GeneralRe: using swap to make assignment operator exception safe Pin
George_George8-Jan-08 2:34
George_George8-Jan-08 2:34 
GeneralRe: using swap to make assignment operator exception safe Pin
CPallini8-Jan-08 3:14
mveCPallini8-Jan-08 3:14 
GeneralRe: using swap to make assignment operator exception safe Pin
George_George8-Jan-08 3:18
George_George8-Jan-08 3:18 
GeneralRe: using swap to make assignment operator exception safe Pin
CPallini8-Jan-08 3:30
mveCPallini8-Jan-08 3:30 
GeneralRe: using swap to make assignment operator exception safe Pin
George_George8-Jan-08 3:33
George_George8-Jan-08 3:33 

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.