Click here to Skip to main content
15,923,576 members
Home / Discussions / COM
   

COM

 
GeneralRe: How to put a struct into a VARIANT? Pin
Rory Solley30-Sep-05 4:10
Rory Solley30-Sep-05 4:10 
GeneralRe: How to put a struct into a VARIANT? Pin
Jörgen Sigvardsson3-Oct-05 6:22
Jörgen Sigvardsson3-Oct-05 6:22 
GeneralRe: How to put a struct into a VARIANT? Pin
Rory Solley3-Oct-05 22:20
Rory Solley3-Oct-05 22:20 
GeneralRe: How to put a struct into a VARIANT? Pin
morenz4-Oct-05 3:09
morenz4-Oct-05 3:09 
QuestionCustomizing IE Pin
babai27-Sep-05 20:52
babai27-Sep-05 20:52 
QuestionThorwing a event with a collection Pin
GizzoF27-Sep-05 7:53
GizzoF27-Sep-05 7:53 
QuestionMixing COM and non-COM property pages Pin
DolphLundgren27-Sep-05 5:03
DolphLundgren27-Sep-05 5:03 
GeneralRe: Mixing COM and non-COM property pages Pin
Jörgen Sigvardsson27-Sep-05 9:56
Jörgen Sigvardsson27-Sep-05 9:56 
DolphLundgren wrote:
How do you launch a mixed collection of both systems? (CPropertyPages with COM/ATL ones)

I don't know exactly how CPropertyPages work, so maybe what I'm about to suggest is just not doable. If so, then I appologize.

I suppose you could inherit a new class from CPropertyPage, in which you host the COM property page, and mediates between the COM interfaces (IPropertyPage and IPropertyPageSite) and the CPropertyPage interface.

What you need to think about when creating the COM property page is:
* Your class based on CPropertyPage must implement IPropertyPageSite
* After you've created the IPropertyPage object, call SetPageSite(this)
* Give the COM object to the prop page object by using SetObjects()
* Then call Activate(m_hWnd, rcTheRectangle, FALSE)
* Followed by Show(SW_SHOW) (I think this is necessary - I don't remember - you'll notice)

IPropertyPageSite is straightforward to implement. Please refer to the MSDN docs.

Call the prop page object's Apply() method when suitable (probably on some well defined OnApply()-event defined for CPropertyPage).

When you are closing down the CPropertyPage window, call the prop page object's Deactivate() method.

--
Keep talking! You're the fool, I'm the preacher.
QuestionDynamically switching between DLLs Pin
Divick26-Sep-05 20:41
Divick26-Sep-05 20:41 
AnswerRe: Dynamically switching between DLLs Pin
prasad_som26-Sep-05 21:18
prasad_som26-Sep-05 21:18 
GeneralRe: Dynamically switching between DLLs Pin
Divick26-Sep-05 21:28
Divick26-Sep-05 21:28 
GeneralRe: Dynamically switching between DLLs Pin
Divick27-Sep-05 20:47
Divick27-Sep-05 20:47 
GeneralRe: Dynamically switching between DLLs Pin
rwestgraham28-Sep-05 19:08
rwestgraham28-Sep-05 19:08 
QuestionActiveX Controls Pin
Ashwin kumar Gurujala26-Sep-05 18:14
Ashwin kumar Gurujala26-Sep-05 18:14 
QuestionITypeInfo - Method parameter names Pin
mpuerto26-Sep-05 15:55
mpuerto26-Sep-05 15:55 
AnswerRe: ITypeInfo - Method parameter names Pin
Lim Bio Liong27-Sep-05 0:24
Lim Bio Liong27-Sep-05 0:24 
GeneralRe: ITypeInfo - Method parameter names Pin
mpuerto27-Sep-05 11:38
mpuerto27-Sep-05 11:38 
QuestionMultithreaded COM Pin
tajbender25-Sep-05 9:52
tajbender25-Sep-05 9:52 
QuestionDesign Help Pin
dwh6324-Sep-05 18:51
dwh6324-Sep-05 18:51 
QuestionA Juicy COM Bug Pin
mango_lier24-Sep-05 13:57
mango_lier24-Sep-05 13:57 
GeneralRe: A Juicy COM Bug Pin
Jörgen Sigvardsson24-Sep-05 23:20
Jörgen Sigvardsson24-Sep-05 23:20 
QuestionExample of Custom marshelling in COM Pin
Bhargava Alanka24-Sep-05 2:00
Bhargava Alanka24-Sep-05 2:00 
QuestionChat application b/w web application Pin
irshad ali23-Sep-05 21:27
irshad ali23-Sep-05 21:27 
QuestionIphelper API Pin
Mukhan23-Sep-05 10:26
Mukhan23-Sep-05 10:26 
QuestionCOM Help Pin
amitgh22-Sep-05 20:11
amitgh22-Sep-05 20:11 

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.