CyberLiu's Q&A profile
Visual C# Threads and events
If i have two classes like this: public partial class Form1 : Form { public Form1() { InitializeComponent(); MyTimer timer = new MyTimer(); &nb ...Show All
Visual C++ Has anyone at Microsoft actually used VC++ Express B2?
I haven't used Microsoft's Visual C++ since version 6. I've always thought Microsoft makes the best software development IDEs by far, but the compiler was extremely lacking. I figured I'd try Win32 GUI development again (I do mostly Unix or cross-platform non-GUI), so, 1) I downloaded Visual C++ Express Beta 2 and installed it. 2) It didn't compile anything successfully, including "Hello, World" (See this thread for those looking for a ...Show All
Visual Basic VB 2005: Single Complete Reference Documnt
I am looking for a single view VisualBasic reference document which covers the language, syntax, class structures and details all in a single file (if it exists), can't find it yet on MSDN, all I see is an hierarchical view of the documentation, one sub-topic at a time. If anybody can let me know where it is located on MSDN, would apppreciate that. If I wanted a single resource on the language then Pr ...Show All
Visual C++ ATL Server with precompiled headers (VS 2005 beta 2)
Using the wizard to create the basic default ATL server application, I am able to build the solution and it works fine. Now if I set a breakpoint in the isapi cpp file at the line: return theExtension.HttpExtensionProc(lpECB); and if I "go to definition" on theExtension.HttpExtensionProc (it opens atlisapi.h) and set a few more breakpoints in the HttpExtensionProc(LPEXTENSION_CONTROL_BLOCK lpECB) member function... On debuggin ...Show All
Visual C++ Deleting Managed Threads
I have a Windows Forms Application that often does not exit properly (i.e. it is left sitting in the processes in Task Manager), and I'm not sure why. 1 of the things it could be is because I'm using threads. I have the declaration of a thread in my class: Thread^ t; and I open however many threads I need at runtime using a loop: for (int i = 0; i < this->MyThreadCount; i++) { this->t=gcnew Thread(gcnew ThreadStart(this, &MyClas ...Show All
Visual Studio Unit Tests for Custom Tasks
I'm developing some custom tasks and would like to write some Unit Test cases to make it easier to test them during development. The only problem I've run into thus far is logging. Because I'm not setting the BuildEngine property on my task before calling Execute(), all of the Log statements throw exceptions. I haven't been able to locate any information on how to go about setting this property. Any help would be appreci ...Show All
Visual Studio Team System "Edited by God" history message.
We observed "Edited by God" message in history of work item. Is it joke of TFS developers http://photofile.ru/photo/toly/1294760/large/26995834.jpg Sorry to say, but this forum engine doesn`t have an option to upload the file. Although I don't have the link handy, I read a post sometime earlier this week (or late last week) that showed how to do exactly what you're seeing. Basically, it showed h ...Show All
Windows Forms Custom control not displayed when added through CollectionEditor
I have a custom control (MultiViewPage) which is derived from a ContainerControl. I also have another custom control (MultiViewControl) which has a property called MultiViewPages which holds a collection of MultiViewPages. Now, I want to change the built-in CollectionEditor in .NET framework to support my custom type MultiViewPage. I have set the EditorAttribute to the MultiViewPages property. When I click on the MultiViewPages property in th ...Show All
Visual Basic Threading not working as expected (using a COM class in a BackgroundWorker)
Hi, I've written a COM server class (KCAMSERVERLib.Camera) to remotelly control digital cameras from the computer through a USB cable. I'm now in the process of writing a simple GUI for it, and I've chosen VB2005 for that purpose. Some actions, like "Shoot()"ing a picture, take some time so I added a BackgroundWorker object to my VB project to run them in a separate thread. The problem is that the GUI still freezes during shooting, l ...Show All
Visual Studio Express Editions ListView Woes
I am creating an Archive directory project and have run into a problem with my listview. I am populating a listView with a directory listing of directories withing a selected directory. I am doing this so that users may select those directories they want archived and leave the rest alone. Here is the code I am using to generate my listView textBox2.Text = "" ; listView2.Clear(); // Create a new ListView control. //listView1.Bound ...Show All
Visual Studio Team System TF Workspace command-line
Hi I am trying to use a HTML applciation and calling the "VS2005 command-line batch file" and the "tf workspace" command using wscript.run. I run into issues when I use "tf workspace /new aaatest ....." without the "/noprompt" option. Is it a bug in the command line that I have to use this option Is there a workaround where I can use this command with the "Add workspace" window ...Show All
Visual Studio Team System Compare Utility should Ignore White Spaces
The Compare Utility should have options for ignoring leading and trailing spaces/tabs. Right now if I had someone who checked in something with 4 spaces set for their formatting of their code, and I have mine set to 3 spaces, then the compare will become usless because every single line will be considered different. if it doesn't ignore blank lines, that should also be an option as really, I just want to see what CODE has changed. B ...Show All
Windows Forms Refreshing TreeView and preserving Expanded State of nodes
I've been battling this for some time now. I have a TreeView that goes several levels deep. Data for these nodes is loaded via xml files located on a central server, which means the data can be updated from multiple clients. These updates could contain new and/or changed nodes at any level. In addition, data may have been deleted requiring a node to be removed from the tree. I've found that the quickest and easiest way to handle this is to just ...Show All
Visual C++ error lnk2028: unresolved token
I'm using VSNET 2005 June CTP. When I create a MFC ActiveX Control and specify common language runtime support, old syntax, I get several error lnk2028: unresolved token messages. I have tried the "Remove the Entry Point of the Managed DLL" solution from http://support.microsoft.com/ id=814472 I really though this has already been fixed before. I am suprised it is still in recent builds. I am going to inv ...Show All
Visual Studio Team System HTTP code 503: Service unavailable
We have TF B3 Refresh set up on a server and locally it seems to be working fine. However we have a team in Beijing that is having occasional errors like this: c:\Foo\Main\Src\Bitmaps\bar.bmp: Please contact your administrator. There was an error contacting the server. Technical information (for administrator): HTTP code 503: Service Unavailable Any ideas on how to troubleshoot this error ...Show All
