I'm trying to call this COM method:
Public Function DoSomething(ByRef StringStuff As Variant, **ByRef Out_Data As Variant**) As Boolean
Out_Data gets defined and populated in the method body as an ADODB.Recordset (2.6).
I've tried several different ways I can think of, but still can't seem to get that recordset object out, or in for...
Hi,
I'm at my wit's end with this. What I'm doing is making a C# dll file that needs to have some methods exposed to FoxPro 8. This guy here http://www.west-wind.com/presentations/VfpDotNetInterop/DotNetFromVFP.asp says that you can put [ClassInterface(ClassInterfaceType.AutoDual)] in front of the (C# in my case) class, and then intell...
Hello,
I am doing some COM related things with directshow such as:
typedef CComPtr<IBaseFilter> AutoIBaseFilterPtr;
map<CString, AutoIBaseFilterPtr> _filterMap;
To store a list of directShow related com objects and their friendly name.
After finding this article (See:Problem 2) on how changes in VC10 compiler might effect previous...
I want to encode an audio file (e.g. pcm wav) in music quality (wma, mp3, ogg, but not speex) using any in windows (xp, vista, windows 7) availble objects.
Is any com objects (like windows media) available without an additional installation?
Is there any examples how to use them to encode an audio?
...
I have a COM library I should use in my ASP.NET MVC application. However I am unsure about its thread apartment model. How can I determine it?
...
Can I invoke an option on a COM Add-in from a VBA macro in Word or Excel 2007? The COM Add-in was written using VSTO – it adds a custom ribbon tab with a number of options that I want to execute from a VBA macro.
I can reference the add-in using Application.COMAddIns("MyAddinName") but I can’t find an option to invoke an option.
I’ve a...
I have several dozen objects exposed through COM interfaces, each of which with many methods, totaling a few hundred methods. These interfaces expose business objects from my app to a scripting engine.
I have been given the task of protecting every single one of these methods from exceptions being thrown (to catch them and return an er...
Hello everybody. We are developing a library in C# that communicates with the serial port. We have a function that is given to a delegate. The problem is that we want it to be run in a different thread.
We tried creating a new thread (called DatafromBot) but keep using it as follows (first line):
comPort.DataReceived += new Ser...
We have the following interface:
[object, uuid("uuidhere"), dual ]
interface IInterface : IDispatch
{
[id(1), propget] HRESULT CoolProperty( [out, retval] BSTR* result );
}
Now there's a minor problem. On one hand the parameter is "out" and so any value can be passed as input, the parameter will become valid only upon the successf...
Updated: please see this other thread instead, all this COM stuff is not part of the problem.
One of our apps has a COM interface which will launch a dialog, e.g:
STDMETHODIMP CSomeClass::LaunchDialog(BSTR TextToDisplay)
{
CDialog *pDlg = new CSomeDialog(TextToDisplay);
pDlg->BringWindowToTop();
}
For some reason when the COM m...
I'm a complete newbie to Windows and COM programming, trying to use com4j in order to call a COM object from Java.
Com4j generates Java interfaces from COM definitions "often found in .ocx, .dll, .exe, and/or .tlb files" . It was easy for me to locate the .ocx file of my target COM object, but I have no clue regarding the standard inte...
I'm making a COM interface that c# will be using, however i am wondering how i am to check for errors for exception handling on the c# end. As at the moment i am just returning a HRESTULT or bool for most methods and then doing a Marshal.ThrowExceptionForHR but several things can go wrong in some of these methods and returning a E_FAIL ...
How does the use of components in .NET differ to pre-.NET?
Are the differences as follows?
.NET components don't have to be centrally registered on a machine and can merely be invoked at run-time from a specified location
if .NET components are 'registered' in the GAC, problems associated with different versions of the same DLL ("DLL ...
Hello,
This is a question about DirectShow IEnumMoniker.
Out of some reason, I have to know "what kind of order" IEnumMoniker enumerates items.
(I mean, it's alphabetically or...?)
The following pages are documents about IEnumMoniker, however, it doesn't mention about this :
http://msdn.microsoft.com/en-us/library/ms692852(v=VS.85).a...
hi,
I'm developing a COM dll which is an add-in to MSoffice. Since I'm not creating any logs within add-in I would like to add a crash report generator into my add-in.
Hopefully 'Minidump' would be the best choice, but I have never use Minidump inside a COM object.
I appreciate if somebody can point out possibilities of creating such ...
Hi!
I have a COM object embeded in ASP.NET page using <object classid="clsid:XXX...">. It works in IE 32 bit, but does not work in IE 64 bit - can't access its functions. There are no error messages, no event logs where I can get some information.
The dll is in C#, includes COM visible class, compiled for Any CPU (though I also tried x...
using
System.Type type = System.Type.GetTypeFromProgID("VisualStudio.DTE.9.0");
i can get hold of the type for an instance of Visual Studio. My question is where was it specified that the type of Visual Studio 2008 instance is "VisualStudio.DTE.9.0".
Can any one direct me how to find it using Ole/Com viewer. I believe the ProgId can ...
I'm trying to write a Windows Explorer thumbnail handler for our custom file type. I've got this working fine for the preview pane, but am having trouble getting it to work for the thumbnails.
Windows doesn't even seem to be trying to call the DllGetClassObject entry point.
Before I continue, note that I'm using Windows 7 and unmanage...
I have the task of maintaining an application that started life as a VB6 app and has been migrated up to .NET 3.5. This app contains several third-party COM controls, one of which is the Shersoft ActiveListBar control. I'm trying to get a couple new programmers set up to edit this project and we're running into a licensing issue and a po...
I'm currently automating an application at work using COM, and have an issue where anyone using my application has a problem if the original application is already open when my application runs. I know how to locate the process if it's open, but instead of having to worry about closing it, or working around it, etc., I want to try to use...