sirmmo's Q&A profile
Audio and Video Development Saving stream settings
I'm trying to save streams settings (e.g. audio/subtitle track numbers) on titleEnd system event and what I've noticed that Tosh player trigger this event after loading the new title, so I couldn't use currentTitle to collect settings because it already point to the new one. Can anybody give an idea where is the best place to save these Thanks Peter! it's clear now. DrumAllDay wrote: Why save the user's track settings when the title ends What about when they just change the tracks with the audio_track and subtitle_track events I had a scenario where user could jump between titles with different advanced applications and the settings should be kept. ...Show All
.NET Development xsl rearrange flat document
hi, i have document like this <doc> <subitem id="1" itemid="1"><v>sub item one</v></subitem> <subitem id="2" itemid="1"><v>sub item two</v></subitem> <subitem id="3" itemid="1"><v>sub item three</v></subitem> <subitem id="4" itemid="2"><v>sub item four</v></subitem> <item id="1"><txt>item 1</txt></item> <item id="2"><txt>item 2</txt></item> </doc> and i want to the output to be like that item 1 sub item one sub item two sub item three ...Show All
Software Development for Windows Vista CreateFile returning Access Denied for Physical Drives
I'm writing a program to enum all the physical drives in the system (to examine unmounted drives), however my CreateFile call isn't returning a valid handle: SafeFileHandle driveHandle = CreateFile( string .Format( @"\\.\PHYSICALDRIVE{0}" , drive_index), GENERIC_READ, 1, IntPtr .Zero, OPEN_EXISTING, uint .MinValue, IntPtr .Zero); After checking the LastError I find that the error is "Access Denied", how can I get my program access to do this Update: After running the Application Verifier I find I'm hitting this problem: Object opened/created in a restricted namespace I have a feeling I need to change the runLevel in the manifest, but I can't find any pages with examples of how to do this, just pages talking about making ...Show All
Visual Studio Express Editions mutiple pages?
im trying to use a button to load a new page in the same window can someone give me some device Public Class Form1 Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim f1 As New Form1 f1.StartPosition = FormStartPosition.Manual f1.Location = Me.Location f1.Size = Me.Size f1.WindowState = Me.WindowState f1.Show() Me.Close() End Sub End Class Project + properties, Application tab, scroll down, Shutdown mode = "When last form closes". ...Show All
SQL Server Installation problem
First time I am trying to install sql express on my computer but getting few problems. I am sure that I have uninstalled all sqlserver, net related programs from the computer (as per instructions but when I installed I am still getting the message there are few components exists). I have used "vs_uninst_betas.exe" and found few programs still running. I dont know how to uninstall. Please can you help Thanks in advance, Sowkash The first option is to look in Add/Remove programs to ensure that all SQL and SQL related programs are removed. If nothing is showing, you'll need to examine the Setup logs to see which specific programs are causing problems. For each program listed, you sh ...Show All
Software Development for Windows Vista Where should deployed SQL Server .mdf Files reside?
Hello, if SQL Server .mdf files are deployed with a visual basic application, where should the .mdf files be copied It should offer the possibility to allow access to the database to other users of the same computer or of other computers. Regards, Markus And what is the right way for a programm to share documents with other users on the same computer. So that other users can read, change or even delete this documents with the program Markus ...Show All
.NET Development Why is this SQL statement slow?
I have a database with 1,000,000 records. I am trying to implement a paging technique using the SELECT TOP statement. On an SQL server db, it is relativley fast. In access DB which is linked to the table in the SQL server DB, it is slow. I am running it through an OLEDB DataAdapter. It is slow when I use a statement such as : SELECT TOP 5 * FROM MyTable ORDER BY PrimaryKey It will speed up when I modify the statement as follows: SELECT TOP 5 * FROM MyTable WHERE PrimaryKey < 'Small Number' ORDER BY PrimaryKey Why does it speed up when I modify the WHERE clause to return only a small number of the records Shouldn't the TOP statement make it fast by itself I'm baffled. Any insight would be greatly appreciated. ...Show All
Windows Forms Error launching Clickonce app from intranet
I have an app which is deployed on an intranet site. When I try to launch the <app>.application file, I get the error below. BUT, if I do a RUNAS and run under a admin user of the webserver, the app will launch. Running framework 2.0 Windows Server 2003 Here is the error: PLATFORM VERSION INFO Windows : 5.1.2600.131072 (Win32NT) Common Language Runtime : 2.0.50727.42 System.Deployment.dll : 2.0.50727.42 (RTM.050727-4200) mscorwks.dll : 2.0.50727.42 (RTM.050727-4200) dfdll.dll : 2.0.50727.42 (RTM.050727-4200) dfshim.dll : 2.0.50727.42 (RTM.050727-4200) SOURCES ...Show All
SQL Server Help on creating SSIS
Hello , I am getting the given error message while creting SSIS. Please help me to solve the error.... Error loading 'Package.dtsx' : QI for IEnumVARIANT failed on the unmanaged server.. regards, Malhar , THanks If all you're doing is creating a brand new project and this error appears before you've done anything then it sounds like you've got a corrupt installation. Unfortunatly I'm not able to offer any meaningful help other than trying to reinstall the SQL 2005 Client Tools ...Show All
.NET Development Help with TripleDES and RC2 cryptography.
I have 2 questions - 1) I get the following Exception when I try to decrypt data using TripleDES. - "An unhandled exception of type 'System.Security.Cryptography.CryptographicException' occurred in mscorlib.dll Additional information: Specified initialization vector (IV) does not match the block size for this algorithm." How do I make things right The code is as follows - /* Provides TripleDES encryption and decryption using classes in the .net Framework 1.1 */ public class TripleDES_Cryptography { public static string Encrypt(string plaintext, string key, string IV) { TripleDES des3 = new TripleDESCryptoServiceProvider(); des3.Mode = CipherMode.CBC; byte[] by_plaintext = Encoding.ASCII.Ge ...Show All
Windows Forms Design time only data
Hi, I have a component that uses a lot of data at design-time to "configure" its own sub-components, properties, etc. I want to store this data in the project, but I don't want it to be CodeDom-serialized into the class, since loading all this data at run-time would affect performance. I've been storing this data in the .resx file so far (using DesignOnlyAttribute), but this introduces a problem: even if I provide a TypeConverter for the serialized type, it's assembly version is included in the resx file, which breaks the whole component deserialization once the assembly is upgraded to a new version, introducing the need to create some sort of "upgrading" application that would parse the resx files, re-ser ...Show All
Windows Forms need to make the outlook 2007 TODO BAR!
hi , i need to handle tasks in my app and i need to make something like the outlook 07 TODO BAR.... or atleast thats the best thing i've seen so far. basically i need something that doesnt take space on the client area but is easily accesible ,so if anyone has better controls tell me! ok , lets assume i have to make the outlok TODO bar: http://gidsfiles.googlepages.com/outlook_todo.jpg i know : its a Form or atleast inherited from Form and hides() when it loses focus i need to know: how is the vertical bar made its colour changes when clicked and most importantly displays dynamic text ! The form is not only coloured , it had this nice border around it , is this just a picture I dont need the calender , i plan on just us ...Show All
Software Development for Windows Vista Can I avoid serialization problems by going code-only
Hi I am trying to consider which authoring mode to use for designing workflows. We will only be providing compiled workflow types to the runtime and we will be designing workflows with the default worklfow designer in visual studio. Reading one of the posts on this forum there seems to be some limitations with the code-seperation approach in regard to serializing generic types. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=875768&SiteID=1 . In our scenario would we be able to avoid these serialization problems if we went with the code-only approach Cheers Duncan In most cases using the code only workflow would keep you from getting serialization errors but not all. Take a look at m ...Show All
SQL Server Error Handling with Execute Package Task
I have a main package that calls several other packages using Execute Package Tasks. I also have OnPreExecute, OnPostExecute, and OnError event handlers at the package level to audit the beginning and completion of each package. I want to prevent each task from bubbling up to the package event handlers as well as prevent each task from bubbling up to the main package event handlers. I've tried setting the Propagate variable for each of the event handlers to False and setting the DisableEventHandlers property of each task to True but neither solution seems to work. Is there a way to do this that I'm missing You have to set [System::Propogate]=false in the eenthandler of the task for which you don't want ev ...Show All
SQL Server help
hi guys, just a question regarding database design i have a table with an auto-generated primary key but the problem is this: say i have 4 records,so logically they'll be numbered 1 to 4.so the problem is whenever i delete all records and add new ones,the numbering will start from 5 and not 1 again. how do i remedy this thanx hi, wanna ask.is TRUNCATE only used if i want to delete all records in a table how am i able to do this if i only want to delete a selected row and all rows say i got 4 records and i only want to delete the 2nd record. so will the 3rd record be numbered as 2 now or will it remain as 3 ...Show All
