Interop.WMPLib.dll And AxInterop.WMPLib.dll?

Dec 3, 2010

we developed an application. it has windows media player control.

Note 1:

2 DLL Files(Interop.WMPLib.dll And AxInterop.WMPLib.dll) is for Windows Media Player Control, and automaticly add by visual studio.

Note 2:

Visual Studio 2008 / .Net Framework 2.0 / Windows XP & Vista & 7

If use dlls for windows xp(Windows Media Player Control)

run app in windows xp = do not have any problem.

run app in windows vista and 7 we do not have media player control.

if use dlls for windows vista and 7(Windows Media Player Control)

app does not run in windows xp

and we do not have any problem in windows vista or 7.

View 4 Replies


ADVERTISEMENT

Could Not Load AxInterop.WMPLib.dll Because It Was Built In A Runtime Newer Than The Currently Loaded One

Sep 6, 2011

I am having another issue with WMP in VB.NET 2010.I wrote an app using WMP in VB.NET 2010, using .NET Framework 4.0 of course, but had to change the framework target to 3.5. After doing this, the WMP component does not work. How, if I even can, fix this problem so that the program will run on .NET Framework 3.5? The error says that it could not load AxInterop.WMPLib.dll because it was built in a runtime newer than the currently loaded one.

View 2 Replies

Axinterop.wmpLib.dll Works OK In Debug Build - Not OK In Release Build

Feb 15, 2012

I have a Form with a Media Player in it. Which plays a Song.

[Code]...

It's playing in the background since the Form is hidden. When I play itin Debug, everything works fine. When I run the app outside Debug, I get this error: [URL] The Music File is there, but strangely, there comes this weird error.

View 4 Replies

WMPLib.dll And Burning CDs

Feb 13, 2010

I am using Windows Media Player library (WMPLib.dll) in my application. I wanted to make CD Burning wizard, because WMPLib.dll has ability to burn audio/data CD's. I declared an object which can erase or burn CD:

Dim CDBurner As WMPLib.IWMPCdromBurn

Dim WMP As New WMPLib.WindowsMediaPlayer()

[CODE]...

I get exception with message "Attempted to read or write protected memory.". I have an option "Full Trust Application" enabled in Visual Sudio. Is there anything I can do about this error?

View 1 Replies

VS 2008 NullReferenceException - WMPLib.IWMPEqualizerSettingsCtrl

Aug 29, 2009

I'm trying to make a simple equalizer I have my windows media control and a trackbar, this is the code im using.

