473,609 Members | 1,943 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Playing flash in a windows program - .Net 2.0

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.AxWind owsMediaPlayer. AttachInterface s()
at System.Windows. Forms.AxHost.Ge tOcxCreate()
at System.Windows. Forms.AxHost.se t_Site(ISite value)
at System.Componen tModel.Containe r.Add(IComponen t component, String
name)
at System.Componen tModel.Design.D esignerHost.Add (IComponent component,
String name)
at
System.Componen tModel.Design.D esignerHost.Sys tem.ComponentMo del.Design.IDes ignerHost.Creat eComponent(Type
componentType, String name)
at
System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Cre ateInstance(Typ e
type, ICollection arguments, String name, Boolean addToContainer)
at
System.Componen tModel.Design.S erialization.De signerSerializa tionManager.Sys tem.ComponentMo del.Design.Seri alization.IDesi gnerSerializati onManager.Creat eInstance(Type
type, ICollection arguments, String name, Boolean addToContainer)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eInstance(IDesi gnerSerializati onManager
manager, Type type, Object[] parameters, String name, Boolean
addToContainer)
at
System.Componen tModel.Design.S erialization.Co mponentCodeDomS erializer.Deser ializeInstance( IDesignerSerial izationManager
manager, Type type, Object[] parameters, String name, Boolean
addToContainer)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer Base.Deserializ eExpression(IDe signerSerializa tionManager
manager, String name, CodeExpression expression)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer .DeserializeSta tementToInstanc e(IDesignerSeri alizationManage r
manager, CodeStatement statement)
at
System.Componen tModel.Design.S erialization.Co deDomSerializer .Deserialize(ID esignerSerializ ationManager
manager, Object codeObject)
at
System.Windows. Forms.Design.Co ntrolCodeDomSer ializer.Deseria lize(IDesignerS erializationMan ager
manager, Object codeObject)
at
System.Componen tModel.Design.S erialization.Ty peCodeDomSerial izer.Deserializ eName(IDesigner SerializationMa nager
manager, String name, CodeStatementCo llection 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.
Jul 31 '08 #1
2 1969
On Jul 31, 9:35*am, "Mufasa" <j...@nowhere.c omwrote:
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.
Jul 31 '08 #2
Groovy. That seems to have fixed it.

Thanks.

"Ignacio Machin ( .NET/ C# MVP )" <ig************ @gmail.comwrote in
message
news:66******** *************** ***********@f63 g2000hsf.google groups.com...
On Jul 31, 9:35 am, "Mufasa" <j...@nowhere.c omwrote:
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.
Jul 31 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1992
by: Huw Lloyd | last post by:
I am developing a windows application and want to display a flash animation in a splash screen. I have the .fla file but i dont know how to load it into the shockwave flash object that I have on my form. I have tried this code in the forms load code but no no joy Me.vrFlash.LoadMovie(1, C:\Splash.fla") Me.vrFlash.Play()
2
1881
by: Bob | last post by:
How do I access a flash file in my .net web pages. I have worked with image files with no problem such as: in my header.ascx program, I have a: <IMG src= "images/header_gold2.jpg"> Then, in my appform.aspx program, I have a: <% Register Tag Prefix="uc1" src="header.ascx" %> and then after <HTML>: <uc1:header id="header1" align="center" runat="server"></uc1:header>
2
2541
by: Frances Del Rio | last post by:
pls how do I detect if .swf movie is playing or has stopped? .swf is in a pop-up, I would like to trigger a window.close() once Flash movie has stopped playing.. (pls don't lecture me about pop-ups; this is for a client....;) thank you.. Frances
0
1173
by: Paul McGuire | last post by:
My son showed me this Flash game, Orbit (there are *many* links on the web out there for it, here's one for the Google-challenged: http://uploads.ungrounded.net/250000/250408_orbit.swf), and it is *addicting*. Basically, you control a comet to traverse through the gravitational fields of randomly placed planets. Your only inputs are starting x,y location and starting direction and speed, defined by clicking, dragging, and releasing the...
1
1202
by: Jignesh Desai | last post by:
Playing Flash Files in ASP.NET Copy the HTML code below and paste it into your HTML<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://downloa d.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"WIDTH ="550" HEIGHT="400" id="myMovieName"><PARAM NAME=movie VALUE="myFlashMovie.swf"> <PARAM NAME=quality VALUE=high> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src="myFlashMovie.swf" quality=high...
4
21839
by: vivek | last post by:
I am new to flash and want someone to guide me, Is it possible to create a UI entirely in Flash and that will inetract with C# components (backend) and these components will in return interact with database etc. If flash and C# interaction is possbile then, what are the prons and cons of this interaction? As using flash, one can create wonderful UI. But in return I also want it to interact fully with C# components.
14
3990
by: gnarl | last post by:
Hello all, I'm developing a site in PHP4 for a music artist, who wants music to play across all their pages. I have loaded a simple flash applet to play the music, but every time the visitor to the site moves to a different page the music starts again. The artist would like the music to play continuously. I can only think of three possible ways to solve this, and I am not happy with any of them.
4
11645
by: Uffe | last post by:
Is it possible to play a Flash Vide file (FLV) inside an VB.net application. (Example http://www.eurovision.tv/addons/mediaplayer/video/fin.flv ) I have succesfully done similar VB.net applications before, like playing SWF files, by using the com componet Shockwave Flash Object from Adobe. I thought that it would work for FLV files too, but the file just won't play.
6
10048
by: Johnny J. | last post by:
Can anybody get me started on how to play an FLV file? Like you play e.g. mpeg files using the wmplayer control, I want a box on my form where the FLV is played and the playback is controlled byt the user. Cheers, Johnny J.
0
8145
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8095
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8588
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8556
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8236
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8410
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6068
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5526
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2541
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.