Rush hour's Q&A profile
.NET Development .NET Framework process mscorsvw.exe makes unexplained sound
When my computer is sitting idle, every few minutes I hear the windows sound "Windows XP Exclamation.wav." With the task manager open and the processes listed in order of CPU usage, I can see that when this sound plays, the process mscorsvw.exe has just moved toward the top of the list and usually after a few seconds it goes back down toward the bottom. I have searched the internet and Microsoft.com for posts or explanations related to this problem, but I have found nothing. There is no ramped up hogging of CPU resources by the process mscorsvw.exe taking place on my computer, as many others on the internet have reported regarding this process. The sound is simply a nuisance and I would like to know why it is happening and if it ...Show All
SQL Server Convert DT_14 to DT_18
Hi! I have a Fact_data flow with several Lookups. In one there's OLE Db source DT_14 (persons id's) which need to be compared to a column DT_18 from Dim_salesperson. Thats how I could collect the ID's from Dim_salesperson into OLE DB Destination. How could I compare, DT_14 data with DT_18 First converting DT_14 to character. Secondly char to DT_18 I would be so grateful if someone could give an idea... curiousss wrote: First converting DT_14 to character. Secondly char to DT_18 Assuming you are talking about DT_I4 and DT_I8; that approach sounds reasonable. Have you try it ...Show All
Visual C# How to detect Method Modifiers using Reflection namespace
I have been unable in a "Derived Class" to differentiate methods using modifiers "new virtual" vs "override". What combination of "MethodInfo.IsVirtual | .IsHideBySig | .IsFinal" should be used when testing in a "Derived-Class" where the method "Name" and "Signature" are equal to the "Base-Class" method "Name" and "Signature" ie: <methods >.GetBaseDefinition().Name == <methods >.Name I have not submitted code to reduce clutter. Any suggestions on a test combination would be greatly appreciated. Regards, John :-) As you can see I never made the connection of "NewSlot" with &qu ...Show All
Visual Studio 2008 (Pre-release) ContextMenu propagation using HierarchicalDataTemplate?
Hello! I'm trying to propagate a ContextMenu using a HierarchicalDataTemplate. The rendering looks just fine but how do I assign the Command property and CommandParameter property of the synthesized MenuItem objects Best regards, Henrik Dahl Henrik, For a comprehensive overview of what to return/throw from ConvertBack, I suggest you read the second section of this: http://www.beacosta.com/2006/07/how-do-i-encode-xaml-using-value.html ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Setting texture wrap mode for SpriteBatch
I can't find any means of settings texture wrap mode except by using an shader which has no effect on SpriteBatch. Also I couldn't find a means of declaring a custom vertex def with transormed coordinates but I admit to not looking real hard for that one yet. If I could that then I could just write my own sprite engine with full effect support. I read a post suggesting effects for SpriteBatches in the release version and I would like to second that. That would solve this little wrap problem real quick like. Other than that XNA has been a good experience so far. Still just a few days into it. I'm porting a long running and ever evolving 3D puzzle/action game from vc++ and with the exception of a few structural changes in the code its bee ...Show All
Visual C# C# Code Comments
For // comments in C# , are they included in the DLL or do you have an option to include or exclude For /// comments, same question. If you're wondering how you get that nice Intellisense documentation - make sure in your project properties, under the Build tab, you've checked the "Create XML Documentation: " box. It will place an XML file with your comments next to the binary that is output (this is pretty much meaningless for executables, but is very useful for .dll's). If you move the binary around, make sure you take the XML document with it! Any class, member, property, or method comments will get included in the XML file, if prefaced with the /// syntax, and if you're using Vi ...Show All
Visual C# Save my program for God's sake!!!!
Just as I was getting some decent work done on my project, I set down my keyboard to make a bathroom run, and once i returned, I found my cat lying on my keyboard... When I tried to clean up the constaint garbage that was created by him, I tried running my program and found a ton of new errors. What makes it worse is that I have this bugged sucker saved... Tried cleaning it up, and like a freakin moron, I saved it before I re-ran the program. Apparently I changed something mere mortals such as my self shouldn't have touched. partial class Form4 { /// <summary> /// Required designer variable. /// </summary> private System.ComponentModel. IContainer components = null ; ...Show All
SQL Server Row by Row Copy
I'm writing a stored procedure that requires I duplicate records through a loop, one record at a time (required because I need to execute SCOPE_IDENTITY() logic on each insertion). But each row has 40 or so columns, making my stored procedure ridiculously full of long declaration lists. So I want to either: 1) Learn a way to auto-insert the column declarations into my code without having to type them all by hand, or... 2) Learn a way to represent the whole row for insertion, without having to specify each column specifically. The latter solution would be the most elegant, but I'll take what I can get... The main logic is the part between the declare table and the commit tran. The rest of the code was just to show the rows. I ...Show All
Visual Studio Tools for Office commandbar not loaded in second instance - word addin error
i have created a word addin in .net 2003. i am using word 2003 but following line gives error whenever i open an existing document: CType(applicationObject, Word.Application).CustomizationContext = CType(applicationObject, Word.Application).ActiveDocument the error is that there is no open word document. my problem in word addin can also be described as: http: / / www. thescripts. com/ forum/ thread373043. html i think its all about getting inspector and adding commandbar items in its event... but i am not able to do that... can anyone please post a code to handle that problem and make it work. ....commandbar button loads in one word app . bt not in 2nd instance of word document This forum does not cover COM Add-ins, ...Show All
SQL Server Urgent!!! Dynamic Query Problem.
Right now i am working on a reporting project. I am using SQL server 2005 Reporting services for this project. In my project I want to pass table name as a parameter to report. I tried but i cant get result. In other words, i want to generate a dynamic query in which i want to pass table name as parameter. This table name and other parameters are passed to report from .aspx page. I use @financialyear as my table name parameter in sql query of report, but it give me error that " @financialyear variable must be declared ." If anybody know answer pls reply me fast my deadline for project is near. What is not working about it visual I have many reports that work this way. Sounds like you ...Show All
Windows Forms Experts respond plz! How to get list of Processes and their full file name/path? -
Hi All, I've spent two days on google trying to find a suitable solution for getting the full path of the running process but invain.My question is very simple I want to know the full path of the running excel instances. for example if I've 2 instances of excel running currently, I need to know the full path name including drives and directories.I can get the base exe file but not the full path i.e., I can easily get the C:\Program Files\Microsoft Office\OFFICE11\excel.exe path but not some thing like "c:\rama\xyz.xls" through either vb6 or .NET solution. Is there anyway to get the full qualified path from the list of running process I used the following function but it only gives filetitle but not the full pa ...Show All
SQL Server UPDATE where table_name is a parameter
Hi everybody, I'm creating a trigger on update of a table. It simply updates the last change of a specific field to all other tables linked to this field, which is a sort of master-key of the whole database. This trigger works on two different databases: in the first one the tables are "fixed" and I use this statement: update [Dda_additional] set site_id = (Select site_id from Inserted) where site_id = (Select site_id from Deleted); In the second one the number of the tables is a variable, because the adminsitrator can create and delete them with a web-application. That's why I'm using a cursor to extract the name of the tables in this database and then I pass these values to the update query. Here's my code: DECLA ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Help with Managed DirectPlay Lobby Client/Launcher
Can someone help me with the following managed DirectPlay code for lobby launching Age of Empires II Microsoft::DirectX::DirectPlay::Lobby::Client^ connection = gcnew Microsoft::DirectX::DirectPlay::Lobby::Client; Microsoft::DirectX::DirectPlay::Lobby::ConnectInformation^ ci = gcnew Microsoft::DirectX::DirectPlay::Lobby::ConnectInformation; ci->GuidApplication = *(gcnew Guid("FB69A260-5031-11d3-A2D4-006097BA6550")); ci->Flags = Microsoft::DirectX::DirectPlay::Lobby::ConnectFlags::LaunchNew; ci->UseConnectionSettings = true; ci->ConnectionSettings.PlayerName = "MeTheHost"; ci->ConnectionSettings.HostAddress = gcnew Microsoft::DirectX::DirectPlay::Address("localhost",47624); in ...Show All
Smart Device Development how to detect if phone is "turned off"
Hi folks, Some of our customers have reported a strange intermittent problem with thier WM5.0 devices. Apparently our application loses it's GPRS connection, and when the user tries to make a call, they are informed that the phone is "turned off" and they are asked if they want to turn it on. Once they do that, our app reconnects and starts sending data again. The app works fine after a device starts up, this happens after the device has been working for a while, it's almost like the device has gone into flight-mode. 1. Any ideas why this might be happening 2. Is there a way we can programatically (vb.net 2005, .netCF 2.0, WM5.0) check to for this condition and turn the phone back on Our app will try to send data ev ...Show All
.NET Development How can I deploy to the 'All Users' data directory?
In my deployment project, I want to place a file in the "All Users" application data directory. When I use the Add Special Folder option, however, this option is not available. There are several options for the current user (and then when you build it, you get warnings that you shouldn't place it there because other users won't be able to access it). Besides that, there are several other folder options, all of which are inappropriate places to place common user data. I don't want to hardcode a folder path because then it won't work on the various flavors of Windows. Question: Is there a way to accomplish this If not, why not I can't think of a good reason why the "All Users" application d ...Show All
