Stein's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. PostProcess with MultiSampling
The post-processing scheme I have implemented renders the scene to a texture so that I can pass the rendered image to an HLSL pixel shader. Unfortunately, it seems that D3D Textures used as RTs do not support multisampling. I would really like to have multisampling enabled on my rendered scene (not just simulate it with a "blurring" post process shader). I would love to hear any thoughts on this situation. Thanks in advance. ...Show All
.NET Development Attachment problem
I have an asp.net application. This application will be generating a lot of Html files( Content as stream, and Html Name). I have to email these file to respective client. After testing it i happen to get the The attachment content in the Body of the mail.I want to get it as a different file( Attachment file). Please help this my code MailMessage Mail = new MailMessage(mFromEmailAddress,mToEmailAddress,mEmailSubject, mEmailBody); Mail.Attachment ...Show All
SQL Server SQL Dependency
Hi! Is there any way to use the sqldependency feature from ADO.NET with SQL Server Express editation I need this feature but I develop a shareware application and I can't buy Professional or higher SQL server for every downloaded copy. Thanx. I have a similar issue. I want to use SqlDependency with Express. I have a sample app working against another SQL 2005 edition that works fine. But changing the connection ...Show All
Windows Forms toolstrip progressbar
Hey i have this "webbrowser" i sort of made myself, but i want a "ToolStripProgressBar" but i cant make it show the progress from my browser. what du i need to do what cammand will i need to call in which event //Martin The ToolStripProgressBar is used on a Strip item such as MenuStrip, ToolStrip and in your case StatusStrip. by the desinger, you should drag StatusStrip and then you can selec ...Show All
Smart Device Development Unwanted Anti-aliasing
Hi, I'm scaling an image on the x-axis (horizontally) using DrawImage(). Unfortunately the image also a little bit "blurry" along the y-axis, although the target image height is the same as the source image height, which means. G.DrawImage( AssetImage, new Rectangle(X, Y, EndWidth, AssetImage.Height), 0, 0, AssetImage.Width, AssetImage.Height, GraphicsUnit.Pixel, new ImageAttributes()); Here is the Prototype of DrawIm ...Show All
Visual Basic list view right to left problem (VB.NET)
i have problem with right to left i set the right to left property of list view yes but it don't work at all i want the columns start from right not left help me plz Thanks for the question. For the ListView control you need to set both the RightToLeft to "Yes" and RightToLeftLayout to "True". That will make the items order right to left. Also note that the RightToLeft property is ambient (pulls the value from the pa ...Show All
.NET Development NegotiateStream problem?
I have this code where I would like to authenticate before starting to accept communications from a client. After I add the authentication code, I stop getting the actual data. Here is the code. What is wrong using System; using System.Net; using System.Net.Sockets; using System.Net.Security; using System.Text; using System.Threading; namespace TestApp { class Class1 { [ STAThread ] static vo ...Show All
Windows Forms passing variables to form
I made my textboxes on form1 public. I was able to access them through my form2, after I made a statement like form1 form2 = new form1(); Problem is, the text boxes are all empty on form2. Is this because I initiated a new form1 and therefore the textboxes are set back to their default as empty How can I access variables stored in form1 from form2 thanks. Awesome.. thanks.. that worked.. I have no i ...Show All
Visual C++ VC++/MFC 8 not stable
Hey, I am affriad to say MFC 8 that comes with VS 2005 isnt stable at all. im working in a studio trying to work on a project, and i keep on wasting time on worthless issues. All of which have to do with pointers and the new operator. Latest issue is it will declare thepointer if i told it to load configuration from a file. but it wont declare it if i decide to load the configuration manually, i really dont know what difference does it make. im ...Show All
SQL Server Reporting Svcs 2005 versus ReportViewer web control
Is there any documentation describing the benefits of using Reporting Svcs over ReportViewer web control Or vice versa - the limitations of reportviewer control I know there is some effort required in terms of setting up the datasource, passing the params etc. for reportviewer, but what I really want to know is if with a little effort we can still use reportviewer web control for fairly complex reports, some of which return large # of record ...Show All
Visual C# turn this algorithm into code...help please
The following algorithm is for checking a person's birth date / birth number combination (an equivalent to social security number). The birth date / birth number combination consists of a 10 digit number, YYMMDDNNNN, for example 7401204933. To decide if this number is correct, you multiply each digit alternatively with 2 and 1, starting with 2. Next, you add the results together. Finally, you have to be able to evenly divide the sum by 10, for ...Show All
SQL Server Advice on a process
I'm looking for best-practices advice. I have a flat file that gets produced by a mainframe system every day. I need to import this data into a relational database each night. I will use the data to do some numerical optimizations (generallly it will be a knapsack algorithm) for scheduling of machine and personnel resources. The file is a "rolling" list of our back orders. By rolling, I mean that when a job is complete it drops off the ...Show All
Visual C# Loading html into an object
I need a way to convert a full web page I have in a string variable into an object like the IE Dom so I can get values out of cells in the tables on the web page. I am using VS 2005 for Software Testers (VSST). What I am testing is dynamic and I can't get away with direct record and playback. (As if anyone ever can) What I need to do is post information to the web server and then get out of the response some key information that needs to be u ...Show All
SQL Server Is this possible?
Hey guys, I wrote a T-SQL query to retrieve all errors name and count the error for each error name based on some conditions. Assume that errors_name is a column name in Error table and the error_count is a calculated field. Here is my question; when I run the query, obviously, it displays the list of errors name and the corresponding errors count which only meets the where condition . However, what I need is to list all the errors name (eve ...Show All
Visual Studio Setting compound property from task
I'm currently porting our build to use MSBuild (From NAnt). Part of the plan is to produce a 'build constants' project to be included in all other build projects, with defines globally used properties. One of these is a formatted time string, used when we archive our 'old' code (to save a developer accidentially wiping out uncommitted changes if doing a full build by mistake). How can I perform the equivalent of calling a task that defines a num ...Show All
