Mateusz Rajca's Q&A profile
Visual Studio Team System branch on a label
Let me walk you through my scenario which will lead to my question. I recently migrated a large project from VSS to VSTF. We stayed away from branching in VSS, which was probably a wise descision. Now that we have much more sophisitated branching functionality in VSTF, we have started using it. When the project was in VSS it was under the root $/foo. About a week before the migration, we cut a label on $/foo called 1.0.0 (as it was just released to production). I created a "foo" team project and then migrated the project from VSS to VSTF under $/foo/main for the mainline development. I then did a branch from the cut label 1.0.0 and called it $/foo/Rel1-Maint. The interesting thing is that I can't do a merge at the $/foo/Rel1-M ...Show All
.NET Development DataSet Merge
I wish to merge two datasets. However while merging i want to ensure that the merged data does not overwrite the dataset already existing even though the table has primary key constraint placed. Is this possible. Thanks This page has a nice complete explanation of dataset merging I thought: http://msdn2.microsoft.com/en-us/library/aszytsd8.aspx ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting a decent framerate in C# DX9
So I'm currently trying different ways of working with 3D.. as a test, I tried making the same small demo in XNA and MDX, and for some reason the Managed DirectX C# project runs at a much lower framerate (47ms per frame for MDX vs 25ms per frame for XNA, i.e. 21fps MDX vs 40fps XNA, even though my XNA project actually includes a full-screen bloom shader pass!) I'm even using the recommendations from here , although they didn't make an appreciable difference (I hadn't implemented the frame time counter yet, but it was still visibly slower than the XNA version of the project). For the record, the 'project' is simply a textured mesh with specular lighting which rotates according to the position of the mouse. Any suggestions for where my bottl ...Show All
Visual Basic How can I capture mouse gestures?
I have a 'widgets' program that just sits in the system tray until the user presses Ctrl+F8 or clicks on the icon. What would be completely awesome is if the user could activate the program by doing some kind of mouse gesture (moving it in a spiral, or somthing like that). Would it be possible to implement this in VB.Net or should I not even bother trying hehe thats pretty cool. I would already find issues with this, what happens if the user did the sequence you were after but did not intend to launch your application back up What happens if they did it accidently or playing a game or something Would be bad therefore its better doing it via the keyboard shortcut instead. I think you would have to have some mouse hook or something. ...Show All
Visual C++ Calling C++/CLI dll from C#
I work on an app that controls a Canon camera in C#. Until now, I used a common C# wrapper for their SDK. They have a new SDK. So, I wrote a wrapper in C++/CLI. But, it stopped working, it gives an error : The specified module could not be found. (Exception from HRESULT: 0x8007007E). I found on my notebook that creating a vanilla C++/CLI dll with a simple method, and calling it from C#, compiles but gives this error. On my desktop, however, it works fine. So, I rebuilt the wrapper dll, and integrated it into my app. The same dll, with the same manifest file ( it's also got one embedded ), gives this error in my app, but runs in a very simple app ( which just calls the same methods ). I think the problem is WinSxS ( which has been an ...Show All
Visual Studio Editing the .csproj file's Target (After & Before build) Programmatically
Hi All I have created Solution and Project and Saved it. Now I need to Edit the .csproj file and add target to it so that My msbuild system can use it. Can anybody help me, what kind of DTE object OR how do I go about it ...Show All
Visual Studio 2008 (Pre-release) PreviewMouseMove event of Canvas not received fast enough
This question is a little odd, but hopefully someone can clue me in on what the problem is. I recently published a class, CanvasDragManager, which manages the dragging of UIElements in a Canvas. You can read about it and get the source code here: http://www.codeproject.com/useritems/DraggingElementsInCanvas.asp As the article mentions, I need to hook the tunneling mouse events of the Window/Page which contains the Canvas being managed, not the events of the Canvas itself. This is because if I hook the Canvas' events (in particular the PreviewMouseMove), the mouse move notifications don't seem to arrive to the event handling method if the mouse is moved very quickly. If I hook the Window's event, it work ...Show All
SQL Server Why doesn't "SET ROWCOUNT" make a difference in Query Cost?
Hi all. I was running some tests on some stored procs today to see what would be the best way to go. Specifically, I was working with paged data, using SET ROWCOUNT to limit the number of results. While I was testing different versions of the stored proc in Query Analyzer, with Execution Plan turned on, I noticed that limiting the number of rows returned made no difference in the values presented in "Query cost (relative to the batch)". Why is this I even ran some tests where one query returned 80,000~ results and the other returned 25, and the relative query cost was still identical. When you're in a situation where the differences in your stored procedures depend on the number of rows returned by the different queries involved ...Show All
Windows Forms Adding image to ListView item
I want to selectively add images only to certain items(rows) which satisfy a condition. How do I do it Imagelist1 is added Here's the code I'm using: Public sub addThisRow(ByVal one as String, ByVal two as String, ByVal three as String) Dim item1 As ListViewItem = New ListViewItem Dim flag As Boolean = True If flag Then item1.SubItems.Add(one ) item1.SubItems.Add(two ) item1.SubItems.Add(three ) Else item1.SubItems.Add(one ) item1.SubItems.Add(two ) item1.SubItems.Add(three ) End If flag = False ListView1.Items.AddRange( New ListViewItem() {item1}) Does the answer to this previously asked question answer your question: http:/ ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Super Stickman Adventures (source included)
After doing some spriting, here's a "new" game, Super Stickman Adventures. I'll let you guess what type of a clone it is.. It includes 5 levels, some enemies, and a whole lot of bananas ! (I hope donkey kong won't kick my ***) Keyboard controls : arrows, shift, space, enter Gamepad controls: left stick, x, a, start Download/Screenshots - HERE If someone would like to contribute with their own graphics/sounds/music, just email me. Have fun! PsyCadelik wrote: Sure you can, that's what it's for! But if you use most of the code unmodified, don't forget to give me credit somewhere We can always work together if You'll want. I just want to use Your title engine for make some new game. Not commercial. Just for fun an ...Show All
Visual Basic Create Web-like Forms as Windows App
I have used VS 2005 to create a family-based web site ... about 100 pages/forms consisting of mostly text with some graphics thrown in for interest. I have no intention of putting this out on a publicly-accessible server but instead had anticipated burning everything onto CD's and then distributing that to family members so that they could view the site on their own machines (XP Pro SP2) using IE. In inquiring on this forum how to do that I am told that that is not feasible and that instead I should have created a windows app and simply deployed that app to the family (via CD). That's fine except for one thing ... I don't know how to create a web-like app as a windows app. For example, as I create the app I want to be able to easily highli ...Show All
Visual Studio 2008 (Pre-release) Can't get to original source from ExecutedRoutedEventArgs
I have a problem getting to the original source of a command using ExecutedRoutedEventArgs. I'm creating a simple splitbutton, in which a menu will appear below a dedicated button, as another button is pressed. When I click a menuitem in the appearing menu a command is fired. This command is registered on the splitbutton. And the idea is to get to the menuitem beeing clicked, by using the ExecutedRoutedEventsArgs. Ok, now the problem. If I choose to have the popup menu shown by default (IsOpen="True") and I click one of the menuitems I can get to the originalsource (thus the menuitem) from the ExecutedRoutedEventArgs - no problem. However, if I first click the button to show the menu and THEN click on a menuitem, the originals ...Show All
Visual Studio 2008 (Pre-release) Unable to begin a storyboard in a datatrigger.
With the following code: <Button.Triggers> <DataTrigger Binding="{Binding Path=ReadyToAnimate}" Value="True"> <DataTrigger.EnterActions> <BeginStoryboard> <Storyboard> <DoubleAnimation Storyboard.TargetName="myButton" Storyboard.TargetProperty="Opacity" To="1" Duration="0:0:0.3" /> </Storyboard> </BeginStoryboard> </DataTrigger.EnterActions> </DataTrigger> </Button.Triggers> I get the following exception: Triggers collection members must be of type EventTrigger. Any help would be greatly appreciated. See the response in this thread: htt ...Show All
Visual Studio Express Editions FileSystemWatcher.Filter questions
Looking at the MSDN documentation's examples, they only show how to specify certain types of documents. For example, using *.* for all files, *.txt for just text files, *doc.txt for files ending in doc.txt and so on. I'd like to know if I would be able to specify multiple document types in the filter. For example, I would like to find all types *.txt and *.doc I understand that I can just find all files and then filter out the ones I want in other ways, but since the class contains a property to filter types, I'd just like to know if multiple types can be specified in the filter property. Thanks, Bill ...Show All
Visual Studio VSS 2005 install not installing VS 2005 plugin.
Hello, Not sure what's going on but has anybody successfully been able to get the VSS 2005 install to complete successfully and when finished, have the VSS plug-in available in Visual Studio 2005 I have enabled the IIS compatiblity. I right click and run the vss setup as administrator. I get no error messages but afterwards, if I click on file there is no source safe option. Also, when I try to open a website, source safe isn't an option. My database server is on a remote W2k3 server. I need the add-in for Visual Studio to open projects from databases on remote servers. Also, I have tried installing VS 2005 SP 1 beta. (Not that I could see how it would make a difference but tried none the less.) Any ideas of how to get this ...Show All
