JR Lyon's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Two-sided stencil operations on XBox 360
Hi! My current game uses two-sided stencil operations to draw its shadow volumes. However, as I found out this seems to be a rather recent addition to graphics cards. Now I'm wondering whether the XBox 360 supports two-sided stencil operations at all. I don't own an XBox 360 (yet), so I can't find this out myself. Does anyone of you know whether it's safe to use this feature on an XBox 360 -Markus- ...Show All
Visual Studio Express Editions printing image as backgound...
Can somebody help me out... im printing a customized report with image using print document, in print preview the image was successfully displayed but i want it to be invisible when the document prints. From an earlier post of mine, (applies to image printing also) If PrintDocument1.PrintController.IsPreview Then e.Graphics.DrawString( "Preview" , namesfont, Brushes.Black, 600, 400) End If Will show the word 'Preview' on the screen in print preview, but will not print to paper. ...Show All
Visual Studio 2008 (Pre-release) Is it possible to get the uncoerced value of a coerced dependency property
Hello, I would like to know whether it is possible to find out what the underlying uncoerced value is for a coerced value. Is the possible at all, even for the DependencyObject which owns the coerced DependencyProperty, or is the only solution to maintain a separate internal variable set whenever the CoerceValue callback is called Thanks, Alex In at least one circumstance there is. If you call .GetLocalValue(yourDPIDField) on the relevant instance, that method will return the local value as set before coercion. The rub with that is that GetLocalValue does what it says: it returns a value only if the value was specifically set through .SetValue by some means. That could include XAML attribute, in co ...Show All
SQL Server Reporting Services on a Workgroup based network?
Can I use Reporting Services 2005 in a workgroup to serve reports for a windows application which is distributed accross the network I've already tried but when the application on a client pc requested a report from the report server i got a message about not having enough permissions to see the report. The windows application was builded using VB .NET 2.0 and VS2005. The report server instance is installed on a server 2003 enterprise along with the SQL Server 2005. If this is possible how can set permisions or make my application to be able to requests and show reports Thanks a lot to anybody who takes the time to answer. Antonio Alfaro I think the problem with wkgrp is that IIS authenticat ...Show All
Visual C++ Why do my macros stop working?
Visual C++ 2003 .Net Framework 1.1 I record a simple macro to comment out a line of code. Then I bind it to a key. Everything works fine. Then, after closing visual studio and starting it again my macro stops working. At least I think this is what makes it stop working, but I'm not positive on that. I even open the macro browser and right click on it and select "Run" and I see the cursor turn into an hour glass for a second, but then nothing happens. Even selecting "Run" on other Microsoft samples such as "CommentOut" don't do anything. So, I recreate my temp macro and select "Run" in the macro browser. Most of the time this works, but it seems like sometimes that doesn't even work. I'm e ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Subscription not available on my Xbox!
Hi! Is there any reason why the Creators Club Subscription is not showing up on my Xbox I live in Norway, but I've not read anything about any region restrictions on this download. I want in on the fun too! Done. Anyone else experiencing the same problem, go vote here . ...Show All
Visual Studio Team System How to edit corewin_express.vsprops?
How to edit corewin_express.vsprops In http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/ It says edit the corewin_express.vsprops file (found in C:\Program Files\Microsoft Visual Studio 8\VC\VCProjectDefaults) and change the string that reads: AdditionalDependencies="kernel32.lib" to AdditionalDependencies="kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib" How do I edit Thanks in advance, Gerhard Hi Gerhard, This forum is for Visual Studio Team Foundation Server questions. It sounds like your issue deals with Express. Try one of the VS Express forums - they should be able to help you. http://forums. ...Show All
SQL Server no available input columns
Hi , Im trying to build a package that will copy data from excel to SQL in a program unfortunately , when I open the package xml file and I drill into the oledb destination I see that I have no available input columns what could be the problem thanks ahead Eran p.s the script: Dim p As Package = New Package() Dim e As Executable = p.Executables.Add( "DTS.Pipeline.1" ) Dim thMainPipe As TaskHost = CType (e, TaskHost) thMainPipe.Properties( "Name" ).SetValue(thMainPipe, "Data Flow" ) Dim dataFlowTask As MainPipe = CType (thMainPipe.InnerObject, MainPipe) ' Create excel connection MANAGER Dim excelCon As ConnectionManager = p ...Show All
Visual Basic Finding no. of array elements.
Is there any function/sub available in VB which return the no. of array elements e.g. x ( i_max ) when i_max = 9 => return value 9. If not then what's the shortest way of writing this kind of function I had some ideas but they are a bit too long for this job. Thx for any help. I don't understand your pseudo function, but if it's purpose is getting the number of elements in an array it's superfluous as you'll see here: Any array is compatible with the System.Array class, so the number of array elements is provided by the int Array.Length property, beware of multi-dimensional or jagged arrays, in which you have to get the length of the appriopriate rank (dimension). If this legacy VB statement is still ...Show All
Software Development for Windows Vista Help with Permissions in Vista?
Hi, I'm relatively new to .NET and am developing an Application for Windows Vista. I'm running into a couple of issues with the Application when it's trying to do 2 things - Copy a file, or Set a Registry Key Value. When I'm running VS2005 both these 2 functions work no problem, but I would assume that this is because I run VS2005 as an Administrator. My Application won't be able to run as an Administrator I don't think, because I will be running the Application from boot up as a shell. For the file copy, I'm using a straightforward File.Copy, e.g.: Dim strPathFrom As String = "C:\FolderName\Filename.txt" Dim strPathTo As String = "C:\Filename.txt" File.Copy(strPathFrom, strPathTo, True) This raises the foll ...Show All
SQL Server SQL Server slow stored proc in one application, but not another
Hi, I'm having a completely bizarre problem that I have spent a great deal of time trying to diagnose with very little success. The setup is an SQL Server 2000 running on an adequetly powered windows server 2003 machine (quad cpu, 4gb ram), along with an application that queries said database setup to be accessed through Citrix. There are around 15 or so people who log in to the application through citrix, and the application itself is a .Net 1.1 application, which uses the standard sql data components to handle the database interactions. The problem is that after an indeterminate amount of time, one of the stored procedures used by the application becomes incredibly slow, to the point where it is timing out after 30 seconds+ o ...Show All
Visual Basic Inserting a record into a Gridview
I am using Visual Web Developer 2005 Express Edition, with VB and SQL Server 2005 (express). I want to have a gridview that will edit/update, delete, and insert records. It should be easy - editing and deleting are simply a matter of checking a box on the smart tag. But how do I insert a record I was expecting another check box option that would handle it all (perhaps with an empty row at the bottom, in the manner of Access and SQL), but I've not been able to find such an option. Do I have to create an event handler - if yes, what event, what do I write I haven't been able to find anything in the help, or in the forum. This is such a basic question - have I missed something obvious Regards, Robert ...Show All
Visual Basic How Do I Print a Text File directly form a Button
After hours wated I found out that the my.computer.printer.default printer has been rendered obsolete by microsoft. How can I print a Text File ; let's say : c:\MyTextFile.txt. ' I know this code does not work; but that's the idea i want to implement Private Sub Button7_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click Mytextfile.txt.print End Sub Thanks, Fernando Pena www.Latinsoft.net Private Sub Button7_Click( ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button7.Click 'This way of doing it has been discontinued; what a shame; it seems very simple and yet very powerful / Fernando Pena / www.latinsof ...Show All
Visual Studio 2008 (Pre-release) How do I implement WSE 3.0 style certificate policy authorization in WCF?
In WSE 3.0 I used X509 to authorize users of a service. I need to do the same thing in WCF. The policyCache.config file I used in WSE 3.0 was: < policies xmlns = " http://schemas.microsoft.com/wse/2005/06/policy " > < extensions > < extension name = " authorization " type = " Microsoft.Web.Services3.Design.AuthorizationAssertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " /> < extension name = " mutualCertificate11Security " type = " Microsoft.Web.Services3.Design.MutualCertificate11Assertion, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35 " /> < extension name = " x509 " type = " Microsoft.W ...Show All
Visual Studio Team System PM Related VSTS Questions
I received these questions from one of our clients who is a project manager trying to use VSTS. Any information would be greatly appreciated. Background--The client has experience using MS project with Project Server and PWA so the questions are geared towards what tools and how Microsoft sees VSTS interfacing with Ms Project and Project Server. Here are the questions: 1. What are the guidelines and recommendations for the team, primarily for the PM in managing the project plan while it is in executing phase E.g. Developers using TFS for work items, how these updates are managed in MS Project. Client would like to see an 'Approval' process like Project Server so that the PM can see what developers update on remaining hours and compl ...Show All
