Gabriel Lozano-Moran's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Default pixel shader?
I fear I already know the answer, but is there any way to use a 'default' pixel shader This used to be done by specifying PixelShader = null; in the .fx file, but this doesn't work any longer. I bet a lot of games will do just fine using BasicEffect for all their rendering. If you want to do fancy graphics stuff you will obviously need to create custom effects, but plenty of interesting games can be made just with simple lit+textured models! You could easily emulate any Playstation1 level of graphics, and PC games like Quake2, entirely using BasicEffect. ...Show All
SQL Server DROP DATABASE problem
I am facing a trouble with DROP DATABASE command. Let me explain it this way: Actually I am building an installation package which executes a series of SQL scripts to do the database changes on the target machine. Steps are briefly listed below: 1 - Create a database with simple CREATE DATABASE command 2 - Restore the database created above with RESTORE DATABASE command (with replace option) 3 - Configure other objects such as logins etc etc. Now, everything works fine as long as all the scripts execute correctly. However, I have seen instances when RESTORE DATABASE fails with "timeout expired" error. Well, I overcame this problem by simply increasing the timeout limit. But in that course what I observed is that when a restore da ...Show All
Smart Device Development modal form will not close
I have a C#, .NET Compact Framework 2.0 SP1 application. I have encountered a recurring problem where modal Forms displayed using the .ShowDialog() method sometimes will not close when their Dispose() method is called. When this problem occurs, the modal Form remains on-screen as the top-most window but is completely unresponsive and cannot be closed. This problem is actually worse than an application crash because the only way out is to use the Settings > System > Memory > Running Programs control panel to ‘Stop’ the application. The modal Form in question does not have a CancelEventHandler for the ‘Closing’ event. Is this a known problem If so, I urgently need a fix or work-around for this problem. So we have ...Show All
SQL Server The product level is insufficient for component
I’m having this trouble (The product level is insufficient for component "flat file.txt") executing a ssis package using dtexec from a store procedure. The database is SQL Server 2005 Express Edition with Advanced Services SP1 and Microsoft SQL Server 2005 Express Edition Toolkit SP1 . If anyone knows how to solve this problem i would be very thankful I am assuming you are trying to execute an SSIS package on SQL Server 2005 Express edition. This won't work. The following list highlights the major SQL Server 2005 components that are not supported in SQL Server Express: Reporting Services Notification Services Integration Services Analysis Services Full text search OLAP Serv ...Show All
Visual Studio 2008 (Pre-release) DoFinalConstruction?
Hey guys, Can someone shed some light one what DoFinalConstruction does Any chance that we can make that method virtual :) Would be very handy for doing setup construction on entity objects (putting in default properties, etc...) Thanks! Mike As an aside... is there a reason this method is not marked "virtual " Maybe I'm missing something, but I thought methods that aren't marked virtual aren't supposed to be overriden That is, it's intention is not to be overriden. Is this just an oversight or the actual intended design Thanks! ...Show All
Audio and Video Development Protected Content (PMP) and tee node
Is it possible to play a protected media file in a topology using the tee node. I modified the ProtectedPlayback sample and I get MF_E_TOPO_UNSUPPORTED error after setting the topology. Thanks! I inadvertently omitted a detail here, and also I thought of a possibly easier option. If you're going to go the dummy MFT route, you'll need this dummy MFT to require that its input type be uncompressed audio (cf video). The reason you have to require uncompressed media is to force the topoloader to insert a decrypter _and_ a decoder between the source node and your MFT node. At least in the case of WMDRM-protected content, the decrypter needs to be directly upstream of the decoder, since we set up a secure ...Show All
Visual Studio How to add "Database Professional" to Team Suite?
Hi all... I see that the "Database Professional" Team Center is now available. I have Team Suite installed already (so Software Arch., S/W Dev, S/W Test and Project Manager are already installed.) How do I install the database professional component Do I download the full installation DVD and install it, or is there an easier way (I have already installed VS SP1, and it still isn't there.) Thanks! Mark Hi there, I've installed the german Version of Visual Studio 2005 Team Edition for Software Developers and I like to install Visual Studio 2005 Team Edition for Database Professionals. But I always get the error that I've had to installed Visual Studio 2005 Teamsuite / Visual Studio 2 ...Show All
.NET Development The simplest way to limit webservice connections
Hello all. I have a webservice and its Windows Forms client. I want to limit connections count to webservice having this number hardcoded in server dll. This is done to limit number of WinForms clients, that connect to WebService so (n+1)th client could not connect until n workstations are already working. I do not want to limit these connections using IIS. Is there a simple way how do it Thanks in advance Mykhaylo, You can do it using WSE 3.0 using the <connectionLimit> configuration element. Please find a description of this element here: http://msdn.microsoft.com/library/default.asp url=/library/en-us/wse3.0/html/5bf8bf09-d1c9-4ec9-b7e8-7b4bf4629413.asp Hope it helps Rgds Rodrigo ...Show All
SQL Server importacion de datos
Tengo mi servidor sql en el servidor y mi sql en la laptop tento la base de datos en el servidor(producion) y en la laptop (prueba) y quisiera hacer una importacion de los datos del servidor a la laptop ok hay varios metodos pero el que quiero saber es por query como yo me cambio de servidor algo asi como use db select conect to laptop use db insert into select According to Google Translate, the original post reads something like this: "I have my servant SQL in the servant and my SQL in laptop tento the data base in the servant (producion) and laptop (test) and wanted to make an import of the data of the servant to laptop ok are several methods but the one that I wa ...Show All
SQL Server How to access to an another database?
Hello, I 'm making a procedure that needs to use a table that is in an other database and that database is in an other SQL Server Group. Did you know if is it possible. How can I make this Thank you very much for your help and time. Jonathan. yes u can do this...add the other server as a linked server to ur server..using sp_addlinkedserver... then refer the table in other db as servername.dbname.dbo.tablename eg. select * from server1.mydb.dbo.table1 ...Show All
.NET Development Compatibility
Hi, I want to know whether vs.net 2005 application will run in .net framework 1.1 (are they compatible ) Regards, Durga. Hi, For Windows application, it runs in the client machine so to host and to provide run-time platform to the application; Client must have .Net framework installed. (Windows XP has installed .Net framework 1.1 with it so no need to install it explicitely but a prior OS needs to install it before you can run the application) Its very diff in Web application, where it runs on Server machine and client only requests to webserver and web server does process and returns client the results in HTML form so in this case server needs to have .Net framework installed but not client. HTH, ...Show All
Windows Forms Custom User Control (drawing outside the parent Region)
Hi, I am trying to create a custom combo box, whic is a combination of textbox, command button and a datagrid. I am able to implement pretty much whatever was required. I ran in to a problem when the user control is contained in a Group Box, thus on the drop down event, my Grid (which is acting as the drop down list) does not show properly as it cannot go beyond the boundries of the Group box. Is there a way I can make my user control act as Top most Window so it draws over every other control. It tried using Function SetWindowPos Lib "user32.dll but it doesn't seem to work. Any help would be appreciated. Thanks Well what I meant was that a Group box can contain other controls beside my Custom control so as i ...Show All
Visual Studio 2008 (Pre-release) The futher of WPF?
Hi all Is it true that none of the application that ship as part of the windows vista OS use WPF And if so, what is that saying I'm trying to develop our companies first "for Cash" app using WPF. Is MS really committed to making WPF the new programming model If MS can't afford to use WPF, how can I (It is the state of the tools , more then the readiness of WPF, that really make me ask this question.) I would appreciate your thoughts, it is after all the further of my company. A worried Mike Greenway Mike, Rob and Ifeaniy. Thank you for your responses and reassurance. I'm a huge MS fan, use their tools everyday and have bet heavily that WPF will be widely adopted and supported wi ...Show All
SQL Server using a text editor to open a SQL Database
is there some way to access a corrupted database with a text editor so that I can copy over my text database to a new database file I apparently have corrupted my file headers of both the online database and my backup copy. Thanks in advance for your help yes the problem has evolved through my experimentation I've managed to clear out alot of the hangups but I still have a problem creating user through web admin tool or internet interface that I created. I think I've pinned down the problem to the following error but I don't know how to resolve it. Thanks Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information ...Show All
Windows Forms DataView Sorting
Hi, I have two combo boxes and a DataGridView. The two combo boxes are going to serve as filters for the DataGridView. When the form loads a stored procedure is called to return a number of records to be displayed in the DataGridView. The grid can then be filtered by using either one of the combo boxes. If the selected index changes on either combo box a DataView is created from the DataTable holding the data from the stored procedure and a Row Filter is a applied depending on what the Selected Item Value is. All this works great but the problem I have I need to combine the two filters into one. I.e. if you want to filter the data to show only today’s events and then filter it again to only show a certain type of event. ...Show All
