Rattlerr's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Vertex Buffers, draw methods and associated nonsense...
Hi all, Standard preamble, new to this, having a go at c# and XNA for the first time, having a blast, absolutely sterling job by the devs, etc. I'm playing around, drawing primitives and the like. Currently, I've got a little bit of code that I use to draw a grid on the screen. Pretty simple. A Line class, and a LineManager class. Now, it works, but it's obviously horrendously inefficient. It's like an idiots first day at coding school, I know. I've got objects re-instantiated inside loops and all sorts. So after compilation I see my grid, all well and good, but because of the horrendous inefficiency I presume I'm falling afoul of the GC, getting a regular stutter every second or so. The problem, it seems to me, is the createLine() called ...Show All
.NET Development Problem in Interop
Hi, I have a problem in interop. I have a c++ dll that has a function that takes the control handle as input and does some manipulation on the editable field. // HINSTANCE SetInstanceHandle(HINSTANCE hInstance) I have a .NET form in which I have a textbox control. Now I import the c++ dll and invoke the function. Now, I pass the textbox control's handle as Control.ControlAccessibleObject .Handle (which returns a IntPtr). This gives me an error quoting " The runtime has encountered a fatal error. The address of the error was at 0x79ef04d2, on thread 0x364. The error code is 0xc0000005. This error may be a bug in the CLR or in the unsafe or non-verifiable portions of user code. Common sources of this bug include user marsh ...Show All
.NET Development TreeView Control
Hi TreeView control always does postback when each node is selected. Is there any way to avoid this behaviour ...Show All
Visual Studio Team System Annoying Word automation error
Hi. I'm working with manual tests (file.mht) and struggle with an annoying and timeconsuming error: Created manual tests and added them to a list of tests in screen TestManager 1) Select one test. Properties window is higllighted with the selected test. 2) Add value to the field iteration in the property window. 3) Error is invoked. "Failed to set document property by using Word Automation." Found info on http://www.kbalertz.com/kb_926308.aspx regarding this error. The problem seems to be that I'm using different languages for XP and Office My current langugage in Office : English (UK) My current langugage in XP : Swedish (I think! Not sure which defaultlanguage that were choosen during installation of XP) Try to ...Show All
Software Development for Windows Vista Getting an overview of a Dynamic format change and it's application to a filter derived from CTransformFilter
Hi I'm trying to do a transform filter derived from CTransformFilter. It does everything should be doing except handling dynamic format changes like when used in a DVD graph with a codec that defaults to 720x480 and then switches to 720x576. As a renderer i use VMR9 in YUV mixing mode and my transform filter doesn't not have any preference towards the YUV format for now. So the goal of the filter would be to have anything relating to the format handling working exactly as if no transform filter was in between and thus letting the codec and VMR9 workout the connection and simply having the transform jacked in between. For performance reasons i choose not to go with CTransInPlace filter. So what I need are some pointers on how ...Show All
Community Chat Is MS trying to throw away menu bar?
In IE7, classic menu bar is disabled by default. In Office 2007, there is not menu bar at all. Also the traditional toolbar is gone. I can't find a way to create my own custom toolbar too. What's happening I know menu bar is very classic and not pretty, but it is one single place that I am 100% sure that I can get all the features from a program. I don't want to lose it. Hey, check out Word 2007. Try pressing Alt and see what happens. Weird. I must say I do love menus. All functionality in one place. Pretty cool. New GUI designs could be worth it in the end though. Don't worry, I'm sure Microsoft won't let us down. They never have ;) ...Show All
Windows Live Developer Forums www. Invasion of the Robots Contest for Windows Live Messenger
It's here... an unstoppable force sweeping the globe the Invasion of the Robots! Microsoft is challenging developers worldwide to create conversational robots, or BOTs, for MSNR Messenger and Windows Live Messenger. The most original, useful robots collect $40,000 in total prizes . See http://www.robotinvaders.com/main/default.aspx . Questions about the contest, building Messenger applications with a BOT or Activity, what you can, should or want to build should be posted back to this forum. Here's a post with a list of ideas... http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=228548&SiteID=1 I know the whole team looks forward to seeing what people develop as a part of this contest. A lot of feedback from the people ...Show All
Software Development for Windows Vista Debugging Webservice Workflows
Is it possible to debug Workflows exposed as Webservice I'm trying to understand the webservice workflow example at http://msdn.microsoft.com/msdnmag/issues/06/10/WebServiceWorkflows/ However, when I try to set breakpoints on the activities, the Visual Studio debugger doesn't break into the activity. Is there any other way to debug without hosting the workflow in a console application Thanks for any help. If you have published your workflow in ASP.NET development server you need to attach to weddev.webserver.exe and to w3wp.exe if it is published under IIS. While attaching make sure you select "workflow' debug engine from the attach to process dialog. Here are the steps to debug any asp.net ...Show All
SQL Server using pessimistic locking
Hi, I need whether we can implement pessimistic locking through Ado.net at query level..i.e locking a table whenever we are updatig,deleting,selecting etc. from or to the database through an application written in .net languages. If yes, please provide me some good link where i can get the samples for the same or some lines of codes... As per msdn( http://msdn.microsoft.com/chats/transcripts/net/vstudio_042903.aspx ), "A: Pessimistic locking is not natively supported in ADO. NET . However, you can achieve this type of locking through transactions" If this is the case, then is it possible to implement pessimistic locking at query level in the DAL code generated by a tool. Also let me know if it is a good approach. re ...Show All
Visual Studio Express Editions Need help parsing tab delimited text file
I have a tab delimited text file that has a tab as the first character of each row. In other words there is a nice neat space at the beginning of each row. I am looking for ways to remove the space but cannot find a way to go about it. I found the textfieldparser and am using it to read each line and am, in tern, writing the line to a new text file using the file system object writealltext and adding a couple of fields at the end of each line. I am new to coding in general. Any push in the right direction would be appreciated. you could read the line and do a trim() on the line, this would remove all spaces from the start of the string and the end of the string and should get rid of the tab spac ...Show All
Architecture Using Object Relation Mapping Tools
I am planning to use Object Relation mapping tool in our project, presently we zeroed on Nhibernate. Just before implementing i want to seek advice on the below points Any cons of using OR mapping tools Any known issues Any performance issues TIA, Sudheer. The answer to all your questions is Yes. If you do not intend to use the Domain Model Pattern, then O/R mapping is probably not for you. If this is your first time implementing a Domain Model, I would suggest reading the book Domain Driven Design by Eric Evans, or Applying Domain Driven Design and Patterns by Jimmy Nilsson, BEFORE you get started. More importantly, if you haven't tried persisting objects yourself, then you might ...Show All
SQL Server Third Major Flaw with Reporting Services!
What is the way to keep multiple detail rows together on one page. There seems to be no future to keep multiple detail rows together. I'm not talking about table keep together, group page break or anything like that. I have 3 rows that need to be in one page at all times. Is there anyway that this is possible Enkh I don't really follow you on that. How do you put a "detail" rows into textboxes Do you mean actually copy the detail fields into textboxes each I'm not really sure what you mean by putting the detail rows into textboxes Copy the values Thanks for making it clearer. Enkh ...Show All
Microsoft ISV Community Center Forums Need help with VBA project, need it to take dates input by user
I have a form that loads and asks for the starting date (dte1) and end date (dte2): If I run the comand button without taking any dates it runs like this: Private Sub CommandButton1_Click() Dim dte1 As Date Dim dte2 As Date dte1 = Date1.Text dte2 = Date2.Text Range("A6").Select With ActiveSheet.QueryTables.Add(Connection:= _ "ODBC;DSN=One Family;DefaultDir=W:\HOME\TU;DriverId=27;FIL=text;MaxBufferSize=2048;PageTimeout=5;" _ , Destination:=Range("A11")) .CommandText = Array( _ "SELECT CLIENTS.NAME, CLIENTS.SDischargeDate, CLIENTS.`TANF_SSN_#`, CLIENTS.`VERIFICATION#`" & Chr(13) & "" & Chr(10) & "FROM CLIENTS.TXT CLIENTS" & ...Show All
.NET Development Error: Unable to open shim database
I get this kind of events logged in the eventlog: Source: .Net Runtime Type: Error Unable to open shim database version registry key - v2.0.50727.00000. Is this 'normal' behaviour or is there a misconfiguration. I have this messages on Windows 2003 Server, on SqlServer2005 boxes as well on TFS app tier and Terminal Server running VS2005. Strange thing is: everythings seems to work OK... Rene Can you run regmon (from sysinternals) and filter on errors only, to see which registry key is actually the culprit Tnx Rene ...Show All
Visual Studio Team System Cube Error
Any ideas, wit this error, I'm getting on my App Server: Detailed Message: The pending configuration changes were not successfully added to the cube because of the following error: Microsoft.AnalysisServices.OperationException: XML parsing failed at line 1, column 0: A document must contain exactly one root element. . Errors in the metadata manager. An error occurred when instantiating a metadata object from the file, '\\ \E:\MSSQL.2\OLAP\Data\TfsWarehouse.0.db\Tool Artifact Display Url.1299.dim.xml'. Errors in the metadata manager. An error occurred when instantiating a metadata object from the file, '\\ \E:\MSSQL.2\OLAP\Data\TfsWarehouse.0.db\Tool Artifact Display Url.1299.dim.xml'. at Microsoft.Analysi ...Show All
