redriver's Q&A profile
Visual Studio EnvDTE80.TextDocumentKeyPressEvents.BeforeKeyPress randomly not working?
Hi, I have hooked up the EnvDTE80.TextDocumentKeyPressEvents.BeforeKeyPress in an addin I wrote to check out from Perforce when a read-only file is modified. It works fine most of the time. But after a while, I just stop getting the event. It doesn't seem related to switching solutions or anything like that. The only way to get the functionality back is to restart the IDE. I register the event handler in Connect.OnConnection, and the addin is constantly loaded. Anyone have any ideas I can circumvent it by re-registering the event, but that's a hack. Could this be a problem to do with the Connect class being destroyed after some time Cheers, Rory Yes, that TextEvents. FWIW, I have updated ...Show All
Visual Studio Team System Couple of questions
Hi, I have been playing around with the Data Generator a bit and have a couple of questions: 1. Is it possible to specify in which order data for different table are generated 2. Is it possible to specify in which order data for different columns in a table are generated 3. When developing a custom generator, is there some way in which I can get access to the already generated values for other columns for the record being generated I would like to develop a custom generator which uses the values of other columns to generate its value. Feedback would be appreciated Jerrie Pelser It is possible to share outputs across generators, but it is limited. Every generator has access to a shared instance of a dictio ...Show All
Visual Studio Tools for Office msi - check office and PIAs version
hello, regarding msi, 1. how do i check what version of office is installed on the target machine That is , in the launch conditions part - do i use registry search or windows installer search and , i don't know what values to expect and look for. 2. if 2003 is installed i intend to check for the 2003 PIAs and if they are not present - i install them. i look for word 2003 PIA , for example , by adding a windows installer search with componentId={1C8772BD-6E6F-4C9D-8FF8-B5EA072F86EF}. now , if i want to check for the word 2007 PIA presence - what do i look for does the 2003 and 2007 PIA have the same component id thanks hilla Check out http://msdn2.microsoft.com/en-us/librar ...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... TL_Norman, You can pause the indexer by simply doing the following: In 2.6.x you ...Show All
Visual Studio 2008 (Pre-release) How to get reference to UIElement that has been loaded dynamically using XamlReader
I have converter class that loads in Dynamic UI. I have tried using this.FindName( ) to get a reference to one of my new UIElements but the result is only null. It only seems to work on UIElements that are static that haven't been loaded at runtime. Any ideas Rod If the object returned from XamlReader.Load is also a UIElement (or any other kind of DependencyObject), you can do this: UIElement fooElement = NameScope.GetNameScope( returnedObject ).FindName("Foo") as UIElement; More generally, XamlReader attempts to register names with a name scope. If the root object in the Xaml implements INameScope, that will be used. If not, but the root object is a DependencyObject, XamlReader will ...Show All
Smart Device Development How to implement owner draw menu in smart device?
I create a smart device project, and add some code like SHMENUBARINFO mbi; memset(&mbi, 0, sizeof(SHMENUBARINFO)); mbi.cbSize = sizeof(SHMENUBARINFO); mbi.hwndParent = hWnd; mbi.dwFlags |= SHCMBF_HMENU | SHCMBF_COLORBK; mbi.nToolBarId = IDR_MAIN_MENU; mbi.hInstRes = g_hInst; mbi.clrBk = RGB(255, 0, 0); if (!SHCreateMenuBar(&mbi)) { g_hWndMenuBar = NULL; } else { HMENU hMenu = (HMENU)::SendMessage(mbi.hwndMB, SHCMBM_GETMENU, 0, 0); MENUITEMINFO mii; memset((char *)&mii, 0, sizeof(mii)); mii.cbSize = sizeof(mii); LRESULT lResult = 0; UINT i = 0; while(true) { if(0 == ::GetMenuItemInfo(hMenu, i, TRUE, &mii)) { break; } ...Show All
Game Technologies: DirectX, XNA, XACT, etc. fmod
i have allso read that fmod player is running on xbox360 and fmod has a c# interface do you have any plans to make support for this Give the popularity of XNA even though its in beta - this might be something that the Fmod people want to offer. Seems like you should email them and ask their plans. Don't be surprised if you get laughed at - I asked vendors at GDC this year if they had any managed plans. The half of them who had heard of managed code pretty much just grinned at me - they just didn't see any $$$ in that market. ...Show All
Visual Studio ReportViewer Cause error after deploying the webserver
Dear all, When I deploy my web project into my Web server,everything is work,but except the report does not work properly. The config of my webserver is win2003 with IIS 6.0.And I make use of the report in the local processing mode and set "sessions state mode=InProc","cookieless mode=UseCookie"on the page of the state management in IIS. The error message is showed below Server Error in '/' Application. After I add "ReportViewer1.localReport.Refresh()" in the PageLoad() method in the page that contain Report Viewer .Then it works properly ,but I don't know why it work.The brower that I used is IE and it is support cookies. Now I have another problem that I need to deploy my source code,other ...Show All
.NET Development using statement on SqlDataReader
Hi all, if I am to use the 'using' statement on a SqlDataReader where the resultset then gets passed outside of the method in which it was executed, will the 'using' statement still clean up the resources (close, dispose etc) although the SqlDataReader ResultSet gets passed out of the method What I currently have is below, but am not sure whether making use of the 'using' statement on the SqlDataReader will actually clean up its used resources. public static SqlCeDataReader ExecuteQueryGetDatReader(SqlCeConnection objSqlCeConnection, string strQuery) { SqlCeDataReader objSqlCeDataReader; try { using (SqlCeCommand objSqlCeCommand = new SqlCeCommand(strQuery, objSqlCeConnection)) { objSqlCeCommand.CommandType = Comma ...Show All
SQL Server NTEXT special character "SQUARE" appearing where a return should be. How do I fix this?
I had to import some FileMaker Data into SQL Server 2005 and in the resume field a "SQUARE" special character is appearing everyplace that a return should be. It has really messed up the formatting. I know how to use the updatetext in a cursor to replace the special character but I don't know what to replace the "SQUARE" special character with so the text is displaying a new line rather then this "SQUARE" character. Any help would be appreicated. That is the character. I see it in Business Intelligence Integration project. I was given the data from filemaker export in csv. What do I use in the repace function to actually make the line do a carriage return replace(resumetext, ' ', ...Show All
Visual C# myThread.Abort() Final Word?
I've read Mr Taylor's (thread guru IMHO) thread tut..... If the exception is handled properly...should/can you use myThread.Abort() I know that this can be shaky...but is "shaky" enough to never use it TIA Hi, I don't know by which concept you are attributing Thread.Abort() usage as 'shaky'. It serves its purpose to the fullest and aborts the current thread. Ofcourse, aborting the current thread will also result in another exception; the ThreadAbortException. It means whenever you use Thread.Abort() method, always enclose it in the try-catch block. I could not understand that what strange experience you had with it that you are recommending not to use it. And better if you can speak out s ...Show All
Visual Studio Team System Add users from a trusted NT domain
Hi, We have installed TFS on a single server that is a member of an active directory domain (Win2k3). This AD domain has a two-way trust relashionship with a NT domain. The problem is that we can't add users from the NT domain to the "Team Foundation Administrators" group (or to any other TFS group). Do we have to mirror the TFSService account on the NT domain Other solutions Thanks. Unfortunately, TFS doesn't support NT domains, which I believe is the problem here. If the Win2k3 domain happens to have a 2-way trust relationship with another Win2k3 domain, you should be able to verify that is the issue. http://msdn2.microsoft.com/en-us/library/ms253081.aspx ...Show All
.NET Development Automatically update reference...?
Hello, I have a solution composed of several projects which depend each other in a way. ControlsPrj depends on ClassLibPrj, StockListPrj depends on ControlsPrj and ClassLibPrj, and some more.. When I change something in ClassLibPrj and compile it, I manually remove the ClassLibPrj reference from ControlsPrj and add it again. Because VS 2005 does not do this for me... Is there a way to do this automatically ...Show All
Smart Device Development CreateToolhelp32Snapshot Windows Mobile 5
have struggled with getting the Sample app 'pviewce' to work under Windows Mobile 5, on an Imate Jamin (QTEK S200). For some reason CreateToolhelp32Snapshot(); Returns an INVALID_HANDLE_VALUE Now it gets even more weird, GetLastError() r== 8 Which means : "Not enough storage is available to process this command. " I still have 19MB of free RAM, and other applications that use CreateToolhelp32Snapshot (exe files) seem to work. Security is switched off. I am using "Windows Mobile 2005 SDK" for the PocketPC Any clues Thanks ... You're running out of memory as snapshoot includes all heaps by default. Please add "secret" TH32CS_SNAPNOHEAPS flag to fix that. No ...Show All
Visual Studio Express Editions String resources
I have about 100 string stored in string resources. I need to go through them all and select various ones based on other criteria. In vb5 I could sequence the resource identifier and use a for next loop. Example: For i = 1000 To 1100 If S omeValue > SomeOtherValue Then msg = msg & LoadResString(i) End If Next I'd like to know how to do something similar in VB Express. You can add a System.Collections.Specilized.StringCollection as a setting. Using the default name for the first setting 'Setting' and initially loading the setting with a b c d MsgBox( My .Settings.Setting(2)) returns string 'c' Search this forum for 'settings' for additional info. ...Show All
