Playing flash in a windows program - .Net 2.0

M

Mufasa

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.
 
I

Ignacio Machin ( .NET/ C# MVP )

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.
 
M

Mufasa

Groovy. That seems to have fixed it.

Thanks.

message
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top