|
DirectX contains non-COM interfaces such as ID3D10EffectType that are declared with DECLARE_INTERFACE...
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
Thanks! I just did some reading off the back of your reply and I see that MIDL is not used soley for COM operations but for RPC in general. I was not aware of that. Thanks for pointing me in the right direction.
|
|
|
|
|
Hello guys,
I would like to have a wrapper for Rcom server in C#. I do not know what a wrapper is or how to create it.
This is what i did and i do not know if i am right or wrong.
I opened a project in C# which is integrated to R, using two dll files and this is what i did:
Open Project -> References -> Add References -> COM -> RCOM 1.0 type library (located at library/rcom/libs/rcom_srv.tlb)
This creates a dll file in my system named Interop.RCOMServerLib.dll. Is this what is meant by the wrapper file. I have no clue, its just a wild guess. and if this is the right thing i am talking about then how can i view the content of the dll file to know what all functions it is using.
I need some help here.
Thanks,
SJ.
|
|
|
|
|
What is it that you're trying to do?
It could be that you're have an unmanaged COM component that you want to use in C#.
This is done using COM interop or also called P/Invoke.
You could also access a C# component or assembly from unmanaged code.
This is using a COM Callable Wrapper (CCW).
This is also called reverse P/Invoke.
The following link will help you -
COM Interop[^]
Exposing .NET Framework Components to COM[^]
|
|
|
|
|
This is what i wanted. A com wrapper, which can be interchangeable between programs and can be used to check what all functions that com can execute. if this is a dll file or tlb file then how can i open it or view it to know all the functions it will execute.
|
|
|
|
|
You can use OleView.exe for this.
This comes as part of the Windows SDK.
|
|
|
|
|
Thanks for the reply. Oleview.exe was not helping much in getting the classes and the functions that are being used in the dll file. So after searching for a while, i got hold of this software which clearly shows all the functions that are present.
.Net Reflector[^]
|
|
|
|
|
i want to create a website on which i want to open a pdf file at page load event so suggest me the what should i do???
|
|
|
|
|
|
how many ways a client can access com componet ?
ex, I have created a com comp(inproc) which is registerd and ready to use, i want my clinet to access this, what all the steps to be taken from my end (like what all info i need to give to them )and client side ?
thanks
|
|
|
|
|
You need to give them something which defines your components interface - the IDL you used to define the component interface is probably the best thing...
Or you might find that the DLL containing your component is all that's needed - COM components can store metadata (in a type library in the DLL) if they're derived from IDispatch.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
MVP for 2010 - who'd'a thunk it!
|
|
|
|
|
I'm familiar with 3 ways to access an in-proc COM component -
You can use the COM APIs like CoCreateInstance to access the component.
You can use #import to instantiate the COM component using its type library and also create smart pointers for all its interfaces.
You can use ATL smart pointer classes like CComPtr to access the COM component.
|
|
|
|
|
hi,
But before using coCreateInstance u need to know what all the interfaces and components avaiable, so that u can have CLSID and IID of the the component. Also if i am writting client pgm for a component , what should i do to know abt components before i call CoCreateInstance ??
Is there any way client can find details about ur component apart from importing typelib ??
thanks
|
|
|
|
|
A COM client must know what interfaces and methods the COM component implements.
If it does not, then why would it need to use it at all!!!
Usually this is documented by the creator of the COM component.
|
|
|
|
|
A Complete ActiveX Web Control Tutorial
|
|
|
|
|
Hi All;
I'm a long time VB 6.0 developer looking to update the look of my apps. I make extensive use of the ItemData property in the standard VB Combobox. What I need is a drop-in replacement that displays XP style dropdown buttons. Strangely, the scrollbar displays this way, but not the actual dropdown button. The biggie for me is that my application does lots of runtime control creation and such, so whatever I use should not have a huge performance hit (like the XPCTRLS.dll I came across today, that is sooooo slow, although it produces exactly the look I'm looking for, by magically making all standard controls look XP perfect in the background, it's just not practical for my apps. Having said that, it's really easy to implement - 4 or 5 lines of code and a reference to the dll.) Any recommendations will be very gratefully received. Thanks!
George 
|
|
|
|
|
Hello,
I need some help in order to solve a little,annoying problem-flickering.
I've built a Drawer, that works perfectly , but flickers alot,
the general idea is inserting each shape that the user wants to Draw into
a Drawing list and Draw the whole list in paint event each time.
In the last few days ,i've been reading articles about how to solve it,
I tried setting DoubleBuffer to true but it doesn't help at all.
I've seen some methods to stop the flicker in this web but i cant understand/use them.
I need something as simple as possible that of course works.
Thank you very much.
|
|
|
|
|
Question is not clear. Are you using GDI or GDI+? Is it a C++ application? May be you can post it in C/C++/MFC board.
|
|
|
|
|
Thank you,
I think it's GDI+,
it's in c#, CreateGraphics().
|
|
|
|
|
Hoping someone can be of help. I'm looking for a copy of the DSOFramer source code. MS pulled the download link citing incompatibility issues with Office 2007. I'm using v1.0 with reasonably good success with Word 2003 and Word 2007 and am looking for the latest version. Does anyone have a copy of the DSOFramer source they'd be willing to forward to me?
Thanks in advance -- Steve
|
|
|
|
|
Hi,
Can .NET wrappers be used as COM? If yes, how to do it?
Thanks,
|
|
|
|
|
transoft wrote: Can .NET wrappers be used as COM? If yes, how to do it?
This question is not clear, can you try and explain what you are trying to achieve?
|
|
|
|
|
After some researches. I found that this is implementable.
|
|
|
|
|
I am making calls from my C# client to COM server. One function of the COM server returns a VARIANT of safearray containing BSTRs. Another function of COM server removes/destroy the VARIANT from memory. After receiving the VARIANT as an "object" in the C# client and processing the information, I am trying to use the destroy function to remove the VARIANT permanently. Because of memory management in the Managed side, the unmanaged code fails to remove the VARIANT. I was hoping to use "fixed" keyword but it does not work with "object". Is there any possible approach to achieve this requirement?
Thanks for your help in advance.
|
|
|
|
|
You don't have to warry about a VARIANT of safearray which contains BSTRs
C# GC will destroy it by oneself
Or You can destroy it like obj=null.
|
|
|
|