Click here to Skip to main content
       

COM

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page  Show 
QuestionHow to get INTERFACEDATA from ITypeInfo?membermasterhe11 Nov '12 - 3:50 
Hi!
I want to edit a exists interface,so I need get INTERFACEDATA from ITypeInfo for edit.But I don't know how to do it.
Can you help me?
Thanks.
QuestionHow to add a bar in the bottom of Windows Explorer(not IE)?memberohsorry9 Nov '12 - 16:07 
Sorry, my English sucks, I hope I can express clearly.i want to add a bar to the windows explorer,after a long time searching,i'v made a bar using BandObjectsLib(a C# library) and added it in to the Explorer window.but i have to open it through "Menu-View-Explorer bar",and the bar also came out in IE :<.my question is how to make it opened automaticly when Windows Explorer is opend.Or any other way to do this,i want to add a big horizontal bar actually a region in the bottom (or somewhere else) of Windows Explorer,so i can put my code and usercontrols into it.i use C#,vs2012,windows 7.thank you!
AnswerRe: How to add a bar in the bottom of Windows Explorer(not IE)?mvpRichard MacCutchan9 Nov '12 - 23:29 
Please do not post the same question in multiple forums.
One of these days I'm going to think of a really clever signature.

Question.NET COM component to replace existingmembercjb1108 Nov '12 - 6:59 
I've just been handed the task of replacing an existing COM component.
It has to stay as a COM component as we have no ability to change the caller.
It has to able to call a COM component, that again we can't alter. i.e. where changing the middle part of an existing process and have to do so transparently.
 
I've been doing some background research, and it looks like I can create a .NET COM component easy enough. Thumbs Up | :thumbsup: I've got a few q's though.
 
When you create the COM interface and class they have GUID's, do these GUID's have to match the existing COM component? Or is it when the caller makes the COM call the OSConfused | :confused: determines the component based on name?
 
Another requirement is that the final COM call is 'dynamic' in that the method name we have to call might change, assuming the method will act on the same data is this doable?
AnswerRe: .NET COM component to replace existingmembermanoranjan20 Nov '12 - 5:56 
To differentiate between various COM components and Interfaces, GUIDs have to be unique. They should not match other COM components.
 
Didn't understand your requirement of "final COM call is 'dynamic'"
GeneralRe: .NET COM component to replace existingmembercjb11020 Nov '12 - 9:17 
Thanks,
 
Regarding the last bit, I have to call another third-party COM component. But as the third-party app might be replaced, if possible I'd like to be able to configure the name of the component and method called? (assuming the new and old method are similar in parameters etc)
GeneralRe: .NET COM component to replace existingmembermanoranjan20 Nov '12 - 17:03 
There are two scenarios:
 
1. Replace the 3rd party COM component and consequently use a different COM Interface (with a different signature).
 
This scenario is independent of COM programming. I would use Adaptor design pattern for this problem.
 
2. Replace the 3rd party COM component but use same COM Interface (i.e. the Interface's GUID is same).
 
In this case there will be no change in your program. All you need to do is to unregister the old COM server and register the new COM server.
QuestionEnumeration of implemented interfaces [modified]member_Kel_22 Oct '12 - 6:30 
Using C++ I want to discover which interfaces can be obtained from calls to QueryInterface() off a given COM interface I didn't write in the first place.
 
This old and brief CodeProject article seemed to provide a solution:
How to find the name for interfaces implemented by a COM object[^]
 
But its code fails to find interfaces that I know to be supported for sure.
I have only superficial knowledge of COM and could use the advice of experts.
 
Thanks in advance.

modified 22 Oct '12 - 12:42.

GeneralRe: Enumeration of implemented interfacesmember_Kel_10 Dec '12 - 23:32 
I suppose there's no COM expert around right now Smile | :)
By the way:
 
*bump*
 
I still need help on this. Thanks.
GeneralUsing Open MPI and CUDA in Windows 7memberSijo Mathew17 Sep '12 - 23:40 
I am trying to run a Simple CUDA program which queries the numbers of GPUs in the nodes using Open MPI v1.6.1 (64 bit) in Windows 7 Professional 64 bit Machines. When I run the application in root node, the correct GPU count is getting. But when the same application is tried to run in different nodes remotely using Open MPI, the GPU count is getting as 0, ie, it is showing as No CUDA capable GPU is present in the node.
 
The root and the nodes having Compute Capability 2.1 capable GPUs. I have built the code with CUDA 4.2. When a normal MPI application is running, it is working correctly.
 
Is there any special settings required for running a CUDA application in Windows 7 using Open MPI v1.6.1?

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   


Advertise | Privacy | Mobile
Web04 | 2.6.130523.1 | Last Updated 16 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid