a23rd's Q&A profile
Visual Studio Team System view all change lists
hi, i had two workspaces with files checked out on each. i checked in the changes for one workspace and to my dismay changes for both workspaces got checked in. not what i expected. so, i want to view the specifics of a change list relative to the database and not a specific file. i need to revert these changes that went in incorrectly but i don't know which files nor how many. i read somewhere that TFS was based in some manner on perforce which is very easy to use while in TFS...not so much. thanks, scott Microsoft's internal source control system (source depot) is based on perforce. TFS was written entirely from scratch, but our long-term usage of a p4-like system had an pretty obvious effect on the desi ...Show All
Smart Device Development ListView Vertical Scrollbar
Hi, I need to have a ListView only with a Vertical Scrollbar, but i don't know how! At this moment i have a listview with the view propertie set to List ! In this listview i have only a colummn, but due to its size (listview), an horizontal scrollingbar was created Does anyone knows how to solve this Thanks Searching on MSDN for PInvoke turned up this helpful article: http://msdn.microsoft.com/library/default.asp url=/library/en-us/csref/html/vcwlkPlatformInvokeTutorial.asp ...Show All
Smart Device Development Debugging WM 2003 SP with VS2005
Is it possible to debug a WM2003 SP using VS 2005 All my attempts on several devices on several different desktops yield the same result: Access Denied. I can: 1. debug WM2005 SPs with VS2005. 2. run on a WM 2003 emulator. 3. run un-attached to the debugger on a WM2003 phone. but i cant debug. I've heard of several people having this same problem too. I've heard rumors that it is possible though and it must be. What could my problem be Thank you for any advice. This is something related to configuring security certificates on device. See if following white paper helps http://msdn.microsoft.com/library/default.asp url=/library/en-us/dnppcgen/html/wmsecurity.asp This paper contains a section for Debug ...Show All
SQL Server file corrupted message on query of restored db
The analysis services database is operational on original server where it was processed. I backed it up and restored backup on another machine, and it fails to display data with message like this: The query could not be processed: o File system error: The following file is corrupted: Physical file: \\ \F:\MSOLAPDATA\mycube.24.db\cubedev.119.cub\datafacts19.172.det\cubedev.67.prt.fact.data. Logical file . I tried the backup 2 times - both in compressed mode. When uncompressed the database takes up 70GB. can anyone suggest what might be the reason for this The datbase works fine when I query it on the original server. Both machines have the same version of SQL 2005 - SP2 Dec CTP. I am also experiencing th ...Show All
Visual C# Letter Combinations
What I would like to know how to create different combinations from a preset list of letters. Lets say if I choose "A, F, Z". I would like the program to make the following : A Z F, F Z A, A F Z, F A Z and ect. Here's a solution that uses iterators: Note, this is not my work, I modified the code from this URL to do exactly what you were after - http://www.interact-sw.co.uk/iangblog/2004/09/16/permuterate public class PermuteUtils { // Returns an enumeration of enumerators, one for each permutation // of the input. public static IEnumerable < IEnumerable <T>> Permute<T>( IEnumerable <T> list, int count) { if (count == 0) { yield return new T[0 ...Show All
Windows Search Technologies Stopping Search from a command line?
WDS under Vista has huge performance issues for me- even after allowing 5 days for it to index, my HD runs excessively. The worst performance hits are when I'm running anything full-screen DirectX, at which point every 10-20 sec, I'll hit a pause of 1-2 seconds. Irritating. What I'd like to be able to do is stop the service from a command line. In XP, you could do this with something like "Net Stop "Windows Search"" in a batch file. In Vista, I get "System Error 5 has occured. Access is denied." Any workaround And I mean to the command line problem, not the performance problems... I would be interested in the response to this. Ever since I installed Desktop Search | ...Show All
Windows Forms Custom TreeView
I am writing a custom treeview control where the nodes are in different font sizes. I have used Inherits TreeView and SetStyle Me .SetStyle(ControlStyles.AllPaintingInWmPaint, True ) Me .SetStyle(ControlStyles.UserPaint, True ) Me .SetStyle(ControlStyles.OptimizedDoubleBuffer, True ) And in OnPaint I paint the nodes.All works , except that I see that the scroll bars are not displayed appropriatly. Scrollbars appear when the control is very small. ( it is as if the treenodes are drawn in the background with the initial font and scrollbars appear based on it) Is there a way to set the scrollbars Any help is appreciated Protected Overrides Sub OnPaint( ByVal e As System.Windows.Forms.PaintEventArgs) Pa ...Show All
Game Technologies: DirectX, XNA, XACT, etc. text mixed with 3d
thought id ask another question while im at it. i want to display text on the hud of my 3d engine. i did some searching and came across some of the text components out there and chose the nuclex.fonts componenet (very good imo). this works fine on its own or with other 2d objects (eg. sprites) but if i render any 3d objects, all the 3d objects have z buffer issues. i noticed this problem when i first introduced sprites into my engine and it was fixed via the spritebatch.begin methods savestatemode parameter. however, this functionality doesnt exist with the nuclex.fonts package, so my 3d objects are all screwed again. is there another option to prevent this, or can someone tell me how to manually save my renderstate and restore it after re ...Show All
Visual Studio 2008 (Pre-release) Config Equivalent for Credentials.IssuedTokenAuthentication.CertificateValidationMode
I have to set this in code for issued tokens and peer certificate validation - that's fine and i know the implications. hostIssuedToken.Credentials.IssuedTokenAuthentication.CertificateValidationMode = X509CertificateValidationMode.PeerTrust; But how can I set this in config the <issuedTokenAuthentication> section does not seem to support this... ...Show All
.NET Development How to unregister a COM wrapped .NET assembly?
Hi All, I created a COM exposed .NET 2.0 dll and registered with my Windows 2000 operating system using 'regasm' and 'gacutil' Then I tried to call this component from my classic ASP page. It worked fine. But, I need to change the functionality of my assembly. I unregistered it again using 'regasm' and 'gacutil' utilities and copied my new .NET DLL and registered again. But for some reason, i still have a pointer to my old assembly and new calls to the DLL from ASP page are not working. Any Ideas I appreciate any help. Thanks This is when it really helps to know the CLSID of your COM class because the registry at HKLM\CLSID\{Class guid} conta ...Show All
Software Development for Windows Vista Error while attempting to compile a workflow into an executable
I am trying to compile a workflow containing only one custom activity. The custom activity is as simple as you can get - it only displays a message. When I attempt to compile it into a DLL the compilation works fine. Then I set my WorkflowCompilerParameters.GenerateExecutable to True, try to compile it again and get the following error: Program '<path_to_the_compiling_workflow_execuatable>' does not contain a static 'Main' method suitable for an entry point I tried to add a static Main method to my custom Activity class and it didn't help. Then I searched around and found this thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=560408&SiteID=1 After reading it I went ahead and removed the x:Class="< ...Show All
Visual C++ MultiThreading
Hi, I'm new to Visual c++ and am currently making one of my first programs. I'm trying to use the CCriticalSection and CSingleLock classes in this program, and to do so, I know I need to include <afxmt.h>. Well, when I try to compile my program for debug, I get all kinds of errors like this: I duno why I get them, but if some1 could please help me fix the problem, I would greatly appreciate it. ------ Build started: Project: Dales Name Genz0r Beta, Configuration: Debug Win32 ------ Compiling... stdafx.cpp C:\Program Files\Microsoft Platform SDK\Include\mfc\afxv_w32.h(194) : error C3641: 'DrawState' : invalid calling convention '__stdcall ' for function compiled with /clr:pure or /clr:safe C:\Program Files\Micros ...Show All
Visual C++ gdilplus deinterlacing bitmaps
I have I gdiplus bitmap which is 576 in height, and I need to split it into 2 bitmaps 288 in height, with alternate rows in each. The way I am currently doing it is as follows ( where in_pGdiBitmap is bitmap to split, and m_pOGDIGraphicsEven / m_pOGDIGraphicsOdd are the resulting two bitmaps ) This does work, but I need to do it supper efficiently... has anyone got any ideas RectF destRect( 0f , 0f , 720f , 288f ); if (m_pOGDIGraphicsEven) { m_pOGDIGraphicsEven->DrawImage( in_pGdiBitmap, destRect, 0f , 0f , 720f , 576f , UnitPixel ); } if (m_pOGDIGraphicsOdd) { m_pOGDIGraphicsOdd->DrawImage( in_pGdiBitmap, destRect, 0f , 1f , 720f , 576f , UnitPixel ); } thanks in advance aidanh ...Show All
Visual Studio 2008 (Pre-release) AutoCAD DWG and DXF WPF/XAML Conversion Toolkit
...is up at Codeplex. D2X converts both 2D and 3D files, and comes with a sample application and documentation. If you're at all interested in any mixture of CAD/WPF, download the release and let me know what you think. Cheers, F. Ok - would you know where I can find the specifications for these file types Are there any free viewers you know of I'd absolutely consider taking a crack at writing converters for more file types if I have the time. Thanks, F. ...Show All
SQL Server trigger- get row number from inserted/deleted
I need to add the row number or record number to the 'inserted' and 'deleted' tables in a trigger. Among other things, I have tried- SELECT 1 as rowId, i.* INTO #ins FROM inserted i if @@ROWCOUNT > 1 --if multiple rows, set row number begin SELECT @pkWhere = coalesce(@pkWhere + ' and ', ' where ') + PKF.colName + ' <= i.' + PKF.colName FROM #primaryKeyFields PKF set @strSQL = 'update #ins set rowId = (Select Count(*) From #ins i' + @pkWhere + ')' exec (@strSql) end -the above sets rowId for every record to the total instead of sequential. Keep in mind that this code is used to create a trigger for any table, hence I cannot specify any column names literally. This SHOULD be simple... right ...Show All
