publicENEMY's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. YawPitchRoll`
There is no YawPitchRoll matrix in XNA..... Why There you go.... public static Matrix CreateYawPitchRoll(float yaw, float pitch, float roll) { Matrix yawMatrix = Matrix.CreateRotationZ(yaw); Matrix pitchMatrix = Matrix.CreateRotationY(pitch); Matrix rollMatrix = Matrix.CreateRotationX(roll); Matrix combined = Matrix.Multiply(Matrix.Multiply(yawMatrix, pitchMatrix), rollMatrix); return combined; } ...Show All
Windows Forms Treeview
How do I can enlarge Treeview nodes and texts for using my program in Information kiosk . program is sensitive on finger ticks . Hi, You can just set the ListView.Font to what you want.e.g. treeView1.Font = new Font("Tahoma", 12, FontStyle.Regular); ...Show All
SQL Server SQL Server 2005 - Bad Image Header
We are getting messages in our log files that we believe are coming from the database. These messages say "bad image header". What could cause this to happen and what can we do to fix this problem and prevent it in the future Thanks, Michael Hi Michael, What log files are you referring to Can you please share a snippet Thanks, Ron D. ...Show All
SQL Server USER GROUP rights in SSRS - permission problem for reports
Hi I use SSRS 2005; i deployed some reports on the server; the structure of the reports deployed is as follows HOME -> JPTO Dashboard(Folder) -> Daily Analysis (Report) I have to give users permission to access it. there are some more then 1000 users. many users belong to some outlook group so i added CORPUSERS\<Group Name> in the HOME Permission section. but surprisingly few users in the group can access and few cannot no idea what is wrong. where Also some group have group defined inside it which internally have users. but it seems when i add such group non of the users can access the report. Do i have to add each users to the report (for me more then 1000 ) any idea how to resolve the permission ...Show All
Microsoft ISV Community Center Forums Read Data from Execel with VBA and write to txt file
I'm need to write a Excel Macro that will read the worksheet and write the data int a fix format txt file. I need to check the value in column A and if the value changes I need to insert a blank row. you can check the value of a particular cell in your worksheet by .cells(rowNumber,columnNumber) so use that to compare to your initial value, and go from there. is that helpful at all kriti ...Show All
Visual C# why the format is not uniform
private void port_DataReceived(object sender, SerialDataReceivedEventArgs e) { comport.ReadTimeout = 300; String s = comport.ReadExisting(); using (StreamWriter sw = new StreamWriter(@"C:\test.txt",true)) { sw.Write(DateTime.Now.ToShortTimeString() +" "+ s); sw.Flush(); sw.Close(); } } The above method is used to write data from the SerialPort to a text file. Below is the result I get in the test.txt: 4:22 PM 1 4:22 PM 2 3 4 5 6 4:22 PM 7 4:22 PM 8 4:22 PM 9 a 4:22 PM b 4:22 PM c 4:22 PM d 4:22 PM e 4:22 PM f Why for "3,4,5,6" there are no time ahead I was lost and could no find the reason.... ...Show All
.NET Development WSE 3.0: MTOM response mandatory for MTOM request?
Hi, I have a problem calling an MTOM-capable Java WS from .NET 2.0 + WSE3.0. The client uploads some binary data using MTOM, the server answers with a simple status code, that is not MTOM encoded. It seems however that the .NET client needs an MTOM response for an MTOM request: System.FormatException: WSE839: An HTTP response was received that used the following content type: text/xml;charset=UTF-8. The following content type was expected: multipart/related; type=application/xop+xml. The obvious and working workaround was to send some dummy binary data in the response that forces MTOM encoding at the Java server side. My question is: can the .NET client be configured not to expect an MTOM response for an MTOM request Than ...Show All
Game Technologies: DirectX, XNA, XACT, etc. My first game... Asteroid Defense.
In this game you are a ship protecting a planet from incoming asteroids. Controls: 360 controller: Left Joystick -- Move ship left and right. A -- Shoot Right or Left Trigger -- Change Weapon. Keyboard Left and Right Arrow Keys -- Move ship left and right. Up and Down Arrow Keys -- Change Weapon Space -- Shoot The weapon you are using is shown in the top left corner. The stronger the weapon you use, the less points you get for destroying an asteroid. Levels progress at timed intervals and more and more asteroids come down. You lose when one of them reaches the planet. Screenshot: http://www.rocketsoft.gm-school.uni.cc/uploads/ADScreen.JPG Game File: http://www.rocketsoft.gm-school.uni.cc/uploads/AsteroidDefense1.1.rar All in ...Show All
Visual Studio Team System A contributor cannot access work items??
Hi, I am the project admin in team system and i recently added a user as a contributor in the project but for some reason he cannot access the work item folder (Red x) and even worse, he cannot do any check in because we have the work item policy activated and he cannot select a work item from the list. He gets the following error when he tries to acces the work item tab: The query has encountered an error Object reference not set to an instance of an object I have added many users and this is the first time that it happens Has anyone ever had this problem Could it be a bug I also read a post where someone said that it could be a network config issue but i haven't found any difference between his machine and mine... ...Show All
Windows Forms how to check if Ctrl key is down on MouseClick Event
Hello there. I need to check if Ctrl/Shift Button are down on Click Event. This is going to be used to select items. Sincerely: Jonatan Nilsson Use the static Control.ModifierKeys property, like this: (from the MSDN documentation) private void button1_Click(object sender, System.EventArgs e) { /* If the CTRL key is pressed when the * control is clicked, hide the control. */ if(Control.ModifierKeys == Keys.Control) { ((Control)sender).Hide(); } } ...Show All
Visual Studio 2008 (Pre-release) Impersonation problem?
Hi, I seem to have discovered some rather strange behaviour inside a service when trying to impersonate the caller. I'm using WsHttp binding with default settings - no additional BindingConfiguration specified. My client side proxy is generated using the 'Add Service Reference' function from Visual Studio. The problem arises when the clientside proxy has its AllowedImpersonation property incorrectly set to the default 'Identify value', as in proxy.ClientCredentials.Windows.AllowedImpersonationLevel = System.Security.Principal. TokenImpersonationLevel .Identification; On the server side, I'd expect the WindowsImpersonationContext impersonation = ServiceSecurityContext .Current.WindowsIdentity.Impersonate(); call ...Show All
Commerce Server Specification Search
Let's say I have a category with 3 child categories. For example: Media with child categories of DVDs, CDs and Records. If someone is viewing the media category and they do a specification search, I would like the child categories to be part of the specification search property list. Anyone have any suggestion on how to implement this Regards, Brad I'm trying to figure just how you implement the CategoriesClause, i.e.it expects a string - is that delimited with spaces, commas, etc. ...Show All
Visual C# General OOP Question on Formatting
I have a general question on "how do i do this" using best practices of OOP. My functional requirement is to implement a standard response formatter in my code. This standard response formatter will take one parameter and format it into a standard response, for simplicity sake "ABC" + parameter, and return it to the client/consumer. What is the best way to ensure that a consistent format is implemented. My current code implements and Interface, IStandardResponseFormatter, and requires that subscribers implement a method StandardResponse. The only problem with this approach is that the enforement of the actual format ("ABC" + parameter) is not enforced. How do I enforce this And is this an overall good appr ...Show All
Windows Forms using CMD.exe in form
I am trying to use a CMD command line inside a form. i just need to execute the net session command line and have the result displayed in a form... I can achieve this via referencing a batch file then calling system.process.start but this is not what i would like to do. if there is any way i can address cmd.exe commands correctly then that would be great. thanks try this: System.Diagnostics.Process.Start("net", "session"); I hop this will work fine as you are expecting! Best Regards, Rizwan ...Show All
Smart Device Development About Bluetooth Chatting
While Developing the application whether is it Necessary to have two mobile phones for Chatting using Bluetooth Technology or we can develop by having the Emulator itself ...Show All
