JIM.H.'s Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Whats the difference VS 2005 Pro + DirectX and XNA?
Hello! Whats the difference between having VS 2005 Professional and installing the DirectX SDK to the XNA framework Is it that with XNA you can develop to XBOX Since I don't have an XBox I can just as well just stick to using DirectX from VS Pro Thanks in advance! Regards, -Martin Hello Martin! So, XNA is a framework to make easy create games in both plattaforms, xbox and PC. And not is only it. It show for us lots of classes to make easy the coder job. XNA comes to make coding in MDX a deprecated action. go to http://msdn.microsoft.com/xna and see in xna website all info you need about it. Go too to XNA Blogs and see what are new in coding in XNA. Hope help and sorry my bad english... ...Show All
Game Technologies: DirectX, XNA, XACT, etc. .Net Framework 2.0/XNA Framework Integration?
I was perusing the Microsoft.Xna.Framework classes and didn't see any for networking or scripting. I know both (and more, like reflection) are part of .NET Framework, and from http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=694459&SiteID=1 , the claim is that XNA and .NET Framework will remain independent for the time being. Will it still be possible to integrate functionality from the .NET Framework into XNA, assuming I write games for Windows, without having the two frameworks step on each others' toes OK that's good to know... Makes me wonder if there is a way to integrate a webcam into a game. My dad just got one, and I immediately thought of a team player view as part of the HUD. ...Show All
Visual C# Convert String to DateTime Object
Hi All I am new to this forum... I am storing string "21-07-2006" (21 July 2006) in a string variable and want to store this value in a DateTime Object. As it takes value in format #MM-dd-yyyy# i have to convert this value into this format. I have tried this string Objdate = "21-07-2006"; Response.Write(Convert.ToDateTime(Objdate ).ToString("mm-dd-yyyy").ToString()); But It generate Errors "String is not n correct date time format" ...something..2 Pls help Sachin First...Thanks for reply...but error is the same on the line... string myDate = "21-07-2006"; DateTime myDateTime = DateTime.Parse(myDate); & ...Show All
.NET Development Object Factories with Lazy Loading in C#
I'm looking for a lazy loading solution in c#. The idea is, to have a kind of object factory, which will be responsible for creating my entity objects. When a property of such an object is accesed and it is not yet loaded, the factory (or a magic watcher) will be able to pause the execution flow for a while (maybe that step is not necessary) load the missing data (don't know how to specify, from where to load that data----maybe via attributes) and return to the flow. My entity objects, do not have a possibility to load the missing data by themselves, because they are only data containers having private members, which are accessible via public properties. These objects need to be filled with their data from outside, and therefore man ...Show All
Visual Studio 2008 (Pre-release) Can't uninstall WinFX beta 2 (specially WCF Components)
Hello I have a problem uninstalling WinFX beta 2. During the uninstall i get a error EventType : wap10setup P1 : 13165 P2 : 3.0.03906.22_waprc0_x86_sfx P3 : mc P4 : inst P5 : f P6 : dd_ca_uninstallxwsregexe_x86.3643236f_fc70_11 P7 : 0 P8 : 1603 P9 : - P10 : windows communic I used the repair funtion(wich crashes also), but the uninstall problem stil exist When in look deeper in to the uninstall process i figured out that it is a problem in the Windows Communication Foundation Uninstaller. When in run "servicemodelreg /u" from the command prompt i get a message Are you sure (Y/N) y Uninstalling: Machine.config Section Groups and Handlers Uninstalling: Xws System.Web Build Provider ...Show All
Visual Studio 2008 (Pre-release) Does vNext support nested typed queries?
I was playing with vNext trying to figure out how does it handle object identity and found out that following construction always throws exception ("invalid command format" on the second foreach) var query1 = <select> var query2 = <select> (exactly the same as query1) foreach (QueryObject object1 in query1) foreach (QueryObject object2 in query2) { if (object1 == object2) Console.WriteLine( "tada" ); } Hello, What are you running your query against Is the db.Shipment an Entity Model, or a dataset Thanks, Erick ...Show All
Visual C# How can I see which component is, using "sender" on onClick method
I would like to use only one OnClick() for all my buttons in a windows form. How can I see which button has been pressed base on "sender" object inside of the onclick method thanks in advance for your help, Edward cast the sender parameter to Button type and you can see the Name, Text property which will tell you which button is clicked. private void buttons_Click(object sender, EventArgs e) { Button clickedButton = (Button)sender; MessageBox.Show(clickedButton.Text + " clicked!"); } ...Show All
.NET Development ftpwebrequest
I have met a intersting problem here,but i am unable to solve it. I used the ftpwebrequest to upload files to the ftpserver path.when a small bytes file like a text file of 1000 bytes is uploaded using this source code,its smoothly uploads the file to the customer path.when the file bytes is more than 5,000 bytes,only 4300 bytes are uploaded in the serverpath.The remaining bytes are discarded.i.e the uploaded file size in the ftp server path is not same as the file uploaded from the local path.I have very much confused with it. This is the code sample, Dim ftp As System.Net.FtpWebRequest = CType(WebRequest.Create(Trim(topath) & fil.Name), FtpWebRequest) ftp.Method = System.Net.WebRequestMethods.Ftp.UploadFile ...Show All
SQL Server stored procedures compilation
Dear all, Programmer had writen a stored procedure which gets executed on the page load of our website. if the page is refreshed 10 times the stored procdedure gets executed 10 time. Is there any way to stop the stored procedure compilation. Regards Mohd Sufian i think you must have a look at Query Notifications feature of SQL 2005. read Using Query Notifications in BOL. Basically , u have to enable service broker on your database. Madhu ...Show All
Visual Studio Express Editions custom right mouse button menu
Hello, I would like to create custom menus for users when they right mouse click on my app. Is there a way to do this Thanks, Jeff Yes, ContextMenuStrip class will allow you to add a context menu to your controls and forms... Andrej ...Show All
Visual C++ msvcr80.dll Problem
Hi there, can someone possibly tell me why Noton WinDoctor is telling me that 10 executables in the .NET Framework 2.0 cannot access the necessary dll file msvcr80.dll I see that the dll exists in the WinSxS directory and I'm running XP pro. I didn't have this problem until I downloaded the 2.0 framework at windows update. Any advice appreciated. Thanks. Naolin hello delta579! You are a genius!I have been trying for months to locate the solution to this problem.well weeks.Anyways the techs at verizon and msn were absolutely no help. finally an answer to a question!Thanks.it is nice to run windoctor and only get 1 error for a change that related to hpqgreg32.dll. my c:program files \hp\digital imag ...Show All
Visual Basic Size of a Tree DropDown Field
Hello, I want to resize the tree dropdown list: <aw:TreeDropdown id="tddlCategory" RunAt="server" CurrentValue="true" DataFileUrl="sidCategoryTreeUrl" Depth="4" ColSpan="3" DataTextField="leaf_value" DataValueField="value" DataLevelField="level" DataTextIndentedField="value_indented" ItemDataField="workitem_category_tree_value" Label="sidLblCategory" NoSelectionString="sidNoneDecorated" /> I want to change the size (to fix it) and I have tried "width" parameter but it does not work. <aw:TreeDropdown id="tddlCategory" RunAt="server" CurrentValue="true" ...Show All
Visual Studio 2008 (Pre-release) Setup the app.config for wsDualHttpBinding
Hey! I have problems to get the wsDualHttpBinding to work. I think it has to do with my app.config file in the client, but to provide proper information i will post everything. Contract(Class library): #region Service interface [ServiceContract(SessionMode=SessionMode.Required,CallbackContract=typeof(IHelloWorldCallbackDuplex))] public interface IHelloWorldPub { [OperationContract] string getResponse(); } #endregion #region Client interface public interface IHelloWorldCallbackDuplex { [OperationContract(IsOneWay = true)] void helloWorldCallBack(string inText); } #endregion #region Service contract [ServiceBehavior(InstanceContextMode=InstanceContextMode.PerSession)] public class helloWorld : IHelloWorldPub { IH ...Show All
Visual Basic Reusing Forms
Greetings I am converting a VB6 program containing multiple forms into a 2005.net VB program. In the old VB6 program I use a modal form and then I want to re-use the same form but but change some of the labels and make visible a control that was invisible the first time around. In the VB 6 version I was in, say, Form1 and executed the following code: Unload Form1 Form1.Show 1 This re-did the Load event and I used a counter to customize the form in its second life. Is there any way to do this simply in VS2005 VB Thanks again Dave. Your example worked beautifully for me. Now I've just got to clean up some of the rough edges. Wish I had asked a few days ago! ...Show All
Visual Studio Team System How to change process guidance template on existing project?
Hi forum. We have an existing team foundation project. Is it possible to change the process template from Agile to the one for CMMI I'm guessing I could overwrite som HTML files somewhere to get the content updated. But we also need to be able to create the new work item types when right clicking on the work items folder in team explorer. It is possible How do I do it The short answer is no, there is no way to change the process template of an existing project. Think of it like this: A process template in TFS is similar to a document template in Word. In Word, all documents are based on a template. The default template in Word 2007 is Normal.DOTX. It contains ...Show All