Private Sub TBGLevel_Scroll(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TBGLevel.Scroll
Dim equalizer As WMPLib.IWMPEqualizerSettingsCtrl
equalizer.gainLevel1 = TBGLevel.Value
End Sub

Upon moving the trackbar I get this error

NullReferenceException was unhandled Object reference not set to an instance of an object.

I also tried

Public equalizer As WMPLib.IWMPEqualizerSettingsCtrl

Same error occured.Basically i hit play so it would go through my playlist on the form then attempted to move that gainlevel and it produced the error.

View 5 Replies

WMPLib.dll Is Changing The Title Tag In MP3 Files

Jan 5, 2011

I am using Windows 7 64-bit and Visual Studio 2010 (VB.Net)

I am trying to write a media player using the wmplib.dll for playback. Everything is working but I found a one problem I can't find an answer to. How do you find the songs duration before actually playing the song? the code I am using is below.
I get an error when I try to update the slider with the current position. The messagebox returns all zeros. (i.e. 0 - 0 -0 ).

' SET FILE NAME
Dim sFile As String = "D:MusicSongsArtistsEaston Corbin�1-Easton Corbin�4 - The Way Love Looks.mp3"

[Code].....

View 5 Replies

How To Avoid Type Casting Exceptions When Using The Wmplib

Sep 7, 2011

Hmmmm having discovered that using the mciAPI doesn't utilise 5.1 sound, but using a virtual WMP does - I started a new approach to my multimedia project using some code from the net. BUT I keep getting exceptions (particularly with type casting). In the subrountine 'Player_PlayStateChange'.

The listing (see below) is now well commented by me. Can anybody please help concerning the damn annoying exceptions and stop me pulling my hair out.

[Code]...

View 9 Replies

C++ - Windows Media Player Device Sync In .NET Using WMPLIB?

Oct 26, 2009

The MSDN documentation for WMPLIB states that syncing to device is not supported in .NET programming, only C++.Is there, however, a simple wrapper class or DLL that can be used to interface between a .NET program and the nescessary C++ code?Or is there a better way to sync files to a device using VB.NET? Are all devices suited/compatible with just a simple filesystem.copyfile ?

View 1 Replies

Controlling Media Player In Visual Basic With VB WMPLib (or Other)

Apr 5, 2011

I need to get the current song in Windows Media Player, preferably using the wmp.dll library. There's documentation on MSDN [URL] but none of the resources I've tried have worked, even though I referenced the DLL and imported. Note that I'm using Visual Basic 2010 Express

View 1 Replies

Iterating A WMPLib.IWMPPlaylist Displays Empty Rows In VB 2010 Express?

Oct 1, 2010

When I iterate the media items in a Windows Media Player playlist and set the properties of a user-defined class to the attributes of a media item, the first n rows of the playlist are populated with useful information; however, the remaining rows are empty. If I perform the same operation but access the media items directly (e.g., display the attributes to the console window) then all items in the playlist are populated properly.

Here is an example of the output showing the condition:

Inserting song "The Arrest" from album "Jesus Christ Superstar [MCA Original Cast Recording] Disc 2" into database...
Inserting song "Peter's Denial" from album "Jesus Christ Superstar [MCA Original Cast Recording] Disc 2" into database...
Inserting song "Pilate and Christ" from album "Jesus Christ Superstar [MCA Original Cast Recording] Disc 2" into database...

[code]....

View 2 Replies

Wmplib And Vb2010 Express How Get Duration Play Time Mp3 Files Using Fileopen Only

May 2, 2011

I am using wmplib and i like to know a duration time of a lot of files onto a same folder (software for audiobook for low vision persons)

View 2 Replies

AxInterop<ctrl>.dll And Interop<ctrl>.dll Versions Not In Sync With Control.dll??

Jun 1, 2009

I am using a 3rd part dll file (SolidWorks EModelView.dll, COM file) that has a version of 9.2.0.128. When I add it to the resources for the application, however, the AxInteropEModelView.DLL and InteropEModelView.DLL references show a version of 9.0.0.0. When I install the application on a client machine and try to run it, the application says it cannot find AxInteropEModelView.DLL version 9.2.0.128!

View 5 Replies

VS2010 Can't Use CRAXDRT.dll And AxInterop.CrystalActiveXReportViewerLib105.dll?

May 24, 2010

in VS2008 i can use craxdrt.dll and AxInterop.CrystalActiveXReportViewerLib105.dll as well but in vs 2010 can not, dont know y?

View 4 Replies

Could Not Load File Or Assembly 'AxInterop.zkemkeeper

Jul 4, 2009

im getting an error in my compiled and deployed program that i dont get in the VB IDE that says

The error is: Could not load file or assembly 'AxInterop.zkemkeeper, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified. ---> System.IO.FileNotFoundException: Could not load file or assembly 'AxInterop.zkemkeeper, Version=6.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.

i have included a reference to the zkemkeeper.dll, and my setup program ships & deploys a few other files that zkemkeeper.dll needs in the application folder what really bugs me is that in the IDE my code works perfect but in the deployed run-time i get this error.

View 1 Replies

VS 2008 Unable To Emit Assembly: Referenced Assembly AxInterop.MSFlexGridLib Does Not Have A Strong Name

Dec 4, 2009

I have recently upgraded an VB6 project to vs2008. I was almost finished when the following error occured. Unable to emit assembly: Referenced assembly AxInterop.MSFlexGridLib does not have a strong name Prior to this error appering, I tested my app several times and it was fine. Only after publishing it did the error appear. I have tried all solutions I could find, but nothing helps. I have read [URL]

View 1 Replies

Where To Get The IMAPI2.Interop.dll Or The Equivalent IMAPI2.Interop.vb Class

Aug 29, 2011

i want to write a small app which enables the user to burn some files on cd/dvd. Something like:

- Make an export from related DB Tables with informations

- Collect customers informations

- zip everything

-burn on cd (its a settlement related tool)

View 4 Replies

.net - Put Interop Dll Into GAC?

Apr 7, 2011

This might be a bit of stupid question but I need some clarification. I'm somewhat new to .NET and have created a EXE that had to reference an existing COM DLL. In doing so, Visual Studio 2010 automatically created an "Interop" DLL that it needs/uses to work with the legacy COM DLL.

I have deployed my project and included this Interop DLL with it (in the same folder) and everything is working fine. However, I have other applications that will need to use this same legacy COM DLL. Is it okay to reference it they same way in each application and keep deploying the "Interop" DLL with each application? Unfortuantely, all of these small applications go in the same folder and each use the same Interop DLL (so it will already exist there if it's used by another app.) I'm forced to having them in the same folder because these applications are being called as a way of customizing a parent application. As such it only looks in it's local folder when it wants to run a "custom" app. I'm just concerned if one the EXE's is ever removed and they take out the Interop DLL, then the others that still depend on it will fail.

So, I was wondering if it is possible or a good idea to put that Interop DLL in the GAC? I went ahead and installed the Interop DLL into the GAC and then removed the Interop DLL from the folder where my EXE runs and it failed to work. I get an error that says "Could not load file or assembly". I'm stuck on getting this working.

Do I need to reference the Interop DLL in my project differently such that it's now from the GAC? or Do I need to add something to my .NET code like Assembly.Load to make it work? Do I need to create that Interop DLL myself using TLBIMP?

View 2 Replies

What Is COM Interop

Apr 11, 2009

What is COM Interop? Please remember to mark the replies as answers if they help and unmark them if they provide no help.Welcome to the All-In-One Code Framework!

View 1 Replies

Excel And Interop Not Getting Along?

Jun 29, 2012

I am using Interop to read and write to excel but I'm having some problems writing to excel... When I enter the information I need to be written on the excel in an inputbox, this pops up "COM object that has been separated from its underlying RCW cannot be used."Heres the Code:

Code:
Private Sub editmodelbtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles editmodelbtn.Click

[code].....

View 5 Replies

Unable To Use Interop

Jul 13, 2011

I am trying to use a 3rd-party Interop assembly called SmartWIM.

I have added it as a reference and added an Import statement

Imports SmartWIMLib

I then initilalise it with

Dim objSmartWim As New SmartWIM

All pretty standard stuff, I've done this countless times with Interops. However, whenever I try and use any methods I get the following error [code]...

View 3 Replies

Using .NET And Certainly With The Excel Interop?

Sep 15, 2011

I'm kinda new to using VB.NET and certainly with the Excel Interop.I have the impression that I'm doing something wrong in these simple procedures. I keep getting errors on them:

[Code]...

The first procedure fills a combobox with all the worksheet names of the workbook.The second procedure copies all cells in the selected worksheet to an array.The error is the following: System.NullReferenceException: Object reference not set to an instance of an object.I think the error is in the cleanup part, when I set the objects to nothing and close everything. Can someone confirm if this is good or wrong code and maybe point me in the right direction?

View 5 Replies

Using .net COM Interop From Excel

Aug 26, 2011

I Programe a COM Library in VS2008 to use in Excel , but I'm stuck with an error that I don't understand.

I use this two classes , that compile and register OK. One Class QBitems return a nongeneric collection of QBItem but when I tried to use the Add and/or Remove Method, I receive the following error in Excel VBA :

Run-time Error '438': Object doesn't support this property or method.

I added a class (SImpleClass) in the library and I called from VBA it returned the QItems collection without problem.

NEW: When I replace the QBItem object with a string in the Collection QBItems everytthing works OK. It looks like interface doesn't like to pass an object like QBitem class

Excel/VBA:
Sub Pru()
Dim obj As New CollectionCOMClass.SimpleClass
Dim Itms As New CollectionCOMClass.QBItems

[Code]....

View 2 Replies

VS 2005 DEP And .NET Interop?

Apr 15, 2009

I have a .NET application that interops with a VB6 COM DLL. After installing the application on a Vista machine, I try to execute the code that consumes that COM component and I get an error attempting to read or write protected memory. The system's DEP is set to only essential programs and services, but apparently that automatically applies to .NET applications. When I tried to exclude the application from DEP, it said that DEP must be on for this program (could not be turned off). I had to use the bcedit.exe program to manually turn DEP off system wide and then reboot. After that, the application ran without a hitch, but this is not the route we want to go for our users. Are there any solutions/recommendations for this? It seems as though DEP has been more of a headache than not.

View 5 Replies

Add Interop.ADODB.dll To My References?

Mar 6, 2010

How can i add Interop.ADODB.dll to my references as i cant seem to find it when i try?

View 3 Replies

C# - Forcing Inf And Nan To Excel Interop

Jun 22, 2010

I am creating a report in my asp.net application. The report outputs to excel using the excel interop. Some calculations in the report cause excel to display "Inf" or "NaN" I want to force these calculations to zero so that the report displays zero and NOT "Inf" or "NaN"

View 1 Replies

C# - Save XLS Using Interop Excel?

Apr 5, 2012

The Current Setup:So, I can use the following code to save a file as an XLS:

_myWorkbook.SaveAs("FileName.xls", Excel.XlFileFormat.xlWorkbookNormal)

I can also use the following code to save a file as an XLSX (Since I use Office 2010):

_myWorkbook.SaveAs("FileName.xlsx", Excel.XlFileFormat.xlWorkbookDefault)

I have tried (unsuccessfully) to save the file as an XLSX using the following code:

_myWorkbook.SaveAs("FileName.xlsx", Excel.XlFileFormat.xlExcel12)Why does this not work? Last I checked, Excel 12 was Excel 2007 (a version that supports XLSX). Am I missing something?

I get a This extension can not be used with the selected file type error)

View 1 Replies

Can't Deploy Interop.Excel.DLL

Feb 6, 2006

I've developed a vb.net app which works great on my dev machine, both within the IDE and as a compiled executable. But when I deploy it to a user workstation, I receive the following:

Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.

Could not load file or assembly Microsoft Office Interop.Excel, Version=11.0.0.0,Culture=neutral, PublicKeyToken=71e9bce111e9429c' or one of its dependencies. The system cannon find the file specified.

View 12 Replies

Embed Interop.shell32.dll ?

Jan 8, 2012

Im doing a VB .net2 program and when building i get file interop.shell32.dll in my bin folder.

Can i embed that in my final .exe file so I only have to destribute 1 file ?

There is a properties on my form where I can choose a "Build Action: Embedded Resources" , is that the option to accomplish me goal?

View 2 Replies

Excel XML Import Using Interop?

Jun 28, 2011

I am trying to Import an XML file into Excel and then Export the data to CSV. I did the Import Data steps manually in Excel while recording a Macro. I am basically using those commands in VB.NET.

Try
xlWBook.XmlImport(filename,, True, xlRange.Cells(1, 1))
xlWBook.SaveAs(outFile, xlCSV, False)

[code].....

View 6 Replies

How Does Interop.speechlib.dll Works

Oct 27, 2011

i want to know how interop.speechlib.dll works and reads the English text because i want to Develop a Project that reads other languages.

View 6 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved