Dan Heile's Q&A profile
Visual Studio Team System Open Unix Editor Source Control Explorer
Hello! One of our teams does all their development in SAS. They are planning to migrate their source control to Team Foundation Server. Since all their development is unix based, if a file is opened in windows by mistake, the file gets corrupted. To avoid this situation, 1. Is there a way to lock the file in Source Control such that when someone double-clicks on a file in Source Control Exploer after checking it out, it doesn't open in the VS2005 IDE 2. Is there a way to open the file directly in the unix editor Any settings that have to modified\any plug-ins required. Thanks! If you don't want a particular file extension to open using its associated VS editor window, you can modify VS set ...Show All
Smart Device Development Detect Device Cradled
I have a windows application which I need to start when the device is cradled. how do I do this how do i detect when the device is cradled The OpenNETCF.Desktop.Communication library includes the ActiveSync class that will allow to do that: http://www.opennetcf.org/docs/Communication/OpenNETCF.Desktop.Communication.ActiveSyncMembers.html http://www.opennetcf.org/PermaLink.aspx guid=d7b7cbef-4ab6-477b-924c-0498a523beaf ...Show All
Visual Studio 2008 (Pre-release) Canvas, to front
i know that i maybe ask for to much last time, but kinda found the answer. http://blog.rioterdecker.net/blogs/chaz/ by using path and keyframes in animation i kinda made what i needed. my next qustion is how do i get object to get in front one way is to maybe get the object in the canvas, the other is to focus the object in my list item inherits ContentControl list inherits ItemsControl well since the items is content and the list controls the items, maybe theres is a way to "focus" desired item my problem is the for example stack items and cycle threw the list, when u come half way threw the items in back will "overlap" the once in front found anser: using ZIndex ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Line Of Fire
hi! I was wandering how to calculate an intersection between a ray and a plane (please dont' write the equation). I want to shot an inclinated surface and i can't use bounding boxes or bounding spheres because in that case the bullet will disappear in air. How can i do sorry for my bad english :) Right, take a look here. You got there one of the best ray-triangle intersection routines, written by Tomas Akenine Moller. http://www.cs.lth.se/home/Tomas_Akenine_Moller/raytri/raytri.c I’ve tried it and it works flawlessly. ...Show All
Visual Studio 2008 (Pre-release) BitmapImage holding an image file?
I have an application that is loading images in the following manner. string[] files = Directory.GetFiles("c:\\", "*.jpg"); foreach (string file in files) { BitmapImage bitmap = new BitmapImage(); bitmap.BeginInit(); bitmap.UriSource = new Uri(file); bitmap.CacheOption = BitmapCacheOption.None; bitmap.CreateOptions = BitmapCreateOptions.IgnoreImageCache; bitmap.EndInit(); Image image = new Image(); image.Height = 50; image.Width = 50; image.Stretch = Stretch.Uniform; image.Source = bitmap; panel.Children.Add(image); } With some images, I notice that the file is being held/locked by the appl ...Show All
SQL Server What is it? "Could not resolve expression for schemabound object or constraint"
I trying create view on Employee table in my database, but error occured: Msg 2791, Level 16, State 5, Procedure EmployeeActive, Line 3 Could not resolve expression for schemabound object or constraint. View: create view dbo . EmployeeActive as select EmployeeId , StateId , FirstName , SecondName , MiddleName , FirstNameSys , SecondNameSys , MiddleNameSys , Email , SID , Comment , Pin , DismissDate from dbo . Employee where DismissDate is not null Table: CREATE TABLE [dbo] . [Employee] ( [EmployeeId] [int] IDENTITY ( 1 , 1 ) NOT NULL, [StateId] [int] NOT NULL CONSTRAINT [DF_Employee_StateId] DEFAULT (( 0 )), [FirstName] [dbo] . [contact] NOT NULL, ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Are they bugs?
Hy! I'm trin' XNA since 1.0 was released, so I'm kind of newbe. The first thing, what I expected as a bug is that SynchronizeWithVerticalRetrace seems to do nothing. I use the base Windows Game project for test, and in the Initialize function I set some parameters: _graphics.GraphicsDevice.PresentationParameters.FullScreenRefreshRateInHz = 70; _graphics.SynchronizeWithVerticalRetrace = true; _graphics.IsFullScreen = true; But it do nothing. The problem is: I can turn on/off VSyns, but I can't handle the refreh rate! I set it to 60, then to 70, but in fullscreen, my application runs with 85Hz -> 85 FPS instead of 60 or 70. Addition to this, my app throw an error, and Express must be restarted... The second is with multi ...Show All
SQL Server Upgrade from SQL 2000 to SQL 2005 - Any known issues?
Hello, First off, thanks to all for taking the time to read and respond to this question of mine. Greatly appreciated. Let me explain my current scenario followed with the question. We currently have our VB application written and working at various client sites on SQL 2000. We did received a number of request on upgrading to SQL 2005. We did some preliminary testing in-house on SQL 2005 (backed up the 2000 database and restored on 2005 which worked just great). It is also my hope that technically, everything should work just fine since 2005 is backward compatible to 2000. Is anybody aware of any issues with taking a 2000 database and getting it to work on SQL 2005 without any mods Thanks. The ...Show All
Windows Forms Problem: Installing a ClickOnce-App from a URL
Hello, i have some problems with publishing my ClickOnce-application from an URL. In VB2005 Express, i select "publish Projectname", then i specify a website (http://...) to publish my application, and finally, i select the option "the application is available online and offline". After that, everything works fine. But when i try to start the application from the created website (publish.htm), the setup.exe starts but it stops with showing the .application.-file in the internet explorer. I had the same problem with a local installation some days before, but i could solve it by changing the settings for the .application file type in the folder options. Can anybody help me Regards Tom M ...Show All
Visual C++ How to share functions, objects from the main APP to the plugin dll?
Hello everyone, I guess this subject was already discuseed few times in this Forum but still I would like to hear some more oppinions: I am developing an application which main task is to receive data through the SerialPort (using a SerialLibrary) and to process and display these ddata in the GUI. This application should have also an API which supports plugins - dll files that are loaded dynamicali during runtime. The application API should be an interface for the plugins and it would have two main tasks: 1. Load the plugin dlls upon execution and initialize their functions from the DLL (with the help of LoadLibrary and GetProcAddress). 2. Offer an interface for the plugins to access the main application resources with other words, ...Show All
Visual C++ how to display pictures in a console program
How to display images in a C++ Command Console program I guess it's probably not worth the fuss (and I need to display pictures with an alpha channel[transparency], which obviously aint gonna happen) Anyways, I was trying to make an app that could easily be ported to the Playstation Portable (homebrew) and since the PSP doesnt like system::string^ (which would be what i'd have to use in a .net app because the text boxes use string^ to store data) it would complicate the porting process. this is just one problem, and the psp is closer to dos than win32. ...Show All
Visual Basic Graphics in VB.NET- How do i draw to a form without using onpaint method?
Hey you! I want to draw something on to a form but i don't want to use onpaint() method. I don't know how do i do Please help me if you can! Thanks very much! dvl_vn @ Ghaby I haven't played around with it yet, but the XNA Framework is perhaps something you could look at - it's a 3D game-creation tool but 3D games are basically " running around in a 3D map " so it may offer you an easy and far more powerful way to take your map tool into the third dimension (2D is of course also part of that). See the XNA forums in the index for more info: http://forums.microsoft.com/MSDN/default.aspx ForumGroupID=20&SiteID=1 ...Show All
SQL Server Comments on configuring partitions
Hello, I'm currently building partitions into my cube. My scenario is thus: I have 74 measure groups (yeah I know - it sounds ridiculous but trust me, it IS valid) Each measure group is to be partitioned by year We are (currently) going to partition them over 12 years In other words I have to build 74*12 = 888 partitions Quite apart from the fact that its going to take most of my working week (and it'll be the most boring working week of my life) there is huge potential for human error here. As stated above I am applying the same partitioning strategy for each of my 74 measure groups so I am repeating the same basic steps 74 times. It occurs to me that there MUST be a better way and if there isn't - there should ...Show All
Architecture Selecting the Right tool for UML
Hi all, I am in making a decision of selecting a UML tool for better class design, sequential diagrams and so forth. with your all experience kindly suggest me which one would be better and more useful. (Visual Studio do provide UML tool but it is not stable currently. At the same time since it is a Microsoft product so they will make their tool look and feel rich + enhance the functionality in the coming years) Following are the choices - (or you can suggest one) 1) Rational Rose, 2) Visual Paradigm 3) Enterprise Architect (sparxsystems.com.au) 4) Visual Studio Provided UML 5) Visio As keeping current market tools in mind and as a designer of the system I have to make a deci ...Show All
Smart Device Development Connection String with Northwind demo Problems
Hi Folks, I am having some trouble with a connection to a database in Visual Studio 2005, I have managed to add the Northwind.sdf demo database to my "server explorer" window in VS and in the properties window, the connection string Data Source ="F:\Program Files(2)\Microsoft Visual Studio 8\SmartDevices\SDK\SQL Server\Mobile\v3.0\Northwind.sdf"; appears, but when I go to paste it into my code, the "Data Source" bit is hi-lighted in red, as is the trailing " ; ) I am unfortunatly working from a VB .Net SQLServer CE book, and this is Visual Studio 2005, so there must be some changes that I don't know about. Mousing over the "F:" bit which is underline in squiggley blue gives t ...Show All
