Click here to Skip to main content
15,905,679 members
Home / Discussions / COM
   

COM

 
GeneralhWnd in COM Question. Pin
Matt Gates11-Nov-03 15:24
Matt Gates11-Nov-03 15:24 
GeneralRe: hWnd in COM Question. Pin
Heath Stewart11-Nov-03 19:25
protectorHeath Stewart11-Nov-03 19:25 
GeneralRe: hWnd in COM Question. Pin
Matt Gates12-Nov-03 1:39
Matt Gates12-Nov-03 1:39 
GeneralRe: hWnd in COM Question. Pin
Heath Stewart12-Nov-03 3:05
protectorHeath Stewart12-Nov-03 3:05 
GeneralRe: hWnd in COM Question. Pin
Matt Gates12-Nov-03 14:06
Matt Gates12-Nov-03 14:06 
GeneralCAxDialogImpl Pin
Abhishek Srivastava12-Nov-03 17:19
Abhishek Srivastava12-Nov-03 17:19 
GeneralRe: CAxDialogImpl Pin
Matt Gates13-Nov-03 13:25
Matt Gates13-Nov-03 13:25 
GeneralRe: CAxDialogImpl Pin
dharani13-Nov-03 17:12
dharani13-Nov-03 17:12 
Hello Srivastava
Thanks a lot for ur help . I am doing a outlook addin project which i found from the cp site http://www.codeproject.com/com/outlookaddin.asp?target=office2k
and when we execute and register we get two buttons added to the outlook's bar . when we click it we get a message box only . so i need to add a dialog so i found ur reply to a person demanding the same thing ...i did derive a calss from CDialog and tried to DoModal() it but it simple did not work so i looked into ur advise and did the following...
Insert new ATL --> Miscelaneous --->Dialog ...simply here i gave a new dialog class name and got a dialog class derived from CAxDialogImpl ..and i did the following ...
added a memeber of this class
Cnewdailog :public CAxDialogImpl
and
in the CAddin class
i addeed
Cnewdialog *dlg;

and in the OnButtonClick() of cpp file
{
dlg=new Cnewdialog();
HWND hwnd = ::GetActiveWindow();
dlg->DoModal(hwnd,NULL);

} ...now superb when i click the addin buttons on the outlook 's bar i get this dialog fired ...but the problem is i am not able to add members to the controls of the dialog ...coz i want to get some user name , password to be retrived from the dialog so that i could use them to check against a DB table ...but simple i am not able to use thye classwizard to get memebrs for dialog's controls as we do it normal MFC apps ...but my app is ATL COM with MFC support ...so to be precise i have three edit boxes in the CAxDialogImpl dilaog box ( cnewdialog) ...these three's valuses are to be retrived from the control when we DoModal()==IDOK ...ok so please help me out how i could do it ...
thanks a lot
withregards
dharani

GeneralRe: CAxDialogImpl Pin
Abhishek Srivastava13-Nov-03 17:29
Abhishek Srivastava13-Nov-03 17:29 
GeneralRe: CAxDialogImpl Pin
dharani13-Nov-03 17:54
dharani13-Nov-03 17:54 
GeneralRe: CAxDialogImpl Pin
Abhishek Srivastava13-Nov-03 18:36
Abhishek Srivastava13-Nov-03 18:36 
GeneralRe: CAxDialogImpl Pin
dharani13-Nov-03 19:04
dharani13-Nov-03 19:04 
GeneralRe: CAxDialogImpl Pin
Tomaz Rotovnik21-Nov-03 2:42
Tomaz Rotovnik21-Nov-03 2:42 
GeneralRe: hWnd in COM Question. Pin
Heath Stewart13-Nov-03 2:54
protectorHeath Stewart13-Nov-03 2:54 
GeneralRe: hWnd in COM Question. Pin
Prakash Nadar14-Nov-03 3:12
Prakash Nadar14-Nov-03 3:12 
GeneralRe: hWnd in COM Question. Pin
Anonymous17-Nov-03 22:07
Anonymous17-Nov-03 22:07 
GeneralDTE.LaunchWizard() Pin
RockHard PartyNipples11-Nov-03 8:25
RockHard PartyNipples11-Nov-03 8:25 
GeneralIIS mime Type Pin
fenil jacob10-Nov-03 23:38
fenil jacob10-Nov-03 23:38 
GeneralRe: IIS mime Type Pin
Vi211-Nov-03 19:21
Vi211-Nov-03 19:21 
GeneralCoGetClassObjectFromURL Pin
JOG10-Nov-03 14:35
JOG10-Nov-03 14:35 
QuestionCan the operator be overloaded in ATL and how? Pin
sqwang10-Nov-03 13:42
sqwang10-Nov-03 13:42 
GeneralDllMain issues Pin
Matt Gates7-Nov-03 17:51
Matt Gates7-Nov-03 17:51 
GeneralRe: DllMain issues Pin
MultiThread8-Nov-03 7:17
MultiThread8-Nov-03 7:17 
GeneralRe: DllMain issues Pin
Matt Gates9-Nov-03 12:06
Matt Gates9-Nov-03 12:06 
GeneralCOM+ proxy application problem Pin
Member 7638697-Nov-03 4:54
Member 7638697-Nov-03 4:54 

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.