com

iTunes COM interface

Hi. I would like to be able to control iTunes with python. I know this is possible and I successfully tested some examples I have seen here at stackoverflow and in other sites, too. However, I would like to read the documentation about this. I have registered in Mac Dev Center, and when try to access the [link] where the docs are, but ...

Cross User COM Interop

I am using a third party database. A host application runs the database, and allows client applications to connect to the server app over COM. I am running Windows 2003 Server, and writing all of my code in C#. On the server, I login as UserA, and am able to launch the host application locally, and then run a client app that I have writ...

creating COM object in Vista- error

Is there special security settings needed for a server side VB script to create a COM object on Vista (64 bit, Enterprise) ? The COM object (a DLL) is registered. THanks, ...

How to find out which threading model a DLL was built with?

Hello Writing a ASP.NET website, we have a lot of legacy components we need to rely on. My view is that because we are MTA (Multi Threaded Apartment) in ASP.NET, if we use a STA component then the requests will queue. So even if we use a .NET component which is MTA, if IT relies on an old STA component, this will still queue. Am I ri...

ASP.NET and STA COM objects

Hello Looking to settle an argument here. All the stuff I've read on using a COM object created in VB from an ASP.NET page is surrounding with WARNING - MAKE SURE YOU PUT ON ASPCOMPAT OR IT WON'T WORK http://books.google.co.uk/books?id=-sjg09Crh40C&lpg=PA771&ots=g-vqDun9TR&dq=asp.net%20c%23%20sta&pg=PA771#v=onepage&am...

Get drag & drop to work in WPF which already works in Windows Forms

I am trying to use this function from a COM API which enables the window to receive drops (as in drag & dop) from another application. It is pretty straightforward in Windows Forms and works: public void EnableDropSupport(System.Windows.Forms.Form form) { IntPtr hwnd = form.Handle; _comAPI.RegisterDropWindow((int)hwnd); } But I...

CreateDispatch causes Vista to get all twitchy

I am creating an instance of word by calling CreateDispatch("Word.Application"). This works fine except in Vista it causes the dialog about the server being busy to come up and you have to keep hitting the "switch to" button several times. Each time you do it pops up the start menu until it finally opens word. Anybody know why and if the...

how to read and pass the variables from xml file to php script

How can i read and pass the variables which are coming in through an xml file as an input to a php file ? Scenario is my COM object pulls data from an application, i need to pass this information to a php script. How can i do this ? Can i use xml to pass this info to a php file which is called by initiating a web browser. Any inputs wi...

Get FileNotFoundException error when call a ActiveX in SSIS script task

I need call a ActiveX in my SSIS package, so I use script task and write the following C# script: public void Main() { clsAptFdbReader objFdbReader = new clsAptFdbReader("UnitedStates20000830.fdb"); objFdbReader.OpenFdb(false); Dts.TaskResult = (int)ScriptResults.Success; } Get a error: Error: System.Reflection.Targe...

Using COM object from C++ that in C#.NET returns object []

I have a COM object that I'm trying to use from C++ (not .NET), and all of the example programs and manual are written assuming the use of C#.NET or VB.NET. COM is new to me so I'm a bit overwhelmed. I'm using #import on the TLB but am struggling to deal with the variants that are used as parameters. I have one particular method, that ac...

Not able to find classids and interfaces ids in registry.

I am trying to debug some exe in windbg. Now its calling some thirdparty com dll which is exposing DLLGetClassObject function. DLLGetClassObject signature is HRESULT __stdcall DllGetClassObject( __in REFCLSID rclsid, __in REFIID riid, __out LPVOID *ppv ); Looking at stack trace and arguments I can find out the class id and...

Create a playlist in iTunes with COM and Java

How do I create a playlist in iTunes from Java, using COM (on windows i.e. no AppleScript)? I have found a library here that does most of what I need, and I have added some code to ITPlaylist.java, to call the "AddTrack" method (mentioned in the docs) on the iTunes object ITPlaylist : public void addTrack(ITTrack track) { ITPlayli...

deployment strategy on .NET app that uses COM objects

Hi guys, I have a question regarding the deployment strategy on a .NET app. In my app, I'm using DSO (decision support objects), it's a COM dll that is used to access an Analysis Services Server (version 2000). I've referenced the COM from the solution, and Visual Studio (actually the tool behind) nicely created a .net assembly that w...

How to troubleshoot "Property value is invalid. Make sure the value is typed correctly."?

I'm calling a COM library from .NET through a interop assembly and getting the following error: System.Runtime.InteropServices.COMException(0x80040200): Internal error (ADODB.Connection, -2147467259, Property value is invalid. Make sure the value is typed correctly.) I have a test and a production version of the same external system. W...

ImpersonateLoggedOnUser and starting a new process that uses ocx fails.

I write a c++ windows application (A), that uses LogonUser, LoadUserProfile and ImpersonateLoggedOnUser to gain the rights of another user (Y). Meaning the A starts using the user that is logged on on the workstation (X). If the user wants to elevate his rights he can just press a button and logon as another user without having to log hi...

Application Framework Compatibility Issues and COM/Webbrowser Controls

SetOleClientSite() is not working as intended (*doesn't call IDispatch_Invoke_Handler()*) when enable "Application Framework" in VB.NET 3.5 We created a test example exact same code. When we enable "Application Framework" IDispatch_Invoke_Handler works when we disable, it doesn't. There is no mention of COM incompatibility of similar i...

VB.NET/COM Server code way slower than Excel VBA code

Background I have a client who needs Excel VBA code that produces formula values moved to VB.NET. He is in the business of providing financial analytics, in this case delivered as an Excel add-in. I have translated the VBA into VB.NET code that runs in a separate DLL. The DLL is compiled as a COM Server because, well, Excel-callable .NE...

Word Automation and the Running Object Table

I am using the ROT to find any active MSWord instances. In some versions of word the document does not get registered in the table, instead it is registered as the NORMAL template and so I can not find the document by it's title as documented by microsoft. Anyone know of a hotfix for this? ...

Trying to manipulate MS Word bookmarks using PHP and COM

I'm trying to manipulate some fields in a supplied Word 2003 document using the document's own bookmarks using PHP and COM but am getting an error which ever method that I use. If I try to call the Bookmarks directly to substitute the text I get an error: The range cannot be deleted. function testBkMrkDetails($word, $bookmarkName, $sub...

how can i host activex control to web form (asp.net)

I have an activeX control and i need to work with it in web form in asp.net ...