Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C# 1.0 > C#
|
C# Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 22nd, 2005, 11:47 AM
Registered User
 
Join Date: Nov 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default C# and MM Flash

I have recently joined the C# crowd and so far, I'm a bit torn. I really like C++, but not so much of VB. That was before I decided on doing a Flash interface for a windows app. So I found a tutorial with C# (VS .NET 2003) and Flash ActiveX. Unlike the C++ version of C++ and Flash, I cannot have just one file, unless you can present me a decent solution. When I compile the C# program, I have to have 2 .dll's and the swf in the same directory (well the swf can be anywhere, but it's nice to be in the same directory or a sub-directory). How can I import the swf as a 'resource' and have it available at run-time? In C++ you could just add it as a binary resource and then do a LoadResource or whatever. Also, how can I rid myself of these external dependencies (which is one reason why I didn't like VB (a load of dep.), and why I like C++ (no dep.))? Can I? Maybe import them as resources and load at run-time? In C++ you can just rely on the fact that end user has the ActiveX control for Flash (or include an installer and autodetect whether they have it installed or not). More appropiately, I should ask what these dll's are for. What are they for (dll's listed below)? I use C# for it's general simplicity, but if it's giving me this junk, then I'll just go to C++.

dll's:
AxInterop.ShockwaveFlashObjects.dll
Interop.ShockwaveFlashObjects.dll

 
Old November 23rd, 2005, 07:06 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 453
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via AIM to Ankur_Verma Send a message via MSN to Ankur_Verma
Default

The Dlls you have mentioned here are the wrapers that .NET creates when u add a reference to the flash OCX or DLL files. U dont have to wory too much about them. C# (or .NET), however, does have a number of dependencies of its own, but the good news is that the .NET setup projects are quite helpfull in this regard and they let you take care of the dependencies latter on. Still, since you are new to C# I would say that you have to do a good deal of reading to get a proper understanding of how to get .NET programs to run in all viable environments, 'cuase simple things may look even simpler when done in .NET but when it comes to tweeking and tuning .NET gets the better of the best of the programmers.

C# does have resources and you can load SWFs as a resorce.
Check out this link for starters
http://msdn.microsoft.com/library/de...rceVisualC.asp



Regards
Ankur Verma





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert dd/MM/yyyy to MM/dd/yyyy Rg2005 VB.NET 2002/2003 Basics 2 November 7th, 2008 06:42 PM
converting HH:MM to HH.MM nasirmunir PHP How-To 5 July 11th, 2008 01:33 PM
convert "MM/dd/yyyy" to "dd/MM/yyyy" xin56 General .NET 4 March 28th, 2005 05:33 AM
MM:DataSet mystery bridon123 Dreamweaver (all versions) 2 January 12th, 2004 10:44 PM
validation of [HH]:mm beastwood_uk Excel VBA 3 August 10th, 2003 08:37 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.