Michael Baxter's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Rendering To Textures in Beta2
I used Texture2D's heavily with the usage RenderTarget, however in Beta 2 its like a whole new API. I understand that Surface no longer exists and RenderTarget/2D should be used. The problem is, the whole mentality is backwards compared to what im used to. From what I see I should create a RenderTarget2D and set that as a render target, then do rendertarget.GetTexture() if I want to set it. Thats fine. However, how do I copy between render targets There is no StretchRect or equivelent function I can see, which I used alot before. Surely I dont have to go about getting a texture, setting it, creating a 'copy' effect, setting a new render target, resolving the new render target just to copy from one to another Is there no alte ...Show All
SQL Server Deployment problem with protection level
Hi all, I have a problem while trying to deploy my packages that are configured in ProtectionLevel=EncryptSensitiveWithUserPassword I use the Deployment Utility to deploy my packages. I set the password when deploying and the deplyment works fine. But I run the packages I have the following error : " Failed to decrypt an encrypted XML node because the password was not specified or not correct." Did I miss something Because I'm deploying to a Test Environment and the Data on the Test Env are different so sometimes I would like to debug on the Test Env which means I load the package in BIDS. What's wrong about using EncryptSensitiveWithUserPassword ...Show All
Game Technologies: DirectX, XNA, XACT, etc. getting variable from GameCompnent without instancing?
how would you do this well im just trying to get my project matrix and view matrix values from my camera class which i was using as a GameComponent. i can do it the old way but i was just wondering if it could be done. ...Show All
SQL Server Triggers (update, Delete) by rows
Is there a mode that can be set for a trigger to fire when more than one row is updated in the target trigger table I found that the trigger I created only fires on the last update when 10 rows were affected in the target table. here's the code: CREATE TRIGGER trig_lookup_history ON historylog FOR DELETE, UPDATE AS BEGIN Here's the sample that fired the trigger on the last update update historylog set column1 = 'test1' where id = 1234 or id = 1235 or id = 1236 or id = 1237 the only row updated was row 1237 thanks C trigger fire for statement not for each row... what u need to do is do inner join with Inserted/updated and updated the Target table.. don't use variable ...Show All
Internet Explorer Development IE6 Page Rendering Time Greater on Internet -vs- LAN
Hi, I've been experiencing a curious significant slow performance issue when running my ASP.NET 2.0 web site on the Internet (compared to speed on the LAN). As one would expect, the time to load a page is less on the lan than the internet. However, my problem appears to be after the download of the page/dependent images is complete. (For my site), over the internet, the IIS log shows a page load time for the page url (loading of all inclusive urls) to be about 2 seconds. Additional time needed for the page to complete its render (after load) is about 14 seconds. Over the LAN, the IIS log shows a page load time for the page url to be about 1 second. Additional time needed for the page to complete its render (after load) is about ...Show All
Visual Studio Tools for Office Why the letter does not send and kept in a folder Proceeding? (MS Outlook)
Good afternoon. Why the letter does not send and kept in a folder Proceeding Code: Outlook.ApplicationClass oApp = new Outlook.ApplicationClass(); Outlook.MailItemClass mi = Outlook.MailItemClass)oApp.CreateItem(Outlook.OlItemType.olMailItem); mItem.To = test@test.test; mi.Subject = "2"; mi.BodyFormat = Outlook.OlBodyFormat.olFormatPlain; mi.Body = "2"; mi.Save(); mi.Send(); this.Close(); and how will get rid from Outlook warning window Hi Sergeyr The best place to get help on automating Outlook are the newsgroups that specialize in Office automation and Outlook programming. Try asking in a cross-post to these two groups http://msdn.microsoft.com/newsgroups/default.aspx dg=microsoft.public.office. ...Show All
Visual Studio Express Editions How do we connect and use remote SQL Server 2000 Datbases
I have an existing SQL 2000 database I have access to and want to use the tables within it. Express shows only ./SQLEXPRESS as the only database method to use. Can we not add other source to this Just use the rigth SQL-Connectionstring. You will get it at http://www.connectionstrings.com. Then just define a new SQL Connection like this: Dim cnSQL as new SQLClient.SQLConnection([Here goes your Connectionstring]) . . . cnsql.open . . . ...Show All
Microsoft ISV Community Center Forums Sum of hours using select statement & VBA
Hi - ok here is my question: I have an activity recording form that records hours logged against a company. I have added a field called 'sumactivityhours' to the table and the form. what i would like to do is when a user selects a company from the drop down list (thanks derek and duck thing for your fantastic help with that problem) it automatically populates the 'sumactivityhours' field with the total number of hours worked thus far with that company so that the user can see the total hours and then writes that information into the 'sumactivityhours' field in the table. as i gradually begin to learn a little more about VBA im guessing that i should create an on exit event on the companyname combo box that re ...Show All
Windows Live Developer Forums MSN Messenger API without Windows Messenger
Hi all, I'm very confused right now. I made an application that grabs the contact list of MSN Messenger and imports it into an address book. This works fine untill I remove Windows Messenger for the system. I've clients that use MSN Messenger without Windows Messenger and the tool doesn't work for them. Is there a way to grab the contact list without Windows Messenger (and the Messenger API) installed Does anybody has some great code snippets rockmanxyj wrote: hi peter,if i remove Windows messager or rename Windows messager, would your Component work fine Of course. You can download a trail version in my web. Then run demo in computer without MS MSN messenger. It will work fine. My comp ...Show All
SQL Server debugging the ole db destination???
I have an OLE DB destination which should insert data into a table named in an SSIS variable. When I run the package, I don't get any errors and I have a data viewer which shows that the data is reaching the OLE DB destination. However, the data isn't being inserted into the destination table. Can someone suggest how I should go about debugging this Thanks in advance. SvenC wrote: Hi Duane, you might try SQL Server Profiler and monitor OLEDB and T-SQL events -- SvenC Thanks for your reply. I figured out what I was doing incorrectly. I was using the refresh function in SQL Server Management Studio. However, it wasn't working. I'm not sure if it's a bug or a problem wit ...Show All
Windows Forms Toolbar Button Images Not Appearing in Run Mode
I'm building a simple C# WinForms app that has a toolbar at the top. I've made each of the buttons fairly large: 130 x 32 so that I can include text and an image. The images are being drawn from an ImageList control In Design mode everything looks perfect, but when I run it the images disappear from the buttons! Any ideas why this is happening Robert W. Vancouver, BC Hi Roger, I finally solved the problem by deleting the toolbar and replacing it. But it took several iterations to do so. I now seem to have stable code with regard to this. But I have another frustrating problem: The VERY first time my code is run, the toolbar buttons don't work. Once the app is restarted this NEVER happens again. I think it ...Show All
Visual Studio 2008 (Pre-release) Visual studio extentions...
Hello, For developing Web Applicaion usinf WPF, Sombody told me that an Extention for visual studio is awailable but i did not find it anywhere on microsoft.com. So is there any developement tool is awailable for WPF , Is yes then from where I can get it And Most important for me, Is it a final release or still in beta Bhavin- Please see Tim Sneath's Building a Perfect WPF Developer Workstation for pointers to the VS Extensions and more. Some of those tools are released (Windows SDK and others), but most of them are still in pre-release form. WPF is released, as you likely know. Thanks, Rob Relyea Program Manager, WPF Team http://rrelyea.spaces.live.com ...Show All
Windows Forms Get Controls collection and list it on xml or text file
Hi We are using Idesginer for creating user driven form designer, does any one worked on saving the controls list /control collection and their properties on to a test file or xml file and retrive them back on the desginer form. Any help in this regard will be great. I guess I don't quite understand your problem then... Maybe our definitions of "serialization" differ. From MSDN, "Serialization can be defined as the process of storing the state of an object to a storage medium." That sounds exactly like what you need to do. As far as custom XML, the XML written to disk can be whatever you want it to be after you modify the code that produces the output. Could you maybe elaborate a bit more on what you need so ...Show All
Visual Studio 2008 (Pre-release) A couple of poistioning questions
Have a couple questions. Scenario 1: - Grid A (an ultimate parent); - Grid B, a child of A, positioned using B.Margin = new Thickness(...); - Grid C, a child of B, positioned using C.Margin = new Thickness(...); Scenario 2: All the same, except of B is a UniformGrid, thus making C positioned implicitly. Question: how do I get an absolute position of C in A's coordinates for both scenarios Question 2 I have a grid and a couple of child grids in it. A parent grid tends to shrink its size by Max(Right) & Max(Bottom) of its children. By Max(Right) & Max(Bottom) I mean grid.Margin.Left + grid.Width and grid.Margin.Top + grid.Height respectively. Question: I need my greed to keep whatever size I s ...Show All
Visual C++ Run time error in very simple matrix code
Hi, this gives a run time error, so it doesnt print anything.. why #include "stdafx.h" #include "stdio.h" void prueba (int a[]) { a[0]=1; a[1]=2; a[2]=3; a[3]=4; } void main(int argc, char* argv[]) { int i=0; int b[4]; prueba(b); printf("%f\n", b ); } Hmm.... it does not make any sense. I tried this program and it works just fine. I assume you have create a new console project, type in this code and that's all, no project properties changes or something else. Also, it that lightbulb supposed to be [ i ] ...Show All
