WehSo's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Draw without Texture
do i HAVE to use a Texture/Texture2D/Texture3D loaded from a file to render anything within XNA, or can i give a buffer to a SpriteBatch or even tell it to just draw a simple line thankyou SpriteBatch can only draw textures, but if you write your own code that calls DrawUserPrimitives on the graphics device, you can draw any kind of geometry you like. You will probably want to set a BasicEffect, which has a property indicating whether it should draw textured or not. ...Show All
Visual Studio Express Editions Run proyect
Hello, i’m using visul c++ 2005 express (i start using 2-3 weeks ago), and this it’s my first time using visual studio. I had compile a proyect with it , bu i can not use the file .EXE , when a try to execute show error: It could not initiate the application so that the configuration is incorrect. Reinstalar the application can solve the problem . I have ask but what i underestand it’s tha i need add MFC to the proyect (or the output file .EXE) to be able to run the program in other machine. There’s someone that know what can i do when i compile, the file .EXE it’s create, and it’s a windows application, if a execute the file in the pc with visual studio, it works, but dosen’t in another m ...Show All
Visual Studio Team System Team Build - Build Passes on Developer Machines and Fails on Build Server
When our developers build the solution on their workstations the build completes just fine. However, when a build is performed on the build server there are errors. This typically involves places where attributes are added to methods. The type that is being passed as a parameter is part of the same solution and the project has a valid reference. All project references are standard copy local=false and nothing needs to be installed to the GAC. [XmlArrayItem(Type = typeof(TypeSerializer))] public List < Type > JournaledTypes Debug.txt from Build Server (None of these errors occur on the developer machines) Solution: Sodexho.sln, Project: SetupHelper.csproj, Compilation errors and warnings Setup ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Build for Xbox 360 and Windows in one project
I have created a Visual Studio project template that can be built for either Xbox 360 or Windows, by selecting the correct platform in the VS IDE. There's nothing particularly clever about this, it just uses some of the conditional abilities of MSBuild projects to merge the properties of an Xbox 360 XNA project with a Windows XNA project. There's a slight problem though - the VS Express C# IDE has, by default, disabled the build configuration and platform settings to present a simpler interface to beginners. In order to use this project template you need to re-enable these features and should probably have a reasonable understanding of what they do. This could be the reason that the XNA devs have mentioned that building for both platforms ...Show All
Visual Studio 2008 (Pre-release) SQLMetal Fails : NEED ENVIRONMENT CHECK UTILITY FROM ADO.NET DEV TEAM
The following is an OPEN RECOMMENDATION to the ADO.NET Development team. Note : This recommendation is OPEN to comments from other users of ADO.NET vNext (or whatever its current name is) :-) Note : A simple solution shipped with product is better than an 'IT is my carreer solution' using some MOM based install checker. Thanks ahead of time to any comments (pro/con -good/bad) on this recommendation :-) Shawnk PS. I wanted to post this to get other user input on the idea. PS. Also wanted to tie together any other posts requesting the same thing. PS. A runtime 'Environment' switcher to automate install rollback/forward/reconfig would be good too :-) -------------------------- [1] Provide a ENIVORNMENT CHECK Utility to ch ...Show All
Visual C# How to Send Email With embeded Images
Hi, Can anyone guide me how to embed images in the mail, so that the images appear in thebody of the mail rather than as an attachment. I am developing a windows application for sending mails. It works fibe with HTML content. The only thing is that i want inline images(images in the body of the mail). Thanks, Sushhant Duggal. Please see the code for embedding images in the message body. try { MailMessage lobjMsg = new MailMessage (); lobjMsg.Body = @"this is a sample body with html in it. <b>This is bold</b> <font color=#336699>This is blue</font> <img src=""C:\Inetpub\WWWRoot\SalesContactsImp\images\btn-login.gif"">test me</img>" ; ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Slight Lag in XNA?
I am new to XNA, but I followed some simple tutorials to load a small image, get it on screen, and move it around. I've noticed that for the most part, the updating of graphics is smooth, but every few seconds the update to the display "misses a beat" or something and the on screen sprite jumps instead of moving smoothly. I have changed the display to show one hundred images and do the same test, and I get the same result (it doesn't even get worse). I've confirmed this happens on a friend's top of the line computer as well. I can't imagine anything I am doing is that intensive...I have made games in DirectX before and have not had this issue. I have a breakpoint in gameTime.IsGameRunningSlowly (forgive me, I forget the exact pro ...Show All
Visual C++ Errors when compiling a VC6 project in VC2005
Hi All, I try to compile a project built several years using VC++6 in VC++ 2005 and got following errors when trying to build the project after clearing out all the other errors in *.CPP file: error C2248: 'CObject::CObject': cannot access private member declared in class 'CObject' file afxwin.h line#1814 The line#1814 in afxwin.h is the end of class definition for CCmdTarget. This is a GUI interfaced application. I read somewhere that this might be caused by some private constructor in CObject. But the problem is the error did not even show me which .cpp file has the problem just pointing to the afxwin.h file and I have close to 100 .cpp file in this project. Any help is appreciated. What ...Show All
SQL Server How to combine MAx statement with specific search?
Hello everyone! I've got a table (of "Persons") with 2 columns: "Age" and "Name". I make a procedure that get the MAX of "Age" of the table, like this: SELECT MAX (p.Age) MaxAge FROM Persons p But I'll like to add a new column to my result table. That column corresponds to the "Age" of a person 'X'. 'X' is its 'Name' and i will pass it by parameter to the procedure. Something like this: SELECT MAX (p.Age) MaxAge, --The highest age of the table p.Age ConcretPersonAge -- The age of the person X FROM Persons p That should returns a single row result table with the max of all 'Age" and the 'Age' of the person 'X'. Anyone can help me to do this Thank you to everyon, and a ...Show All
Visual Studio Team System sourcesafe
During the process of loading a VS 2003 project - VS posted a dialog that sourcesafe was not installed for server (words to that effect), Is Sourcesafe now run only on Team foundataion server which I have to connect to or can I hook into the existing database. Sourcesafem itself reads the database fine, I just can't get VS 2005 to connect to it. VS 2005 should be able to use existing SourceSafe databases. If you go to Tools->Options->Source Control is "Microsoft Visual SourceSafe" one of the options available in the Source Control Plugin dropdown If so, then VS should have the necessary SCCI components installed to interface with SourceSafe. Thanks, Ben ...Show All
Visual Studio Express Editions Hour Glass Running
I created a program with input text boxes that do calculations and place the data in the output text boxes. The hour glass by the mouse curser runs continuiously. How do I turn this off or is it normal. Thanks That helped. Now the hour glass comes on when the curser is over any panels that contain text boxes or other text boxes in the form. Thanks ...Show All
Windows Forms DatagridviewCombo Column issue
Hello, I am using the datagridview for my interface. One of the columns need to be a dropdown. I want to load this combo with a class and my class can have multiple members like(empid,firstname,lastname, age etc...) The display will be only the firstname and when the selects a name i want to retrieve all the information of the selected item. I have tried without binding, by attaching the class to the datagridviewcombocell object and then assiging this as a column template. But I was having lot of issues doing this. Then I tried binging an arraylist. With that I am able to populate and show the contents of my class (but only two values though), but I am not able to retrieve the value of it, rather may be I don't know how to retr ...Show All
SQL Server Deregistering the SPN after installing SP1
I'm running the evaluation software on a development machine running XP and everything was fine until I installed SP1. Now I can't get services to run, and the error log displays: "The SQL Network Interface library could not deregister the Service Principal Name (SPN) for the SQL Server service. Error: 0x2098. Administrator should deregister this SPN manually to avoid client authentication errors." Looking through previous questions, I see similar issues where the SPN needs to be deregistered, but my problem looks different; I can't even load services on local only. I'm downloading the SP2 from November, but thought I'd see if anyone else is/has had similar issues. This is what Microsof ...Show All
Visual Basic not getting the output on my screen help
I am puzzled why am I not seeing the progress in my cmd screen This one works: Dim PSI As New ProcessStartInfo() Dim P As Process Dim SR As StreamReader Dim SW As StreamWriter Dim OutPut As String Dim x As Integer Dim xx As Array ratio = "" filename = "d:\MediaInfo.exe -f """ + filename + """ |find ""Aspect ratio""" PSI.UseShellExecute = False PSI.RedirectStandardInput = True PSI.RedirectStandardOutput = True PSI.FileName = "cmd" PSI.CreateNoWindow = True P = Process.Start(PSI) SW = P.StandardInput SW.WriteLine(filename) SR = P.StandardOutput SW.WriteLine("exit") OutPut = SR.ReadToEnd P.WaitForExit() I will see everything for this one... N ...Show All
Visual Studio Express Editions how to build a web browser in build flash player like opera
hi pls respond me quickly i also like how can we add tab at run time that is allowing the user to view more pages in web browser hi reneec, I was using a new control(i will about the control after). in with it allows add tab at runtime and now i am trying it successfully function or not within this week i will give the full details ok.. ok ...Show All
