gudel's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. equivalent to the MDX function Matrix.Transformation
Hi, What is the XNA equivalent to the MDX function Matrix.Transformation Thanks in advance! It doesn't currently exist in XNA. You will have to compose your own transformation by combining the Matrix.CreateScaling, Matrix.CreateTranslation and Matrix.CreateRotation methods. Maybe they will re-add that method since it's more efficient than creating all the transforms separately and then combining. ...Show All
Visual C# multithreading and locking best practices
Hello! Suppose I have an object (instance of my own class X) that is used by class A in AppDomain 1 and class B in AppDomain 2. These classes methods can be run in many different threads. Among properties of class X is a generic Dictionary object. I need to provide thread-safe access to this Dictionary (reading, writing and iterating over). I could create a wrapper class for the Dictionary with modified methods for changing its elements, and use locks there, but what about iterating over the collection using foreach loop If class A uses foreach, lock should be placed there, and locked object must be the same as in the wrapper class - that means visible outside class X. This can cause problems, as class B can lock the Dictionary in class X ...Show All
Windows Forms Setup cannot continue ..... urgent help please!!
Hi A client is installing a windows app, built with vs 2005 on winxp, on windows server 2003. The tester has admin priveleges. I have created setups for this company before without any problems. The message is : Setup cannot continue because some system files are out of date on your system. ... If anyone could shed some light on this I would very greatful. Thanks This is beacause of version conflict of file oleaut32.dll in c:\windows\system While making setup from package and installation wizard check if u have the latest version of this file, if not download this file and replace it ...Show All
Visual Basic Need help.. :/
How to click CommandButton1 in WorkSheet1 with CommandButton1 from WorkSheet2 Thank you Are you writing this code in VB.Net as these forums are intended for VB.Net development and it looks like from your description your using VBA (Visual Basic For Applications) code which is the internal language within Excel as you are referring to buttons on worksheets which definately sounds Excel related. You may find more assistance in following which specifically deals with MS Office development. the VBA specific forum http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=74&SiteID=1 Office Automation: office.developer.automation newsgroup http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office.de ...Show All
Microsoft ISV Community Center Forums filter doesn't seem to be working
Hi. I have a pivot table that works on all the records in a table. I want to apply a filter through VBA code as follows: DoCmd.OpenForm "fpvtAxisI", acFormPivotTable, , "[Part]='1a'" The filter doesn't seem to be working because all the records got displayed just as if there's no filter. I tested by putting the filter "[Part]='1a'" directly in the Filter property of the form. It didn't work neither. I have the same problem applying a filter to a report. What am I doing wrong thanks kevin ...Show All
Visual Basic getting infinite value...after 10000 value
i made this programme in console application this is my code and i want to the result of 100000 number.. but after crossing 10000 value i m getting infinativ values.... but in other language like java ...i run the same programme .....it is running perfactly can u guide me where i m doing mistake...rnd() is the random value.....here is the result which i want 0.9997669278359024 1.9879226451633236 0.9931218457149422 Module question1 Sub main() Dim c As Integer Dim RNDNO As Single Dim j, S, T, SX, R, I, SR, SI, X As Double c = 0 SX = 0 SR = 0 SI = 0 For j = 1 To 100000 S = 0 T = 100 - 500 * Math.Log(1 - Rnd()) RNDNO = Math.Log(Rnd()) 130: X = -Math.Log(rnd()) c = c + 1 SX = SX + X S = S + X If (S < T) Then GoTo ...Show All
Visual Studio 2008 (Pre-release) Render buttons without border
Hello, I use some Buttons containing images in my application. The images are partially transparent. Everything works fine, the problem is that a small blue rectangle remains around the every single button. I already tried to set BorderThickness to 0,0,0,0 - without success, nothing changed. Is it possible to render buttons completely without border or do I have to create a custom control Thank you very much. Regards, Benjamin Use this style and it will solve your purpose. < Style x:Key="Mahesh" TargetType = " {x:Type Button} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type Button} " > < Border x:Name = ...Show All
Windows Forms Can't disable a button
I am programming in c#. I have a button on my form that when clicked, it plays a wav file using the PlaySound method from winmm.dll. The wav is about 3 seconds long. The problem is that if I keep clicking the button during the 3 seconds the sound is playing, it queues all of the clicks, and plays the wav over and over. My Button is named btn. So I tried: this.btn.Enabled = false; PlaySound(...); this.btn.Enabled = true; Doing this successfully greyed out the button while the sound is playing, but it still accepts clicks, so it didn't fix my original problem. Is there some way to clear the event queue Or is there something else I'm doing wrong. I just want the button to not work while the sound is playing. I have also tried ...Show All
.NET Development Code was changed,but program run the code befor changing.
I changed a row of code in my program.The old row is: String connectString="server=10.13.100.22;database=hdreccpdb_3in1;UID=sa;PWD="password" The code after changing is : String connectString="server=10.2.2.252;database=hdreccpdb_3in1;UID=sa;PWD="password" But after execute the new row,I found that the value of connectString is the value befor changing.It seems that the the .net don't know I changed this row of code. Hi, i have had the same issue and the only way i have been able to get the new code working is by shutting down the IDE and stating it back up . i am not sure why we need to do this. is there a seeting to this effect (have not found anything as ...Show All
Windows Forms have any framework support windows-based applicaton ?
Hi,all: I'm a new user for prgamming use windows applicaton. In web applicaton programming, I had use some framework like UIPAB,Spring ...etc. Using framework can let me follow some rule to design my business logic. So I think this is the same as windows-based application. But I haven't found any framework use in windows-based application. Is there any more popular framework support windows-based applicaton thks. Rock You probably want to check out: Spring.NET and Microsoft CAB (composite UI application block) Daniel Leuck Ikayzo, inc Now hiring WinForms architects in Hawaii! Apply Now ...Show All
Visual Studio 2008 (Pre-release) How to use constructors or methods of data object with WCF service
I have some questions regading how to use of data object using WFC Service. For example I have an object called Student (see codes below), and property IsOver25 this is readOnly property. However, if I do not put set { ;}, it's won't compile . What I need to do here in order to get rid of set { ;} statement. Another problem is using contructors and methods of data object. Since we don't put [ServiceContract] on the data object, I could not use the override ToString() version of Student object on client side. So the question are: 1. What should I do in order to use the constructor of data object 2. What should I do in order to use the methods on data object ( will not many but somes) Regards, John dang using System; using Syste ...Show All
Visual C++ hangman project
Hello, I'm somewhat new to C++. I am taking a class on it in college, but the teacher doesnt like to explain things very well. Basically her idea of helping us learn C++ is this: "this is how you start all your programs in this class: #include <iostream> using namespace std; int main() { } " She never explainted even what "#include <iostream>" or "using namespace std;" ment. So, this brings us to my question. I'm trying to write a c++ program *for a project in class* that is a hang man game. The hangman is stored in a character array. The user is able to input a word into a 25 character array "char word[25];". There are a couple of things I need to do. the first thing is, I need to know h ...Show All
Visual Studio Team System ACTUAL Expected Behavior of the <WHEN*>, <DEFAULT> and <COPY> Rules
I am reading through Section 1.16 in the Authoring Work Item Types document and although it makes perfect sense I am not actually seeing this behavior. To quote from the documentation: 1) A user gestures to create a new work item or edit an existing work item. 2) Fill in field defaults. For all fields, use any <DEFAULT> rules which are outside <WHEN*> rules. 3) Copy field values. For all fields, use any <COPY> rules which are outside <WHEN*> clauses. 4) For all fields with a <WHEN> rule that matches first do <DEFAULT> then <COPY> rules inside. 5) For all fields with a <WHENNOT> rule that matches, first do <DEFAULT> then ...Show All
Windows Forms How to record screen?
Hi I wish to record the desktop/screen/particular window. The user clicks record button and recording starts till user clicks stop button. How do I access different windows from c#.net The window can be a webcam window of skype/yahoo or a windows media player playing a clip or the desktop !! Thanks Aseem Chiplonkar You could use "Windows Media Encoder SDK" to do that. This is a free tool offered by Microsoft. There is an executable in this package that will let you capture the screen when you wish to start and stop as a "Windows Media Video" file. There are plenty of other places that you can find tools to do the same thing... such as "Lead Tools". ...Show All
Game Technologies: DirectX, XNA, XACT, etc. FX Composer and DirectX Extensions for Maya (and Sas?)
I am writing my effect files with FX Composer, it's a really helpful tool. I'd like my artists to be able to apply the various effects from within Maya 8. In another thread, someone very helpfully provided a Maya 8 version of the DirectX Extensions, but I am still encountering some difficulities. The documentation of the DirectX Extensions are extremely sparse and I can not seem to find any independant tutorials or anything on it. I'm beginning to wonder if anyone else really even uses the extensions and why or why not. In any case, I'm able to load an FX file and it shows the parameters, but I can not get any sort of binding to work. I've tried normal semantics, I tried a SasBindAddress annotation, and a few other things, but not ...Show All
