DennisW511's Q&A profile
.NET Development Language "en-us" does not work for SrgsDocument.Language
Hello, I can't set the .Language property for SrgsDocument, I converted this sample to VB because the original sample does not work : http://msdn.microsoft.com/msdnmag/issues/06/01/speechinWindowsVista/default.aspx loc=&fig=true#fig8 But when I launch it, it displays the following error message : System.InvalidOperationException was unhandled Message="The language for the grammar does not match the language of the speech recognizer." Source="System.Speech" What happens next is, when I try to set the Language, it still gives the error above, whether I put a string or an integer. The original documentation : http://msdn2.microsoft.com/en-us/library/system.speech.recognition.srgsgrammar.srgsdocumen ...Show All
Windows Forms Generic Drag and Drop (no hardcoding source in target's events)
All the drag & drop examples I have seen on msdn and google are between 2 controls that are aware of each other. The target control knows exactly what the source control is and vice versa. However, in a more realistic environment, the target control shouldn't need to know where the source is coming from or even modify the source at all. For example, let's say I have two listview as source (lvSrcA, lvSrcB) and two listview as target (lvTarA, lvTarB). The rules are as follows: lvSrcA to lvTarA - Move lvSrcA to lvTarB - Copy lvSrcB to lvTarA - Copy lvSrcB to lvTarB - Move The ideal way to implement this is if in the target's dragdrop event, the target can ask the source what to do. Right now, lvSrcA will always have to ...Show All
Game Technologies: DirectX, XNA, XACT, etc. HLSL lighting
I am using pixel shader for lighting. I have a questions about computing different lights (directional, point and spot) and their components (ambient, diffuse, specular). What I am currently doing is I compute all of the lights and their coponents seperately, then I add the components for each type of light. So I have a diffuse, ambient, and specular colors for each type of light. First question if I have two spot lights at two seperate points after i compute the diffuse, ambient, and specular for each light do I just add them together and divide them by two. If I do that then they lose some if the power then if I just had one light. My second question is how would I put the different lights(directional, point and spot) together. What i' ...Show All
Visual Studio 2008 (Pre-release) Referencing a Class.cs File in Xaml ???
How do i reference a Class.cs file in Xaml that has "No Namespace" , so the controls in Window1 will read the Class.cs File.. The Class.cs file is a Public Class so its readable just getting Window1.Xaml to see the file, and the Controls do what their suppose to do... Cause some of the Controls coding is in the Class.cs File!! Like referencing the public static void startListening() { // some code in here } So the StartServerButton in Window1 will intialize the public static void startListening() "Thats in Class.cs "... Perhaps you could show a simple .xaml and .xaml.cs of what you are trying now. <Button Click="doit">Go</Button> ...Show All
Windows Forms Capturing AxWebBrowser events locks browser
My WinForm application hosts an AxWebBrowser control to display HTML help files. Now I'm trying to capture all mouse click events so that I can take the right steps if the user clicks a certain hyperlink element. I have followed the instructions from Microsoft (http://support.microsoft.com/ kbid=312777) to accomplish this but what happens is, if I add the onClick event handler the browser becomes (partly) disabled: the context menu doesn't work any more, the same holds for the scrollbar (wheel functionality is disabled), I'm not able to select text, etc. Is there a problem with my code (see below) Or is there a better solution to this // Customize AxWebBrowser control ... this.webBrowser.DocumentComplete += new AxSHDocVw.DWebBrowserEvent ...Show All
SQL Server SQL Server Event Alerts on 2005
We recently upgraded from 2000 SP4 to 2005 SP1. All of our alerts carried forward and we set up database mail which works fine. We have 2 event alerts that search for a certain text that we cannot get to fire. I can create a test alert and set it on a performace condition and it will fire off the emails fine. As soon as we change it to a event alert and type in text that we verified is in the event viewer application log we cannot get it to fire. We forward all events and created a custom job that will write to the event log and then forward it to our management server were this alert should be picking up these events becasue of the text search but it is not. I even changed the text to system generated text that is in the log already and i ...Show All
.NET Development FW11 - Temporary ASP.NET Files
We've developed a number of EnterpriseServices objects that are used by a number of webservices. And run into a re-deployement problem for these Enterprise services. Lets call the EnterpriseService class library WTL.DLL. Each and every webservice that use the services from this Enterprise service library get a WTL.DLL library. These dll files end up in the Temporary ASP.NET Files. Now when we need to update the EnterpriseService without changing the interface the "old" dll files are still being used and multiple copies sit under the Temporary ASP.NET Files folders where they are locked while the asp.net app is running. Reploying the Enterprise services object does not help. It can hardly be the case that when an Enterprise Ser ...Show All
SQL Server SQL Agent Roles
I have a domain account that is assigned the the SQLAgentOperator, SQLAgentReader, and SQLAgentUser roles. That domain account is able to create a job and delete the job. But, it is unable to edit the job. If I create a SQL Login with these same permissions, it is able to edit the job. What am I missing We were looking forward to implementing these new built-in security roles because we had to use our own security roles to give us similar functionality in SQL 2000 but it doesn't seem to be working properly in 2005. Michelle it is a BUG ( more like a flaw ). We have the same issue. But thanks to your thread, now we'll use the workaround and for the moment create a jobadmin-user and distr ...Show All
SQL Server wmiprvse.exe
Coincident with installing SQL Server 2005 Express, i.e., correlation only (for now), I have been getting a dialog indicating an application error with wmiprvse.exe . I cannot find any cause and effect. This is on a XP-Home OS which also has VC++ 2005 Express on it. Anyone have a similar experience Thanks. Thomas FWIW, my post "How do I turn it off " of yesterday (12/27/2006) and the applied answer have also "solved" this problem on the one machine that it was happening on. That is, I did not get the wmiprvse.exe application error at time 2204 that I had been getting ever since installing SQL Server 2005 Express. Not sure what wmiprvse does not li ...Show All
Windows Forms Custom Action dll in C#?
Is it possible Getting entry point not found when building. No it can't. Well let's put it this way. If you use .NET Installer classes in any managed code language, Visual Studio setup projects call them by inserting a shim C++ Dll between the MSI process and the Installer class. The MSI process calls the type 1 deferred custom action in the C++ Dll, and that cranks up the CLR to call a managed installer class handler. If the original question was meant to be something like "can an MSI setup call a C# Dll like it can call a C++ Dll" I'll stick to my original answer of "no". I suspect you may have set your custom action properties so that MSI tried to call a C# assembly as if it were a C++ Dll(because you set Ins ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Using the framework with WinForm controls
Anyone have any idea on how to redirect the rendering output to something like a winform Panel control, so that I could use the framework for traditional applications Yeah, you want to look at GraphicsDevice. The constructor takes a handful of arguments. Depending on your situation (i.e. how you want to select which device to use), it might be as simple as PresentationParameters pp = new PresentationParameters (); pp.IsFullScreen = false ; // set other present params here, generally going // with the defaults is somewhere to start. GraphicsDevice device = new GraphicsDevice ( GraphicsAdapter .DefaultAdapter, DeviceType .Hardware, myForm.Handle, CreateOptions .Hardwar ...Show All
Visual C# Threading a method that has parameters...
Hello, I would like to know if there is any option to call a function with parameters in a seperate thread I currently have a work around using public varibles inside my function. That way I am able to create a thread and run the function in seperate thread. Pls give me some suggestions or example code. Thanks, Sathish From ParameterizedThreadStart documentation: // To start a thread using a shared thread procedure, use // the class name and method name when you create the // ParameterizedThreadStart delegate. // Thread newThread = new Thread( new ParameterizedThreadStart(Work.DoWork)); // Use the overload of the Start method that has a // parameter of t ...Show All
SQL Server cannot use datasource column twice in ssas - IBMDB2
We develop ontop of IBMDB2 and cannot use a column twice in the model. To work arround we have to add for every usage of the column and additional column with new name to an DB2 view and use the new column in the olap model - thats really annoying. Does someone know a solution to solve this because ontop of sql server you could use a column N times (for example for: name, key and some other attributes - in with DB2 we have to add 3 columns.) The Error Message we got is "Error in Backend Relational Model - OLEDB Reported unknown Status ' ' for column.". Our System: Analysis Services 2005 SP1 ENTERPRISE 64 Bit on Windows 2003 64 Bit connection with the IBMDADB2.1 64Bit OLEDB Provider from the IBM Client Version 8.2.4 to ...Show All
Smart Device Development Application terminated unexpectedly, and no any message
Hello I'm creating an application on Windows Mobile 5 using c#. This application uses the WebBrowser control to show a specific website. The problem that i am having occurs when the app runs on the device. (Motorola Q). For some strange reason the application shuts down as soon as it gets to the line : this.webBrowser1 = new System.Windows.Forms.WebBrowser(); which is in the InitializeComponent() method. It does this without an exception. When i connect the device and debug from VS.net 2005. The app shut off and i get a cannot connect to this device message. Could you please provide a cut down, but complete and compliable repro code You can post it here or e-mail it to me (remove “online” form e-ma ...Show All
Windows Forms displaying enum's to a user
hi there, //example enum: public enum Status { New=0, Modified=1, VeryOld } //using enum: myobject.Status=Status.VeryOld //example of displaying it to the user: myobject.Status.ToString(); The user will see the "VeryOld". How can I actually store the spaced value in the enum i.e. "Very Old" or do I have to manually check the enum and then add the space This is not possible. You can use a translation class, that translates a enum value to a localized string for het user, like: public String GetString( Status value ) { switch ( value ) { case Status.New: return "New"; } } ...Show All
