Morten Dahl's Q&A profile
Software Development for Windows Vista /analyze + Windows Vista SDK + VSTS2005 = crash :(
First time poster long time reader... I have been using VSTS2005 for sometime, main reason for upgrade was to use the /analyze compiler option for unmanaged c and c++. Two days ago I downloaded the Windows Vista SDK, installed it and clicked on 'All Programs->Microsoft Windows SDK->Visual Studio Registration->Register Windows SDK Directories with Visual Studio 2005'. Since then compiling my project with /analyze causes VSTS2005 to crash. I would rather not uninstall the SDK as the compiler seems to be finding a lot more issues with my code, before it crashes! Any suggestions what I can do Thanks in advance. ...Show All
Visual Studio Express Editions visual C# express edition podcast...
being i just bought a new mp3 player... ..does anyone know of any good podcasts that cover c# .net development If not, isn't it time some of the great MVP's on this forum started one hmmm, good question.. i'd guess: common mistakes the n00bs (like me) make - bit like a faq maybe cover useful resources that come up on the web - links to handy www sites etc.. perhaps c# 101 lessons covering the difference between variable types, difference between classes / functions / methods explaining oop concepts explaining interop examples. use of system dlls via pinvoke etc suggestions of good starter projects latest programming tech news and much more.. ...Show All
Windows Live Developer Forums Why are all the pushpins in the SDK demos misplaced?
I am curious why the pushpins in all of the Interactive SDK samples are not properly handled. As you zoom in and out on the map, the point that the pushpin is pointing to moves. For example, bring up the Interactive SDK and select Use pushpins->Add a default pushpin from the left menu. A pushpin is placed on the map pointing near the northern border of Nebraska. Now zoom out once. The pushpin is now pointing to the center of Nebraska. Zoom out again and the pushpin is in Kansas! The reason is because it is positioning the center of the pushpin image, not the "point". This is easily fixed with CSS styles, which can be embedded in the HTML sample code. The same occurs on all the other samples I have looked at. I am using Firefox ...Show All
SQL Server Issues With SQL 2005 Encryption
Are there any pitfalls i should look out for when using the encryption in SQL 2005 I imported the data thru the import tool inside the Managment Studio. I ran it from the server not from a workstation.However i did not put and _ between the open and keys. should i try that i haven't seen it typed like that. Thank you ...Show All
Visual Studio 2008 (Pre-release) Windows Form opening WPF window
I have a Windows Form project containing a Windows Form that opens a blank WPF window with a TextBox control and the text is not displaying within the TextBox with keyboard input. If I copy the XAML to a WPF .NET 3.0 project the text will be displayed within the TextBox. However within my normal VB.NET Windows Form project the TextBox is not displaying the key presses when the WPF window is opened from a Windows Form. Does something need to be added to the project to ensure that the WPF controls will work fine when opened from a Windows Form XAML code is as follows: <Window x:Class="Window1" xmlns=http://schemas.microsoft.com/winfx/2006/xaml/presentation xmlns:x=http://schemas.microsoft.com/winfx/2006/xaml Title=" ...Show All
Visual C# Capacity
what is the capacity of Arraylist and the hash table in visual c#... There is no fixed size as capacity of all the collection classses in .Net whether it belongs to System.Collections or System.Collections.Generics namespaces inclduing both HashTable and ArrayList. As much as you add items in them its size is dynamically increased unlike normal arrays. Best Regards, Rizwan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. XNA's use of Collections
XNA uses Collections for a lot of things: ModelMeshCollection, ModelEffectCollection, EffectPassCollection, ModelMeshPartCollection, etc. which results in a lot of foreach iteration in code. I recently discovered the CLR Profiler and started poking around. It appears that using foreach on these Collections results in creation of SZArrayHelper and Enumerator helper objects. Most other systems are doing pretty well to avoid any constant object "leakage", and I'd rather keep it that way if possible (I come from the "No Dynamic Allocations at Runtime" school of console development). I'm still pretty new to C#, so what I'm wondering is if there are there ways to avoid this constant pressure on the GC -beyond hand unrolling t ...Show All
Visual Basic := Operator Help
This might seem kind of stupid, but what does the := operator do In addition, Named Arguments make code maintainability easier as you don't have to remember what the following signature does: DoWork(myObj, True, True, "Name", Nothing) With Named Arguments, you can re-write it as: DoWork(source:=myObj, sortAscending:=True, caseSensitive:=True, sortProperty:="Name", sortArgs:=Nothing) The second version is much more maintainable for code readers who need to make changes. As for the performance concerns, it may require a bit more processor time to compile the source, but the compiled code uses direct assignments and not the named arguments. YMMV if you are using the Named A ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question: 2D development for both widescreen and standard on 360
If you want a 2D game to run on 360 for both widescreen and standard TV sets, would the easiest solution be to 'center' your game to fit a standard TV and have verticle bars on either side for people using widescreen What resolution should you develop your game in so it doesn't end up being stretched when running on a 360 Thank You. Because HDTV supports 480i, 480p, 720p, and/or 1080i, you will mostly want to support a resolution of 640x480 (that's 480i), 1280x720 (that's 720p), and 1920x1808 (that's 1080i; also there's 1080p but XBox360 doesn't have 1080p capability but only with when you watch HD-DVD movies, but I can be wrong). About the 480p, that's for EDTV (Enhanced Definition TV, similar to that of DVD quality), and so I don' ...Show All
Visual Studio Express Editions Authentication Newbie help
Hey All I can't seem to crack authentication, i've followed tutorials got everything working fine when i press F5, but when it's uploaded all i get is this ------------------------------------------------ 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. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) -------------------------------------------------- Is this saying that The host should be running sql 2005 server, or can sql express exsit without a server installation. I'd like to have all the authenticatio ...Show All
Commerce Server Expression based export - BizTalk Adapter
We need an expression based export of the Commerce Server Catalog for various feeds. These are from the same CS instance/web service endpoint, so I need to create different receive locations with different Expressions (the filter Products and Categories clause) - howevr they all must point to the same endpoint. BizTalk wont allow me to create more than one Receive Location which points at the same URL/endpoint in the same BizTalk application. How to get around this Hey You can create different receive locations with the same Web Service URL but make sure that the RegistrySubkey is unique per receive location. Hope this helps and let me know if you have additional questions/concerns. Alan ...Show All
Windows Forms Datagrid column width and row color.
VS 2003 VB .NET I am currently trying to accomplish two things. 1. In Code, trying to set the column width 2. Trying to change the color of the row based on the value of one cell. For the width, I thought I could do it like this: Dim ts As DataGridTableStyle = New DataGridTableStyle Dim daGrid1 As New SqlDataAdapter(Me.SqlCommand1) dsGrid1 = New DataSet dsGrid1.Clear() daGrid1.Fill(dsGrid1, "top") DataGrid1.DataSource = dsGrid1.Tables(0).DefaultView DataGrid1.TableStyles.Add(ts) DataGrid1.TableStyles(0).GridColumnStyles(1).Width = 5 This does not effect the grid at all. 2. I don't know where to start, can't find a walkthrough or article on just this. I am needing to do both of these at run time, n ...Show All
Software Development for Windows Vista TransactionScopeOption - what no "Supports"?
I'm in the process of converting a .net 1.1 program to use System.Transactions. However, I've hit a problem. The current code creates a ES version of a transaction scope and sets the equiv' TransactionScopeOption to "Supports" which means enlist in a transaction if one is there otherwise don't bother. However in System.Transactions there only seems to be {Required|RequriesNew|Supress}. I don't want to have to a put an "If" around each call and I'd rather not have to wrap the TransactionScope object but what choice do I have I feared that was the case, although in my example the requirement is simple. I have a client where the user can choose to run under a transaction and take loads longer (already posted about th ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Does Content Manager use Caching?
I'm wondering if the content manager uses caching... I have noticed quite a few people build objects like texture caches and so forth. Is this really necessary Previous to XNA I would create a texture 1 time and share it across multiple sprite classes... rendering the same texture at many different locations (1 for each sprite) during a single pass. Is it safe to just use the ContentManager inside of the sprite class with XNA Example //constructor public Sprite( string asset ) { this .texture = game.ContentManager.Load< Texture2D >(asset);} I've built my classes like this because I made the assumption that the content manager would only load a particular asset in memory once. But since it's an assumption I'm now ...Show All
Visual Studio 2008 (Pre-release) XBAP won't run in Vista x64 RTM
Hi, I recently installed Windows Vista x64 RTM on one of our machines. I then tried to load our XBAP application, only to get an error. Trying to narrow the problem down, I created the default XBAP project in Visual Studio 2005 with the latest Cider bits, and published it. Again it wouldn't load in Vista. Now I'm not too worried, because I am able to run other XBAPs in Vista, for instance these run fine: http://blogs.msdn.com/tims/archive/2005/11/28/497492.aspx Essentially, it looks like IE7 is unable to load/parse the application exe. Now looking at the IIS6 log, I can see that the executable was delivered successfully (HTTP code 200). Somehow IE7 gets stuck and times out after a couple of minutes with the error below. I made sure the m ...Show All
