bilsa's Q&A profile
.NET Development adding Window Media Player into IE Toolbar
Hello: I am facing a problem in adding a Window Media Player Control into IE ToolBar. I found a project written in C# on Code Project site that can add a text into IE toolBar. But I can't add the window Media Player into IE. The Project I found constitutes of 2 projects BandOjLib and SampleBars window Application C sharp where the development is happening in it. So what you do in SampleBars project will be embedded into BandObj Project after compilation and start without debugging both BandObj and SampleBars respectively. When I am adding the Window Media Player into TOOLBOX, then to drag it into window Form => it gives me this error: Assembly generation failed -- Referenced assembly 'AxInterop.WMPLib' does not hav ...Show All
Visual Studio Express Editions Currently Playing Media
Hi, I'm making a utility that needs to monitor when the audio changes that you are listening to in Media Player, is there anyway to do this What I want is an effect simular to the Media Information option in messenger, where Media Information updates as your song changes, etc. Any thoughts I would be gratefull, thankyou. Media information is really hard to find. MCI_INFO http://msdn2.microsoft.com/en-us/library/ms710911.aspx MCI_INFO_FILE Obtains the filename of the current file. This flag is supported only by devices that return TRUE when you call the MCI_GETDEVCAPS command with the MCI_GETDEVCAPS_USES_FILES flag. But I just looked at my code and that's not what I did. I checked to ...Show All
.NET Development Using a SQL Database to authenticate users
I am converting a MySQL database over to MsSQL and I'm having problems migrating my user authentication. I'm using Visual Web Studio Express 2005, but the Website is not locally hosted, so using the ASP.NET management seems to be unavailable. The specifc error is: The ConnectionString property has not been initialized. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.InvalidOperationException: The ConnectionString property has not been initialized. The connection to the database is made in my web.config file: < add key = " database &qu ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Game Math 101: Changing the magnitude of a vector?
I find myself needing to change the magnitude of a vector quite often, and end up writing a lot of code that looks like: v1 = Vector2 .Multiply( Vector2 .Normalize(v2), 250.0F); Is there a better way That just seems awfully inefficient. It only gets worse when I want a particular magnitude vector in the opposite direction: v1 = Vector2 .Multiply( Vector2 .Normalize( Vector2 .Negate(v2)), 250.0F); Or inverting the Y-axis of the thumbsticks: acceleration = Vector2 .Multiply( Vector2 .Normalize( Vector2 .Multiply(gpt.Left, new Vector2 (1, -1))), 800.0F); Please, help a noob out... Matt private float m_V1Normalized; public float m_V1; public float m_V2; public float m_V3; ...Show All
Visual Studio 2008 (Pre-release) Serialization error.
hi friends, I want to serialize a System.Windows.Documents.Paragraph object and pass it to another machine which will deserialize it. Can anyone guide me which appropriate Serialization technique to use to serialize the System.Windows.Documents.Paragraph object and deserialize it in such a way that no error is generated. I have try to serialize the Paragraph object created using the ObjectStateFormatter class(found in System.Web.UI) and ObjectStateFormatter was successfully able to serialize the paragraph object to string so I transferred the string using WCF on another machine but when I tried to deserialize the string I received an error that Serialized data is invalid. The XamlWriter and XamlReader in the System.Windows.Markup ...Show All
Internet Explorer Development asp.net 2.0 application with Master Page does not display properly under ie7
I have an asp.net 2.0 application which when viewed on internet explorer 7 does not display properly. There is a footer that tends to appear in the middle of the screen, which was previously at the bottom, and also when grids appear and have enough data to scroll down the screen, the footer and the outline of the content page do not move down to accomodate this. I tried some recomendations from the ie7 site, but couldn't get it to work. Also this is specific to one website, others using a similiar setup work fine Any thoughts on where I should look next regarding this I haven't been able to nail it down yet, although the site that has the problem makes extensive use of css and the ones which work ok do not ...Show All
Visual Studio 2008 (Pre-release) VS 2005 is better than DLL hell?
Please please please someone bring back DLL hell (which was never really that big of an issue) -- DLL hell is a considerably better trade-off that dealing with interpreted, buggy, slow, and "mysterious" development platform called VS 2005. So many issues with VS 2005: 1. Why is it so slow I mean slow even on a very fast system with 4GB RAM, multiple processors (3Ghz zeons) and 10K rpm hard drives. Is it just a flawed design 2. Why did SP1 not really improve anything and seems to have caused more problems than it solved Debug corruption (no symbols loaded) and a host of other issues. 3. Why is the simple task of moving multiple controls around on a ASPX page via the VS IDE so painfully slow and unresponsive 4. Wh ...Show All
Visual C# System.Timers.Timer vs System.Threading.Timer
I'm not sure which would best fit my solution. So i'm looking for comments and tips that might stear me to using the correct timer. I'm building a Windows Service which does various tasks. I want to schedule, with a timer at a span of 12h or 24h, a command to run and update a local database for offline purpose (in case my database goes down for maintenance, my service will continue to work using the local offline database). I just dont know if any of these 2 timers would have benefits over the other for me. I also thought of simply using the windows scheduler and write a seperate service or software to be called to update the offline database. I dont know, maybe this is a better solution than using timers. But this is what i'm looking for ...Show All
Microsoft ISV Community Center Forums Automatically send attachment in email with a submit command button in word
I have a huge problem if anyone out there is able to help; I have tried to create a submit command button to email off a document as soon as the user hits submit; however i am new to this and my macro does not seem to be working. Does anyone know where i have gone wrong and if possible can you please help rectify the problem. Thank you Sub CommandButton1_Click() Dim Email As Object Dim Attachment As String Set Email = CreateObject("Outlook.Application") 'Assign Outlook application to variable With Email.CreateItem(olMailItem) .to = "<>" 'email address .Subject = "Incident Report" 'Something for the subject Field .body = ActiveDocument .Display = Attachment Options.SendMailAttach = True End Wi ...Show All
Visual C# SqlParametersCollection only accepts non null paremater types
Trying to pass parameters to an Sql Stored Procedure I got this error (the first parameter: Table name): SqlParametersCollection only accepts non null parameter type objects, not String objects. I do not understand it. I do have string parameters and I have null parameters, some of them may well be null. What am I going to do about it Thanks. L1Quote.DateTime = DateTime.ParseExact (Encoding.ASCII.GetString (Data, i, 14), "yyyyMMddHHmmss", CultureInfo.CurrentCulture); Mario, thank you. A little problem: An error message, I assume insignificant, that is not unsurmountable: The DateTime represented by the string is not supported in calendar System.Globalization.GregorianCalendar . I had to insert unsing Syste ...Show All
SQL Server Dynamic Stored Procedures
Hi everyone, My question is how can i set a var with a table name to use it in a SELECT statement for example. EX: Declare @table varchar Set @table = 'mytable' Select * From @table I've got 1 stored procedure wich i want to use to get and update 2 tables. For that reason i want to know how to do this because having 2 stored procedures when the only difference are table names its not a good solution. Thanks :) Tiago: You can do what you ask with something like: exec ( 'select * from ' + @table ) A safer method is something that does not potentially incur problems from hacking is something like: if @table = 'A' select * from A else select * from B The other comment I have ...Show All
Software Development for Windows Vista Problem with the manifest file for Vista
Hi, I have to embed the manifest file for my application for Windows Vista. I have added all the necessary information in the manifest file and embedded it to my application using .rc file of my application. And it is working file. But I am facing the problem of the different manifest files for Debug and Release version. Please have a look at the following: In Debug version: < dependency > < dependentAssembly > < assemblyIdentity type = ' win32 ' name = ' Microsoft.VC80.DebugCRT ' version = ' 8.0.50608.0 ' processorArchitecture = ' x86 ' publicKeyToken = ' 1fc8b3b9a1e18e3b ' /> </ dependentAssembly > </ dependency > < dependency > < dependentAssembly &g ...Show All
Visual Studio 2008 (Pre-release) Creating custom PenLineCaps
Hello, I want to create pen line caps of Arrow shape (which unfortunately is not provided in the PenLineCap Enumeration). The LineCap will be put on the Lines that I draw by either using System.Windows.Media.Drawing or System.Windows.Media.Shapes.Line class. How do I go about it Any suggestions... Thanks in advance. Best Regards, Rohit ...Show All
SQL Server How to create reference to shared data source in code
I need to create DataDrivenSubscription I found how to this but I have not found how to "Specify a shared data source" ...Show All
.NET Development TableAdapter insert/update/delete order
I have a typed-dataset with a dozen or so tables which are hooked together with typical on-to-many and many-to-many relationships. I'm using table adapters to do the CRUD actions. For updates I was using: //Update parent tableadapter_parent.Update(dataset.parenttable); //Update child tableadapter_child.Update(dataset.childtable); But I am getting foreign key reference errors when deleting records because the adapter is trying to delete a row from a parent table but it can't because there is a FK refrence to it in a child table. But if I reverse the order of the table adapter update calls so child tables are updated before parent tables then the deletes work but the inserts fail because it can't insert a FK reference into ...Show All
