Click here to Skip to main content
15,911,785 members
Home / Discussions / COM
   

COM

 
GeneralUsing FoxPro COM in Asp.Net Pin
BCKY17-Jun-05 13:41
BCKY17-Jun-05 13:41 
Generalget IE caret position (x,y) Pin
17-Jun-05 4:58
suss17-Jun-05 4:58 
GeneralAccess Violation in Release of COM+ object in Release Version Pin
ameysp16-Jun-05 20:01
ameysp16-Jun-05 20:01 
GeneralRe: Access Violation in Release of COM+ object in Release Version Pin
GuimaSun23-Jun-05 9:53
GuimaSun23-Jun-05 9:53 
GeneralRe: Access Violation in Release of COM+ object in Release Version Pin
ameysp23-Jun-05 23:27
ameysp23-Jun-05 23:27 
GeneralAdd RTP filter Pin
mausot16-Jun-05 0:43
mausot16-Jun-05 0:43 
GeneralHelp with IDropTarget Interface really needed Pin
Jim Parsells15-Jun-05 17:29
Jim Parsells15-Jun-05 17:29 
GeneralManipulate CWnd-derived object in ActiveX Control Pin
dhamilton15-Jun-05 12:15
dhamilton15-Jun-05 12:15 
I have a custom ActiveX control that serves as a container for a store-bought ActiveX control. My problem is that I need to access the properties and methods of the store-bought control (call it an instrument) from the parent application.

The sequence of events is that the parent application creates instances of my container (basically just a jazzy group box) and then sends a message telling my group box which instrument to create. This works fine, but now I need to "control" the instrument.

I have successfully gotten an IDispatch* for the instrument and returned it to the parent application, but I see no clean way to invoke methods or set properties on the instrument. The issue is that I want to make legible calls of the form
(Instrument*)p->InstrumentMethod(). I have found no way to avoid some horiffic canned mapping of the numeric DISPID's of the instrument. The main application is extremely large, and legibility and maintainability will go to zero if I have to use Invoke() instead of just calling the instrument method.

As an alternative, I have tried to pass a CWnd* property, but I have two worries about this. First, I see no obvious way (other than trickery) to pass a CWnd* as a COM Property. Second, I am highly doubtful that the CWnd* will be valid throughout the lifetime of my group box.

HHHEEEEEEEEEEEEEEEEEEEEELLLLLLLLLLLLLLLLLLLLLLLLLLLLPPPPPPPPPPPPPPPPPPPPPPPPPPP!

Regards,

David Hamilton
GeneralRe: Manipulate CWnd-derived object in ActiveX Control Pin
dhamilton17-Jun-05 6:57
dhamilton17-Jun-05 6:57 
GeneralSharing Memory between two components with MapViewOfFile... Pin
metal_rob15-Jun-05 5:17
metal_rob15-Jun-05 5:17 
GeneralRe: Sharing Memory between two components with MapViewOfFile... Pin
GuimaSun23-Jun-05 9:45
GuimaSun23-Jun-05 9:45 
GeneralIPropertyBag who knows?! Pin
Member 115323814-Jun-05 22:29
Member 115323814-Jun-05 22:29 
GeneralRe: IPropertyBag who knows?! Pin
User 21559722-Jun-05 4:50
User 21559722-Jun-05 4:50 
GeneralIPropertyBag who knows?! Pin
Member 115323814-Jun-05 22:28
Member 115323814-Jun-05 22:28 
GeneralStrange ActiveX behaviour. Pin
Jan van den Baard13-Jun-05 8:09
professionalJan van den Baard13-Jun-05 8:09 
Generalactivexscripting Pin
dittygrail12-Jun-05 23:08
dittygrail12-Jun-05 23:08 
GeneralBSTR Pin
pardis11-Jun-05 20:20
pardis11-Jun-05 20:20 
GeneralRe: BSTR Pin
User 21559713-Jun-05 3:44
User 21559713-Jun-05 3:44 
GeneralRe: BSTR Pin
Lim Bio Liong13-Jun-05 23:44
Lim Bio Liong13-Jun-05 23:44 
GeneralRe: BSTR Pin
Get.Well14-Jun-05 1:57
Get.Well14-Jun-05 1:57 
GeneralLooking for Excel ver.9 type library (and how to make it work!) Pin
minette9-Jun-05 3:58
minette9-Jun-05 3:58 
GeneralCopy data to spread sheet component from excel file Pin
Member 20313358-Jun-05 22:34
Member 20313358-Jun-05 22:34 
GeneralCapturing ActiveX events Pin
Haroon8-Jun-05 19:51
Haroon8-Jun-05 19:51 
GeneralSending User Defined Types over COM Interface Pin
ChemmieBro8-Jun-05 4:53
ChemmieBro8-Jun-05 4:53 
GeneralRe: Sending User Defined Types over COM Interface Pin
Andy Moore8-Jun-05 11:06
Andy Moore8-Jun-05 11:06 

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.