Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / C# / July 2008

Tip: Looking for answers? Try searching our database.

Playing flash in a windows program - .Net 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mufasa - 31 Jul 2008 14:35 GMT
I have a .Net 1.1 program that works fine that plays flash files. I am
converting it to .Net 2.0 and am getting all kinds of compilation errors
about not finding files or assemblies.

Here's the error message in the design view of the window.

     Could not load file or assembly 'Interop.WMPLib, Version=1.0.0.0,
Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system
cannot find the file specified.
     Hide

     at AxWMPLib.AxWindowsMediaPlayer.AttachInterfaces()
     at System.Windows.Forms.AxHost.GetOcxCreate()
     at System.Windows.Forms.AxHost.set_Site(ISite value)
     at System.ComponentModel.Container.Add(IComponent component, String
name)
     at System.ComponentModel.Design.DesignerHost.Add(IComponent component,
String name)
     at
System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type
componentType, String name)
     at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
     at
System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
     at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeInstance(IDesignerSerializationManager
manager, Type type, Object[] parameters, String name, Boolean
addToContainer)
     at
System.ComponentModel.Design.Serialization.ComponentCodeDomSerializer.DeserializeInstance(IDesignerSerializationManager
manager, Type type, Object[] parameters, String name, Boolean
addToContainer)
     at
System.ComponentModel.Design.Serialization.CodeDomSerializerBase.DeserializeExpression(IDesignerSerializationManager
manager, String name, CodeExpression expression)
     at
System.ComponentModel.Design.Serialization.CodeDomSerializer.DeserializeStatementToInstance(IDesignerSerializationManager
manager, CodeStatement statement)
     at
System.ComponentModel.Design.Serialization.CodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, Object codeObject)
     at
System.Windows.Forms.Design.ControlCodeDomSerializer.Deserialize(IDesignerSerializationManager
manager, Object codeObject)
     at
System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.DeserializeName(IDesignerSerializationManager
manager, String name, CodeStatementCollection statements)

Can anybody point me to someplace that tells you what all you need to do to
include flash in a windows program?

TIA - Jeff.
Ignacio Machin ( .NET/ C# MVP ) - 31 Jul 2008 14:42 GMT
> I have a .Net 1.1 program that works fine that plays flash files. I am
> converting it to .Net 2.0 and am getting all kinds of compilation errors
> about not finding files or assemblies.

Apparentely you were using P/invoke in 1.1 , simply do it again,
remove the current refeence and readd the reference again.
Mufasa - 31 Jul 2008 22:27 GMT
Groovy. That seems to have fixed it.

Thanks.

On Jul 31, 9:35 am, "Mufasa" <j...@nowhere.com> wrote:
> I have a .Net 1.1 program that works fine that plays flash files. I am
> converting it to .Net 2.0 and am getting all kinds of compilation errors
> about not finding files or assemblies.

Apparentely you were using P/invoke in 1.1 , simply do it again,
remove the current refeence and readd the reference again.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.