Software Development Network Logo
  • .NET Development
  • Visual Studio
  • SharePoint Products
  • Visual C++
  • IE Development
  • Visual Basic
  • SQL Server
  • Windows Vista
  • Windows Forms
  • Visual FoxPro
  • Microsoft ISV
  • Game Technologies
  • Audio and Video
  • Visual C#
  • Smart Devicet

Software Development Network >> mehran farshadmehr's Q&A profile

mehran farshadmehr

Member List

AP Erebus
cosimog
Cormac Redmond
bryanedds
johnb01
ssmorgan
BhuttCrackSpackle
Dhondtie
user_whatever
jptrt
Inetcor
XNA Rockstar
ELIJAH E.
Jeffrey Brown
hypo
andrew17
bboylen
sdoc
QWERTYtech
AliciaV
Only Title

mehran farshadmehr's Q&A profile

  • Game Technologies: DirectX, XNA, XACT, etc. XInput wrapper

    How are people wrapping up XInput Many games only care when the player starts or stops pressing a button. State changes. Edges. XInput lets you check if the button is currently down or not, but leaves the rest to be handled at a higher level. Is XNA Framework planning to handle any of this I wrote a quick wrapper that just checks for state changes and fires off events using delegates. This is a good start, but requires an update from the game loop to check for those changes. Even at 60Hz, I imagine it's easy to drop edges, and god forbid the game hitches due to some nifty effect. Losing an input would be pretty annoying for a fighting game. Lacking interrupts, it seems the best solution might be to dedicate a thread to monitoring control ...Show All

  • Visual C# How can I work around this bug in VS2005?

    hi, First, I would think it is a bug. Hopefully the sp1 fixed it. We have VS2005 Professional Edition with version 8.0.50727.42 on XP Pro. The problem we have is, we are working on a project using .net compact framework 1.0 for x51(windows mobile 2005) pda. When I try to debug the project, first, VS will start to deploy the project to pda, and then start debugger to debug it. Normally, it works fine. But if the connection on ActiveSycn is broken, or PDA is dead, VS could not figure it out and keeps deploying, never return. And I did not see anywhere I can stop it. The Cancel in Build is not working in this case either. So, I have to close the whole solution or even kill the whole VS2005. Is there anyone who has the similar experience Th ...Show All

  • Visual Studio error on sr1 update

    I have updated visual studio 2005 on an xp machine and am able to use sql server compact edition in my projects now. Everything works fine. I have tried to update vs 2005 on a server 2003 machine several times but it fails with the error code 0x643. Does anybody know what this is I have the same issue when I apply SP1 to VS 2005 Standard on Windows Server 2003 SBS. Do you ever try the solution in the SP1 download page "Under certain conditions when installing on Windows Server 2003 or Windows XP , a digital signature verification error can occur. Please see Knowledge base article 925336 for details and resolution" I tried it and it didn't work. Hope it is helpful to your case. ...Show All

  • Visual C# How to get the ASP.Net controls

    Hi All , Could any one tell me how to include the DynamicImage control in Visual Web Developer Express Edition, i searched in the controls tab ,but i didnt find You are best to probably ask this question on the ASP.NET forums over at http://forums.asp.net they would reply quicker probably and the entire site is all about ASP.NET! Be sure to specify which version of ASP.NET you are using (Express) ...Show All

  • Visual Studio Express Editions Change *.BackColor using Red, Green & Blue integers

    Probably something really simple but... I dislike the Color Dialog provided, and it pretty much just won't work for what I'm trying to do anyways. So here I have made my own Color Dialog that I made using scrollbars. There are 3 scrollbars, Each represents a Color (Red, Green, Blue). When the Scrollbar changes, I have a label which tells me the the "amount of Red" (min of 0, max of 255). I can successfully convert the number into hex, however I wish to update the BackColor of a label. Next to the red scrollbar I have a label which is going to display the actual color (same with green and blue) and another label which is going to display the final result of the colors mixed. Basically I'm a little stuck (semi-beginner ...Show All

  • Visual Studio Express Editions How to create blank solution ?

    Hi, As I remember there was project template called 'blank solution' in vs 2005 pro. I'm using vs 2005 express (c++) and can't find a way to create blank solution. Maybe I can download that template somewhere thanks What you can do is create a new console application and when you click next, choose to have an "empty one". Thanks, Ayman Shoukry VC++ Team ...Show All

  • Windows Forms Formatting text in rich text control

    Is it possible to format the text (such as bold, italics etc) at the time of entering the strings into a text control, not thru code but via the text field on the control's property page private void HighLightText( string text1, Color color1, bool matchWholeWord) { int lFoundPos; int lFindLength; int lOrgSelStart; int lOrgSelLen; int iMatchCount = 0 ; lOrgSelStart = rtf_cvText.SelectionStart; lOrgSelLen = rtf_cvText.Rtf.Length; lFindLength = text1.Length; if (matchWholeWord) { lFoundPos = this .rtf_cvText.Find(text1,0,lOrgSelLen,System.Windows.Forms. RichTextBoxFinds .WholeWord); } else { lFoundPos = this .rtf_cvText.Find(text1,0, ...Show All

  • .NET Development Deployment only works with the debug dlls and manifest

    Problem: I have created a deployment project. However it only works if the following nonredistributable files are included: Microsoft.VC80.DebugCRT.manifest msvcm80d.dll msvcr80d.dll If these files are not included in the project, I get the following message if it is put on a machine with only the dotnetfx framework: "This application failed to start because the application configuration is incorrect" If I put in the redistributable versions of the above files, I get the same error message. Question: What do I do to make the redistributable versions work in the deployment ...Show All

  • Visual C# A question of OO structure...

    Hello All, I'll do my best to explain what I'm trying to accomplish and look forward to any and all suggestions you have for the "proper" way to do this (realizing there is no 100% correct way, but some methods are more optimal than others). I apologize in advance for my n00bness. For this example, I'll use football (american) players. I want my Player class to have a List<Stat> collection of my Stat class. Each Stat, which is an indicator of how well a player plays a particular position, should have a base value but be able to return a "true" value which is a calculation of the base value plus a percentage of one or more other stats. For example: a Player's Halfback stat might be base value plus 50% of the Fullba ...Show All

  • Visual Studio 2008 (Pre-release) Could not find default endpoint element that references contract IService1 in the ServiceModel client configuration section

    Hi, I am getting the above error. When I try to generate the proxy using svcutil, I get an error as: "There was an error importing a wsdl:binding that the wsdl:port is dependent on".. But the proxy .cs file is generated. The host is running perfectly and I can view the wsdl. Can someone help me out with this Also is there any example available somewhere that I can use. I tried using MSDN Virtual lab example but I am getting the same error with it too. Thanks, Akhil Jindal I got the same error. But the problem i made is that i had my proxy inside the namespace, whilst on the app.config i referenced it as "IMyContract", instead of "MyNamespace.IMyContra ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Riemers.net -- 4th Series finished: Final screenshots

    Hi all -- I've been working on a 4th Series of XNA Tutorials, which deals with advanced terrain rendering. This series is completely new; it is not a translation of one of my MDX series. The graphical part of the series has been finished, so you can already have a look at some screenshots: XNA Tutorials Series 4: Advanced terrain You can expect the first chapters somewhere next week. I first have to clean up some code and get the skydome exported to a .x file! If you have some experience with this, head over to this thread please.   ps: you can find links to 2 larger screenshots in the 3rd paragraph. I think Reimer's tutorials are probably the best around, but I know what you mean - I did find it di ...Show All

  • Visual Studio Express Editions Datagridview looses column ordering information

    I’m using datagridview, and builds up the columns in Visual c# wizard. I then re-arrange the columns so that I get each column where it should be (still in design mode). When I click Run from VS, it shows perfectly as it should be. However... When I click Build, the column order is completely destroyed each time I do that, already in the designer. It’s pretty hopeless ;) It happens at the same time I push Build. I have also tried to lock the gridview, but it doesn’t help at all. Build destroyes colum ordering each time. How can I solve this I would absolutely love to know how to solve this problem, i've been dealing with it for over 6 months now... What i end up doing is writing a method that rebuild ...Show All

  • SharePoint Products and Technologies Links wander from domain name to NetBIOS name...

    Having setup MOSS a few times now, I guess maybe I'm just confused as to how set it up properly. I've set up the access mappings for a web application as such: Zone Internal External Default http://ComputerName http://ComputerName Extranet https://domain.name.com https://domain.name.com For some reason when a user goes to https://domain.name.com and clicks on MySite they are redirected to http://ComputerName Any thoughts -gg- Kiral, Sort of. We have an SSP that runs on a separate web application, however we have the web app mapping the mySites back to port 80 where our main web application is. -gg- ...Show All

  • Visual Studio DSL Model load failures - Duplicate entry in ElementDirectory

    Hi, I have a model that won't save or load properly. After loading the model instance within the XB, I get the following exception Element with ID 38087e57-3d59-4ce8-a8a4-99dea056e26c already exists in element directory. which breaks into this line of dslDefinition.dsl /// <summary> /// Constructor /// </summary> /// <param name="partition">Partition where new element is to be created.</param> /// <param name="propertyAssignments">List of domain property id/value pairs to set once the element is created.</param> public dcFeature2(DslModeling::Partition partition, params DslModeling::PropertyAssignment[] propertyAssignments) : base(partition, propertyAssignments) ...Show All

  • SQL Server sum of distinct values

    Hi all, I need a sum on distinct values. I have various duplicate details lines and just need to sum the unique values. The distinct values have been calculated on one group footer (employees), and now I want to sum the distinct values into the below group footer (Team Leader). Can anyone assist me with this. Regards, Alana I know exactly what you are trying to accomplish. I worte a function based on the link below in Code and used it. This works fine. http://blogs.msdn.com/bwelcker/archive/2005/05/10/416306.aspx But the only disadvantage with this is you have to create similar function if you have to do a sum for another distinct field. I hope this helps.. Thanks, ...Show All

©2008 Software Development Network