Cesar Francisco's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. 3rd Series of 3D XNA Tutorials finished: HLSL intro
Hi all- This 3rd series of XNA Tutorials was already online this weekend, I checked once more to make sure all code on the site compiles without errors. This 3rd series was written to be a introduction to HLSL, starting from zero, and consists of 18 chapters. The first chapter actually shows no code, it only positions HLSL in the big picture. For this series, I've chosen to create a scene shadowed by the Shadow Map algorithm to introduce the various concepts of HLSL. As you can see in the outline of this series, we start with basic chapters, which increase in difficulty throughout the series: Creating your own vertex format Creating a first vertex shader and pixel shader, and playing around wi ...Show All
Visual Studio 2008 (Pre-release) constants in query
This relates to the http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=523328&SiteID=1&mode=1 How can I create a query like: select 1 as Number union select 2 as Number union select 3 as Number Have you tried using the ToQueryable() operator in System.Query.Queryable int[] ia = new int[] {1, 2, 3}; IQueryable iq = System.Query.Queryable.ToQueryable(ia); foreach(int i in iq) { Console.WriteLine(i) } ...Show All
Visual Studio Team System CTP6 - Cannot create project
I've just installed CTP6 and cannot create a 2005 project. I am getting the following error: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections". I have specificed a local instance of SQL Server 2005 ('localhost\SQLServer2005' is the value I put in the Tools | Options | Data Connections page and Tools | Options | Design-time Validation database page). My local instance does allow remote connections and I can connect to it without any problem from Management Studio. Thanks for your help - Amos. Hello Amos, 1. CTP6 ...Show All
SQL Server InnerPackage.dtsx can not be accessed by the process!!!
Hi, I have a package that I am running concurrently with different values. and sometime I'm getting following message for one of the running instances and it fails while the other ones are running. Execution failed with the following error: "ERROR : errorCode=0 description=Failed to save package file "C:\Documents and Settings\smiller\Local Settings\Application Data\Microsoft\SQL Server\Smo\InnerPackage.dtsx" with error 0x80070020 "The process cannot access the file because it is being used by another process.". helpFile=TableTransferGenerator Task helpContext=0 idofInterfaceWithError={8BDFE893-E9D8-4D23-9739-DA807BCDC2AC}". Any ideas what is the reason I have search everywhere for keyword InnerPackage.d ...Show All
SharePoint Products and Technologies Persistent Sharepoint Server Error Events
Hi - I'm running Sharepoint Services 3.0 and am seeing 3 different errors logged every single minute - IDs 6398, 7076, and 6482. Searches on these IDs have shown that other users are seeing them for different reasons. They all have to do with a "lack of storage" somewhere. Below are the pasted contents of 1 of each of these errors: Event Type: Error Event Source: Windows SharePoint Services 3 Event Category: Timer Event ID: 6398 Date: 1/22/2007 Time: 3:41:17 PM User: N/A Computer: SPNACDEV06 Description: The Execute method of job definition Microsoft.Office.Server.Administration.ApplicationServerAdministrationServiceJob (ID 929b1b3b-ef23-4379-915f-33e61709a2d3) threw an exception. More information is included below. Not ...Show All
Visual C++ COM/ATL App Method Return/Pass defined types
Alright, I am not by any means an expert C++ programmer, so please bare with me. I have created a com object that will be implemented within C#, the reason for this com object is to create a persistent object of another library. My situation is this. I have the complete com object created, but would like to add additional supporting features, i.e.: An object that is defined within the C++ com object, such as a struct containing an int, a wchar_t*, and a boolean value. I would like to be able to utilize the object type from within C# to store the object rather than have a new object type in C#. I have seen this done in many cases, but just have no clue where to find such direction for supporting this. I would also like the come objec ...Show All
SQL Server CLR vs T-SQL
Hi, I bought Pro ADO.NET2.0 but could not find a clear description of the optimum use-case for CLR and T-SQL Stored Procedures in general. (although the book is great) It seems for complex or recursive tasks CLR SP is useful. But would you recommend using CLR SP for basic INSERT, UPDATE, DELETE, SELECT queries Thanks, Bahadir ...very common question these days. Simple answer lies in the fact that let the each person(in this case CLR/T-SQL engines) do what it knows best! Say for e.g. if you have lot many string manipulation activities to be accomplished. Now of course, in such a case writing a T-SQL UDF or a SP won't help much in performance gains. On all grounds for such activities, the CLR would ...Show All
Visual Studio 2008 (Pre-release) C++/CLI, DataContract
Hi! I have this legacy app in C++ and would like to put WCF atop of it. (in C++/CLI) I already managed to create a rudimentary service, but fail to use the DataContract attribute. Is this not possible in C++/CLI Thanks, Bernd Hi Ben! What I'm trying to say, but failed to do so, is that when writing something like this: [DataContract] ref class MyArray { ... } I get: error C2337: 'DataContract' : attribute not found My question is: Why does the compiler not recognize this attribute Thank you ...Show All
Visual Studio Team System MSProject 2003 not working
Hi there, I'm "still" using TFS Beta 3 Refresh (It's not easy to talk/get TFS RTM version here in Portugal, since reseallers don't know it yet). Any way, Yesterday I've tried to configure one colleague's computer to manage his projects using MSProject 2003 and TFS. When I noticed he had allready installed Portuguese version of MSProject (MSDN version). I've told him to uninstall it and install English Version. Resuming: Not working! Do I have to reinstall TFS Client Here's the temp\log file (after creating config file in msproject directory). [Info, PID 2272, TID 4736, 21:40:39.366] Managed ELead Project AddIn loaded Middle tier URL: http://tfs:8080/WorkItemTracking/v1.0/ClientService.asmx Middle tier configurat ...Show All
SQL Server Running value
Hi In my report I have the total column,under the total i have two sub fields:no , Row%and i have another column Cumulative total sub fields are no,***% For the Row % under total i write like this: =Round((Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)/Sum(Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)*100,2) For the *** % under cumulative total the expression is: =RunningValue((Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)/Sum(Fields!Male.Value+Fields!Female.Value+Fields!Unknown.Value+Fields!Invalid.Value)*100, sum , "AgeByGender" ) But i am getting this error: The Value expression for the textbox '* ...Show All
SQL Server The index is not valid.
I get this error in a package which was executing previously. This is in SQLServer OLEDB DATASOURCE Error at Membership_Other_Payer [DTS.Pipeline]: The index is not valid. ADDITIONAL INFORMATION: Exception from HRESULT: 0xC0048004 (Microsoft.SqlServer.DTSPipelineWrap ) This error occurs when I try to open my existing Oledb datasource. I have added some columns in my database Any body has solution for this Is there any progress on this issue. I can't resolve it even by pressing the preview button. Is this a bug ...Show All
Silverlight (formerly WPF/E) Symbols support?
Currently SVG supports symbols ("defs") - complex elements that are described once and can be referenced and displayed many times throughout the code (tree). This saves a lot of byte-size for the files being used. Is there a similar feature in WPF/E Hi Barak, That works perfectly for elements created on the front end, but if I have a web service assembling the XAML on the back end, I would be concerned with the bandwidth required by the larger files, especially if there are hundreds of identical symbols involved. ...Show All
.NET Development making windows application project
I need to make windows application project, add web reference to web methods and call the methods with parameters. I need your sugestions and examples Thanks, Savindra Here's a link to a MSDN Walk-through that covers this topic: http://msdn2.microsoft.com/en-us/library/scf355x6.aspx ...Show All
SQL Server How to reset all tables ownership programmatically through a sp
Before in SQL 200 I was using this script to do it, even if the change to Ad hoc updates to system catalog weren't allowed: USE Rouyn_Noranda PRINT 'Section 5: Resetting Objects ownership ...' GO update sysobjects set uid=1 where xtype = 'U' PRINT '***** Section 5 completed *****' PRINT '' GO In SQL 2005 change to the catalog are not permitted, is there a way to reset the ownership of all table from a database. Thanks, Stanley Please don't modify system tables directly. You cannot do that in SQL Server 2005 and even if you figure out a way, you will rely on a behavior that is not documented. So your code can break any time due to change in the server in a hotfix or service pack or major release. We can and will make chang ...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 I think you got it buddy! you are pretty much right on about the whole creating the instance of the form etc... yes, you can use Me.Close() to close the form and dispose of the ob ...Show All
