I have written a plugin for ESRI ArcEditor that runs some validation checks on a road network. To check if the rules are all satisfied, it basically does a whole bunch of different intersects, with some buffering and envelopes etc. on the selected features.
It has been written in C#.
Now what I am noticing is that it really takes a lon...
What is better, the using directive, or the dispose directive when finished with an object?
using(FileStream fileStream = new FileStream(
"logs/myapp.log",
FileMode.Open,
FileAccess.Read,
FileShare.ReadWrite))
{
using(StreamReader streamReader = new StreamReader(fileSt...
Trying to understand What is IConnectionPoint and how this is connected to IConnectionPointContainer,IEnumConnectionPoints,IEnumConnections and EventHandling.
Read the artcicles from MSDN and CodeProject which is explaining a about other methods like: QueryInterface() and otherthings.
I am unable to figure out how all these things(ICo...
Hi,
I need a component (.NET or COM) which can plays video frame by frame.
I've tried wmp.dll (axWindowsMediaPlayer) but no luck on playing frame by frame.
any suggestion?
...
Hello,
Am facing quite a nagging problem from quite sometime. The entire process is described below and please let me know what I am doing wrong:
I have a VC++ project, say, "MyVC++Project" which references a third party dll named "thirdparty.dll". I am concerned about calling two methods from the dll, namely a.)::Validate(), which va...
I want to raise an event from a .NET class, and receive this event in Silverlight code (out-of-browser, using the COM interop support added in SL4).
Can anyone point out the problem in my code? Do I maybe need to do more attribute-decorated interface boilerplate to get this working?
Code:
Rather than write native COM code, I am writin...
I'm trying to get the Registration-Free Activation of COM Components: A Walkthrough sample from Microsoft to run on a windows 7 Professional / 64bit machine. I've downloaded the demo program MSDNRegFreeCOM.msi.
I have it building and running correctly on my XP-32 dev box using VS2008SP1. But when I copy working 32bit demo program to m...
Hi! I'm having some 64-bit issues. Here's the scoop:
I have 32-bit COM exe (written in FoxPro). This exe invokes a 32-bit COM dll (also written in FoxPro). In the 32-bit Windows world, the dll is placed in C:/Windows/System32 directory, registered with C:/Windows/System32/regsvr32.exe and all is well. The exe can be launched and an...
Ok so this is a really complicated problem, I will try my best to explain.
We have a c++ application which communicates with Sql Connection like so:
CoCreateInstance(_T("ADODB.Connection"))
This works fine.
We recently made all of our backend code into a Com Object. If I write a Vb program to load our Com Object and do some database...
I have a C++ activex control that I need to make an installer for. It needs to drop the dll and make some registry keys.
I have about 6 .RGS files which I made for self-registration via regsvr32, which work.
To do an installer I am manually porting the RGS scripts into the visual studio 2008 windows installer registry GUI. I feel like ...
My understanding is that as soon as .NET fires up the RCW to access a COM object, the security credentials are persisted within the COM context until the .NET application is closed... thereby preventing the use of different credentials later on during execution.
There is a RCW wrapper on Codeplex that I think will allow me to take a giv...
I've created a simple type library with an interface which has an indexed property in it:
[
uuid(EAC3FABB-2A00-4A91-BF80-F0CE394A648F),
dual,
oleautomation
]
interface MyInterface1: IDispatch
{
[propget, id(0x000000C9)]
HRESULT _stdcall Property1([in] VARIANT Index, [out, retval] short* Value);
[propput, id(0x000000C9)]
HR...
Hello,
We are migrating our applications from Windows Server 2003 to Windows Server 2008 R2. I am facing some issues with the migration.
I have deployed many COM+ components (32 bit) and DCOM components (32 bit) in the Windows Server 2008 R2. These COM+ and DCOM components are VC++ code.
I have a .net 3.5 service 32 bit deployed in th...
Before the application terminates its
execution, COM must be shut down
again. (Failure to shut down COM could
result in execution errors when
another program attempts to use COM
services .)
The above quote implies that,right?
...
I would like to pass a COM object created in the main thread of my C++/MFC8 program to a different thread, and leave all synchronization to COM. Using CoMarshalInterThreadInterfaceInStream works -- until the user opens a modal dialog. While the dialog is open, apparently all marshalling messages are rejected, which I sort of understand b...
I am trying to attach an image to an email via Microsoft Outlook's COM interface and the com4j library:
_Application application = ClassFactory.createApplication();
_MailItem mailItem = application.createItem(OlItemType.olMailItem).queryInterface(_MailItem.class);
Attachments attachments = mailItem.attachments();
attachments.add("C:\\...
Hi,
Would anyone know how to properly hide classes, methods and properties from intellisense while preserving the ability to call them; and so they do not appear in interop assemblies that are generated from a type library?
I'm writing API hooks for automated testing we don't want exposed to consumers yet. This appears to work well from...
I have a question about accessing COM objects remotely. Currently I am using JACOB to connect our custom COM server (exe) and it works really well. However we are trying to separate the Java code from the COM server and place them on separate machines. JACOB doesn't support DCOM. So I wanted to know is this possible with com4j? If so can...
Is there a way to get the URL of a podcast or iTunes U stream that's playing straight from the iTunes Store? I try CurrentTrack.URL and it gives me a blank for Store streams, whereas it gives a working URL for "Radio" streams from the left sidebar:
IITTrack currTrack = m_iTunes.CurrentTrack;
string path = "";
if (currTrack.Kind == ITTr...
I have a Delphi application which reads data from an excel spreadsheet using code similar to the following:
procedure TForm1.Button1Click(Sender: TObject);
var
xlApp, xlWorkBook, xlWorkSheet, arr: Variant;
begin
xlApp := CreateOLEObject('Excel.Application');
xlApp.Visible := False;
xlWorkBook := xlApp.Workbooks.Open('C:\Temp\Bo...