crazyy's Q&A profile
Visual Studio 2008 (Pre-release) What causes CommandBinding.CanExecute delegate to be invoked ?
I have a button that executes a command when it's clicked. I have a CommandBinding instance associated to that command, and also methods to: * Allow/disallow execution * Preview execution * Handle execution All 3 are being called. It's obvious when the last 2 will be called but not the first one. Depending on a specific application state, my CanExecute method will return true or false. When the application starts it returns false which makes the button is disabled, as I expected. As the application runs, its state is changed, but the button is still disabled because it didn't call CanExecute to get the new value. What's strange is that when ...Show All
Visual Studio Team System 'Oracle.DataAccess' directly or indirectly referenced by test assembly
Could any help me on this one Getting the erros in BuildLog.txt when running the build on a remote box.Thx - Andy C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning: Test Run deployment issue: The assembly or module 'Oracle.DataAccess' directly or indirectly referenced by test assembly 'c:\dev\src\application\build\binaries\debug\documentservices_test.dll' was not found. Also getting..... C:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Warning: Test Run deployment issue: The assembly or module ' ...Show All
Visual Studio Custom UnfoldTemplate
I have a class derived from UnfoldTemplate that I am attempting to utilize in a '.vstemplate' file. The class resides in a seperate assembly from the GAT, the assembly is strong named and references no assemblies other than what is required for type resolution of UnfoldTemplate. All attempts to register the GAT report the following exception: An exception occurred during the Install phase. Microsoft.Practices.RecipeFramework.RecipeFrameworkException: Unexpected error loading template file name MySolution.vstemplate. Make sure that the template is well formed and try again. at Microsoft.Practices.RecipeFramework.VisualStudio ...Show All
Visual C++ Cannot able to launch exe using CreateProcess( )
Hi I am the only user of the System with full Administrator rights. And i m trying to launch the Exe from a Simple Windows Application. I put a Menu Option under the Help Menu .On whose click I tried to launch the Exe. Following is extract from my WndProc( ) Fuction STARTUPINFO si; PROCESS_INFORMATION pi; ZeroMemory(&si, sizeof(STARTUPINFO)); ZeroMemory(&pi, sizeof(PROCESS_INFORMATION)); si.cb = sizeof(STARTUPINFO); case ID_HELP_RUN ...Show All
Windows Forms how to reboot machine C#
Hi, how can I reboot the local machine using C# There is a feature in my application that allows a user to make some configuration settings. The new settings cant be effective until the machine is rebooted. I made a popup window that asks if the machine can be rebooted or not. If user says yes, then the machine reboots. How can I reboot&nb ...Show All
Windows Forms Style question
I'm new to .NET Windows Forms development. I'm developing an MDI app (let's call the main MDI parent MyForm) with the standard kind of controls: MainMenu, ToolBar, StatusBar, TreeView, etc. I add all of these controls through Visual Studio to MyForm. Now if I add event handlers to all of the MenuItem clicks and ToolBarButton clicks, etc., MyFo ...Show All
SQL Server Trying to Configure For Loop Container
Hi All I am new to SSIS, I am facing problems to configure a For Loop Container My Configuration is InitExpression is 2 EvalExpression is False AssignExpression is 2 And In Expression given one codition but its does not execute twice for the container Can any body help Thanks in Advance Have a look at this link for some simple For Loop examples. For Loop Container Samples ( http://www.sqlis.com/default.aspx 310 ) ...Show All
Visual C++ What control can I use to let specify directory path???
Hi, I am now writing MFC program in VS .Net 2003. I like to have include a control by that user can specify any folder(directory) where a collection of their files are stored. Any idea what control will work for me Thanks, vcboy Thank you for your answer, but I tried with the following codes: char LocBuffer [MAX_PATH]; BROWSEINFO browseFolder; browseFolder.hwndOwner=theApp.m_pMainWnd->m_hWnd; browseFolder.pidlRoot=NULL; browseFolder.pszDisplayName=LocBuffer; browseFolder.lpszTitle="Browse for Help folder..."; browseFolder.ulFlags=0; browseFo ...Show All
Visual Studio Team System Attach Team Project file to a task
A new Team Project adds work items when you create it. Many of the steps regard working with documents such as the Vision Document. Is there a way to easily attach the Vision Document to a work item task regarding getting it done You can create links from a work item to files that are in source control. You can't create links to files that are in share point. To create a link to a source control file, bring up the work item. Click on the Links tab in the work item form. Click the Add button. In the dialog that comes up, choose Source Code File in the combo box. Then click the ... button to navigate to the ...Show All
SQL Server How can I configure sql mail in sql express?
is that possible You asked about SQL Mail, thats a specific feature of SQL Server and it does not ship in Express. This is also true for Database Mail. The current version of express has as a reporting solution the report controls that are part of VS. An express version of Reporting Services will be made available, but its not part of Sept CTP and I am not sure if it will include sending mail ...Show All
Microsoft ISV Community Center Forums Word 2002 VBA weird Find problem
Below is part of a program that takes in a list of specific words and if it finds them in a document is supposed to set the background to grey: For intLoop = 0 To UBound(arrSpecials) With ActiveDocument.Range.Find .ClearFormatting .Text = arrSpecials(intLoop) .Forward = True .Wrap = wdFindContinue &n ...Show All
Windows Forms What is "application framework"?
I tried creating a new Windows Forms app and had a hell of time just getting it to run. The trick was turning off something called "application framework". Can anyone explain what this is Or point me to some articles about it Please don't refer me to the documentation. I'm downloading it right now but it's going to take& ...Show All
Visual Studio classic chm Help doesn't link to MSDN Library
on new PC, reinstalled VS and Library again, but links to commonly inherited NET members like "string" display a Page Not Found error, yet the help 2 versions work in VS and in H2 Viewer... is this a registry problem does this relate to MS article 827054 or 318945 thanks >> I have to make sure I understand this enough to explain it to my bosses: The type of links created by a classic Help 1 chm file depends on the edition of Visual Studio.NET IDE on the Technical Writer’s PC at the time The classic .chm compiler would generate .chm specific types of links. It would not have any built in support for l ...Show All
Windows Forms On a DataGridView control, is it possible to ...
Completely hide/disable the leftmost fixed column Disable cell/row/column selection mode – A mouse click on any cell/row/column does no selection If so, how Thanks, I have solved (a bit of a kludge) my last remaining issue with hiding selectionMode on the DataGridView control ... Set the SelectionMode property to DataGridViewSelectionMode.CellSelect In the DataGridView_CellMouseDown event, I coded : If e.RowIndex >= 0 Then DataGridView.CurrentCell = DataGridView.Rows(e.RowIndex).Cells(e.ColumnInde ...Show All
Visual Studio Slow Debugging with Template Inline Functions
Our entire team is experiencing very poor performance debugging a large VC++ 2005 application (43 projects) when stepping into inline template functions that have many different instantiations at the same time the automatic variables window is open. Examples of this include stepping into CComPtr<> and STL template classes with a wide range of different instantiations (probably on the order of >1000). For example, it can take 30 seconds to step through the inline operator-> call in CComPtr<>. If you remember to make another window active rather than the automatic variables before stepping into these functions, the performan ...Show All
