Thursday, 17 January 2008
|
| Re: Can a .wmv file be placed on a website and played without user John Warner 14:16:05 |
| | See if this link doesn't help:
//steveorr.net/articles/StreamingMedia.aspx
(http: removed)
John Warner
Date: Wed, 16 Jan 2008 09:28:13 -0500 From: "Hevel, Shawn" <ShawnHevel@SCFBINS.COM> Subject: Can a .wmv file be placed on a website and played without user having to download the file? I've got a friend who is looking to place a 30 - 45 minute presentation that is stored in a windows media player file extenstion (.WMV). He would like this placed on a website for users to click and play. Can this be down without having to download the file? He would like it to just play from inside the website without downloading the file. =20 Any ideas? Is this possible? =20 Also, if the file has to be converted to a different format, does anyone know some good software to accomplish this? =20 Thanks, =20 =20 Shawn =================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
Wednesday, 16 January 2008
|
| Can a .wmv file be placed on a website and played without user having to download the file? Shawn Hevel 17:28:13 |
| | I've got a friend who is looking to place a 30 - 45 minute presentation that is stored in a windows media player file extenstion (.WMV). He would like this placed on a website for users to click and play. Can this be down without having to download the file? He would like it to just play from inside the website without downloading the file.
Any ideas? Is this possible?
Also, if the file has to be converted to a different format, does anyone know some good software to accomplish this?
Thanks,
Shawn
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
|
| How to maintain order in a grid with three row types. Brady Kelly 13:32:07 |
| | I've probably just been looking at this too long, but would like some input please. I have a DataGridView that presents reporting bands. Each band may or may not have a header or a footer, so I use a rowType var that guarantees the header-band detail-footer will always remain in sequence, but I now worry about inserts and deletes, where any one of the three, or all three, may be deleted. Insertions are also causing a brain freeze today.
|
| | Add comment |
|
| Erratic Masterpage cast exception Mark Aurit 00:57:07 |
| | I have a masterpage named MasterpageController with a menu. In the codebehind I have a method SetMasterMenu(<some parms>) to display the appropriate menu items. The content page, which has a MasterType directive, executes the method using "this.Master.SetMasterMenu(<some parms>)". Runs fine for maybe 5-10 "start with/without debugging"'s, while I am in development mode in vs.net 2005, and then I'll start getting an "Unable to cast object of type 'ASP.masterpagecontroller_master' to type 'ASP.masterpagecontroller_master'" when the content page attempts to execute the method. I have to restart IIS to get the app to run correctly .. then a few starts later I get the exception. I havent seen this behavior when I publish the app onto a staging server, just on my development laptop. Any ideas on how to fix this? Does it only happen while in development, not in a published site? Thanks, Mark
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 1 answer | Add comment |
Tuesday, 15 January 2008
|
| property snippet outlining problem chris Burgess 19:37:21 |
| | In VS 2005, the properties that I create with the property snippet collapse on their own when I don't have the cursor in the property definition. However, the properties that I create without the snippet do not. Where is the setting to fix this?
Thanks!
Chris
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
Monday, 14 January 2008
|
| Allowing a method to timeout Amit Bhatnagar 20:18:55 |
| | Hi All.
I am finding that my win32 call to SystemParametersInfo in my FormClosing event handler sometimes hangs my application preventing it from terminating. Is there a way where I could make the call but after a timeout period then continue executing the rest of my FormClosing code?
Place this in a thread? I'd like to make the solution generic enough so that I could timeout any method.
Any ideas?
The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. Thank you.
|
| | 5 answers | Add comment |
Friday, 11 January 2008
|
| SV: [DOTNET-WINFORMS] SV: [DOTNET-WINFORMS] SerialPort.WriteTimout Benny Skjold Tordrup 17:30:48 |
| | Peter,
Try the command "mode com1" (or what ever com port you use) in a cmd shell. What settings are returned? Do they match the settings you want to use from your code?
Med venlig hilsen / Best regards
-----Oprindelig meddelelse----- Fra: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] P vegne af Peter Osucha Sendt: 9. januar 2008 14:23 Til: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Emne: Re: [DOTNET-WINFORMS] SV: [DOTNET-WINFORMS] SerialPort.WriteTimout
Benny, I'm not sure what you mean by this. The port can handle the baud rate and all lines (for the 9 pin rs-232 spec) are connected. Is this what you meant?
Peter
-----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] On Behalf Of Benny Skjold Tordrup Sent: Tuesday, January 08, 2008 10:58 PM To: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Subject: [DOTNET-WINFORMS] SV: [DOTNET-WINFORMS] SerialPort.WriteTimout
Does the physical port settings match the settings that you apply in code?
Med venlig hilsen / Best regards
Benny Tordrup System Developer
Microsoft Certified Technology Specialist
-----Oprindelig meddelelse----- Fra: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] P vegne af Peter Osucha Sendt: 9. januar 2008 04:28 Til: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Emne: Re: [DOTNET-WINFORMS] SerialPort.WriteTimout
Thanks, Don. I have a very small test c# (2.0) app that opens a serial port, sets the baud rate and a few other items, and then writes a stream of 50 chars. Doesn't seem to present a problem. I have a much larger, more complicated c# app that also writes to a serial port with similar port settings and less characters and I keep getting a write timeout error. So it doesn't seem to be the hardware. I am looking for other places I might have screwed up (and yes, I do know the port is open! .
Peter
-----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] On Behalf Of Don Clark Sent: Tuesday, January 08, 2008 5:31 PM To: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Subject: Re: [DOTNET-WINFORMS] SerialPort.WriteTimout
It's not always just the length of the data and the baud rate. I've seen write timeouts happen when using virtual serial port controls even though given the baud rate and the length of the data there was ample time to complete the operation. The most recent drivers for the siLabs 210x USB to Serial chips seem to be especially slow. With a write timeout of 400ms I was sometimes unable to write 2 characters to my device at 38400 baud.
If the write operation isn't completed during the timeout period a timeoutexception will be thrown.
Don
-----Original Message----- From: Discussion forum for developers using Windows Forms to build apps and controls [mailto OTNET-WINFORMS@DISCUSS.DEVELOP.COM] On Behalf Of Peter Osucha Sent: Tuesday, January 08, 2008 1:58 PM To: DOTNET-WINFORMS@DISCUSS.DEVELOP.COM Subject: [DOTNET-WINFORMS] SerialPort.WriteTimout
I have been searching for info on what actually will cause a WriteTimeout error to happen on a serialport object in net 2.0. There are lots of articles that talk about a Write operation not being able to complete in the time allotted. However, besides having a series of bytes to be written that when taking into the account the baud rate cannot complete in the allotted time, I can't think of another reason for this error to occur - nor can I find reference to when it will occur.
Any ideas or places you could point me, please?
Sincerely, Peter
|
| | 1 answer | Add comment |
Wednesday, 9 January 2008
|
| SerialPort.WriteTimout Peter Osucha 20:47:36 |
| | I have been searching for info on what actually will cause a WriteTimeout error to happen on a serialport object in net 2.0. There are lots of articles that talk about a Write operation not being able to complete in the time allotted. However, besides having a series of bytes to be written that when taking into the account the baud rate cannot complete in the allotted time, I can't think of another reason for this error to occur - nor can I find reference to when it will occur.
Any ideas or places you could point me, please?
Sincerely, Peter
|
| | 6 answers | Add comment |
Tuesday, 8 January 2008
|
| showdialog and 'Cannot access a disposed object' chris Burgess 22:39:40 |
| | I have the following code to launch forms based upon a selection from a list box:
Private Sub LoadReport_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LoadReport.Click Dim rpt As New BaseReport rpt = DirectCast(Me.Reports.SelectedValue, BaseReport) rpt.ShowDialog() rpt.Dispose() End Sub
'Reports' is a list box that contains 'Report' objects. The Report object has a report name property (the DisplayMember) and a report form property, each of which is derived from BaseForm (the .valuemember).
If I launch a report form, close it, then try to launch it again, I get an error:
System.ObjectDisposedException was unhandled Message="Cannot access a disposed object. Object name: 'Report_OrdersByDate'." ObjectName="Report_OrdersByDate" Source="System.Windows.Forms" StackTrace: at System.Windows.Forms.Control.CreateHandle() at System.Windows.Forms.Form.CreateHandle() at System.Windows.Forms.Control.get_Handle() at System.Windows.Forms.Form.ShowDialog(IWin32Window owner) at System.Windows.Forms.Form.ShowDialog() at Converse.MainMenu.LoadReport_Click(Object sender, EventArgs e) in C:\Work\StoreReporter\StoreReporter\MainMenu.vb:line 48 at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ButtonBase.WndProc(Message& m) at System.Windows.Forms.Button.WndProc(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg) at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData) at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context) at System.Windows.Forms.Application.Run(ApplicationContext context) at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel() at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine) at Converse.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81 at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args) at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args) at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly() at System.Threading.ThreadHelper.ThreadStart_Context(Object state) at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state) at System.Threading.ThreadHelper.ThreadStart()
|
| | 10 answers | Add comment |
Sunday, 6 January 2008
|
| Renewal of your subscription to the DOTNET-CX list L-Soft list server at DevelopMentor 14:00:08 |
| | Sun, 6 Jan 2008 06:00:08
Your subscription to the DOTNET-CX list is due for renewal. If you wish to remain subscribed to DOTNET-CX, please issue the following command to LISTSERV@DISCUSS.DEVELOP.COM at your earliest convenience:
CONFIRM DOTNET-CX
You will be automatically removed from the list if you do not send a CONFIRM command within the next 14 days. The simplest way to do this is to click on the following link:
http://discuss.develop.com/archives/wa.exe?LCMD=CONFIRM+DOTNET-CX&L=DOTNET-CX
|
| | Add comment |
Friday, 4 January 2008
|
| TCP Queue (Backlog) Gavin Landon 11:11:42 |
| | Morning all..
I'm having an issue that I've spent a few days on. I'm building a web server and when I stress tested the server I got great results, but with one bad one.. I'm getting a lot of socket errors. I have the following, but this doesn't seem to be working list expected..
IPAddress inputDNS_IP = Dns.GetHostEntry(this.m_szHost).AddressList[0]; this.svrListener = new TcpListener(inputDNS_IP, this.m_lPort); //setup timeouts.. this.svrListener.Server.ReceiveTimeout = 30000; this.svrListener.Server.SendTimeout = 30000; //start with a backlog "TCP/IP Queue" of 1024 this.svrListener.Start(1024);
I've changed the backlog param in Start() from 1 to 4096 and no matter what the value it doesn't seem to queue up the TCP message like expected. Am I missing something?
/*Chizl*/
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | Add comment |
Thursday, 3 January 2008
|
| Something more serious than Obsolete. Peter Obiefuna 08:53:05 |
| | Hi, Hope everyone is having a happy new year so far!
I intend to block compile-time access to some inherited methods. My preference would be a method Attribute that throws a compile-time error. Does anyone know of any?
---------------------------- [Obsolete("This method is invalid for an empty collection.")] protected override void InsertItem(int index, TDomain item) { throw new InvalidOperationException( "This method is invalid for an empty collection."); } ---------------------------
P
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 3 answer | Add comment |
|
| Windows\App shut down? (OT?) Peter Osucha 00:13:28 |
| | Hi all,
This probably isn't the appropriate place to ask this question - my apologies in advance. I hope someone might suggest a more appropriate place to ask this...
I have a windows app running on a machine. If a user goes to Start-->Shut Down to shut down the system, what can I expect to happen to my app as far as it shutting down? Does it just get a hard 'END' message or is the shut down of the app more controlled? App is in C# for net 2.0...
Thanks, Peter
|
| | 2 answer | Add comment |
Thursday, 27 December 2007
|
| Ensure only one instance running Graeme Hood 07:23:22 |
| | I have this code to make sure my app can't run twice. But I seem to remember there was a newer/better way in the latest .Net FW.
Is there?
====================================================
public static void Main()
bool firstInstance = false;
string safeName = Application.UserAppDataPath.Replace(@"\", "_");
Mutex mutex = new Mutex(true, safeName, out firstInstance);
if (!firstInstance) return;
This email message is intended only for the use of the named recipient. Information contained in this email message and its attachments may be privileged, confidential and protected from disclosure. If you are not the intended recipient, please do not read, copy, use or disclose this communication to others. Also please notify the sender by replying to this message and then delete it from your system.
|
| | 10 answers | Add comment |
Friday, 21 December 2007
|
| vs.net 2008 - wheres the beef? Mark Aurit 12:26:06 |
| | Does anyone have a good link to what vs.net 2008 has for developers, esp asp.net developers? All Ive seen is the usual blah-blah-blah plus LINQ and Silverlight. Neither of which seems compelling to me, at least right now (kinda like Vista).
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 12 answers | Add comment |
|
| Passing property Accesor as Function` Brady Kelly 01:55:09 |
| | Warning: This is a purely academic and speculative post.
This has suddenly become a real 'would like to have' feature in the project I'm currently working on. I know this isn't possible in standard C#, but I'm trying to find a hammer with the right weight and shape to beat this into some semblance of working. What I would like to achieve is something like this, in the commented line:
public class PersonForm
{
System.Windows.Forms.TextBox textRate = new TextBox();
public void BuildPerson(Person person)
{
Person pers = new Person();
pers.HourlyRate = textRate.Text.Length == 0 ? (double?) null : double.Parse(textRate.Text);
// SetPropertyFromText(pers.HourlyRate, textRate.Text)
}
}
My SetPropertyFromText should take the pers.HourlyRate as a delegate parameter, not as a double?, determine the correct type conversion based on the type of the pers.HourlyRate, and set the property to the converted object value.
I can easily use a property name as my property parameter for SetPropertyFromText, but then I lose compile time checks. Our generated DAL, nettiers, provides, for each entity, an Enum with all the column properties for each entity, and I think this is about as close as I've seen to what I want, but not quite there.
Any ideas on the matter?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 7 answers | Add comment |
Thursday, 20 December 2007
|
| Unauthorised error Dean Cleaver 16:56:18 |
| | I'm connecting to a web service using network credentials, but have a very strange error occurring. On my desktop and on the SQL Server machine, this program will connect correctly - but on the web server, it will fail with a 401 error. I've double checked and re checked everything, and all credentials are correct - but it still fails. Same exe file works fine from other machines - any ideas on what to look at? Dino
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 6 answers | Add comment |
|
| Raising Events to COM Clients from .NET Assembly Brady Kelly 16:35:53 |
| | Are there any caveats regarding this?
=================================== This list is hosted by DevelopMentor http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 5 answers | Add comment |
|
| [OT] New LinkedIn group for .Net professionals Adwait Ullal 01:11:35 |
| | http://www.linkedin.com/e/gis/46954/0218F95E466C
Please join and forward to others that might be interested.
Also, if you wish to connect directly with me, please feel free to send me an invitation.
Happy Holidays!
- Adwait
-- Adwait Ullal
e: mailto:adwait.ullal@gmail.com w: http://www.adwait.com l: http://www.linkedin.com/in/adwait j: http://finance.groups.yahoo.com/group/AdwaitsDotNetJobs
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 2 answer | Add comment |
Tuesday, 18 December 2007
|
| Is it safe to have a mixed-mode DLL serve out COM objects? Gyorgy Bozoki 07:57:08 |
| | Hi all,
I'm working on a mixed-mode DLL in C++ that calls into managed code, implemented in C#. As it turnes out, the 3rd-party application that I need to talk to provides some of its functionality through COM interfaces - I need to implement some of those interfaces on my objects in C++ code.
As I'd prefer to have as few DLLs as possible (my objects will be inproc servers), I'd like to use the mixed-mode DLL to serve out the COM objects implementing these interfaces.
Is there anything wrong with this approach? I don't see anything wrong about it, but it's been a while since I wrote COM code and never before in mixed-mode.
Thanks for any advice, Gyorgy Bozoki
|
| | Add comment |
|
| windows command key chris Burgess 01:48:10 |
| | Is there a way to assign a Windows command key shortcut to launch my winform app?
Thanks,
Chris
=================================== This list is hosted by DevelopMentor® http://www.develop.com
View archives and manage your subscription(s) at http://discuss.develop.com
|
| | 7 answers | Add comment |
Saturday, 15 December 2007
|
| Calling C# from C++... Gyorgy Bozoki 09:07:27 |
| | Hi all,
I have a problem and I was wondering if someone could give me some advice.
I have a 3rd-party application to which I'm creating a plugin. The plugin must be a plain Win32 DLL that exports several functions by ordinal. I'll have to implement the DLL in C/C++, because of memory allocation requirements - doing this in C# would be very cumbersome.
I also have another DLL written in C# that exposes a few classes and dialogs, so that users of this DLL can pass some data to these dialogs and show them on the screen to the user. The DLL is already complete and is used in several places (all .Net, so far), so I cannot change it in any way.
What I need to do is to use this same C# DLL from my first DLL, which is written in C++. I know both C++ and C#, but I don't know much about interop between the two. What would be the best approach to write the C++ DLL so that it can talk to both the unmanaged 3rd-party app and my managed DLL?
Thanks in advance, Gyorgy Bozoki
|
| | 1 answer | Add comment |
Friday, 14 December 2007
|
| Native version of VolatileRead and VolatileWrite Alex Ivanoff 19:26:15 |
| | It is a bit off-topic, but I hoped you would not mind. Is the following correct?
C#:
Int32 val = Thread::VolatileRead(ref valueToRead);
C++:
long val; ::InterlockedExchange(&val, valueToRead);
C#:
Int32 val; Thread::VolatileWrite(&val, valueToWrite);
C++:
long val; ::InterlockedExchange(&val, valueToWrite);
|
| | 10 answers | Add comment |
|
| Visual Studio Performance Andy Langowitz 18:57:43 |
| | When moving from VS 2003 to VS 2005, I found that the performance of the development environment got worse, particularly when using the Windows Forms and designer.
Does anyone out there have a sense yet of whether VS 2008 makes this better or worse?
Thanks,
Andy
|
| | 5 answers | Add comment |
|
| MDI and ShowDialog() Steve Abaffy 01:45:49 |
| | After considerable research I cannot find a way to open a form using ShowDialog() within a MDI parent.
SomeForm SF = new SomeForm(parameters); SF.MdiParent = MdiParent; SF.ShowDialog(); - Blows up here with an exception thrown. Do More Stuff here after form closes
All I have read says that this cannot be done, but I don't believe that.
Any help would be appreciated.
Thanks.
|
| | 2 answer | Add comment |
|