Guy F's Q&A profile
Visual Studio Team System What version of TFS is installed?
Rather sheepishly admitting I've kind of lost track with which version of TFS I have installed it is definately either beta 3 or beta 3 refresh, could you tell me a way I could check Click Help/About Visual Studio, select "Team Explorer" and see what version is reported (it should be something like 8.0.50727.147). I don't know off hand which build number corresponds to which release, but if you post the version you have, I'll look it up. ...Show All
Windows Forms System.BadImageFormatException executing Custom Action in setup project
We recently migrated from VS2003 to VS2005. We have an installer project that calls a custom action from our setup project. It used to work great in VS2003 but VS2005 is giving the following error when the MSI attempts to execute the custom action portion of the setup (occurs at the very end): Exception occurred while initializing the installation: System.BadImageFormatException: The format of the file "XXCustomAction.dll" is invalid. In the MSI, our custom action is listed under "Install" as "Primary output from XXCustomAction (Active)". The output shows "XXCustomAction.dll" as the only output. ...Show All
SQL Server Label Reports
Are there any facilities in reporting services (2005 or 2000) for doing mailing label reports. We used to use these a lot in MS Access but now we are using Reporting Services for reports and it doesn't seem like there are facilities for labels. I am guessing it could be arranged with some clever lists or tables but not so nice as just picking the type of labels and it does all the formatting for you. Any info would be much appreciated. Martin ...Show All
Visual Studio 2008 (Pre-release) Are DataContract types not serializable?
Hi there... I have a web application that is fed by a web services business tier. I've recently upgraded to WCF services and, using svcutil, I've generated the proxy classes for my services and the data classes they expose. I have a web page that allows a user to edit one of the data classes, and then submit the edited version back to the web service. However, since I've upgraded to WCF, I'm getting errors that say my data class isn't serializable. I've tracked this down to where my page is persisting the data object to viewstate, and it seems my object is no longer valid for binary serialization. Is this a breaking change between W ...Show All
Windows Forms How can I add collection of control like VB6?
Hi all, I want to know how can i have the collection of controls in .NET like VB6 does I mean I want to have 4 textboxes with the same name, using index TextBox1(1->4), how can I do that Thanks alot Check the controlarray: http://windowsforms.net/ControlGallery/ControlDetail.aspx Control=251&tabindex=9 ...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 debugging (using the VS ide debugger), I reach the first breakpoint but as soon as I try to step into call, the debugger complains that the atlisapi.h source is different to when the module was built! P ...Show All
Visual Studio How to Create a class file in custom folder?
hi all, in my C# project ,when i drag a class shape from toolbox to classdiagram designer, a class file will create at project root folder even though the classdiagram file in my custom folder, is it a bug This isn't supported in this version of the Class Designer. You'll have to drag the new class file into the folder you want it to be in after the CD creates it. Sorry :( ...Show All
Visual Studio Express Editions read write serial port
I have found several classes online that say they make using the serial ports easy. I am never able to get any of them to compile. Is there a bare bones example of how to read/write to a serial port all bundled in a project for Visual C++ Express Edition It depends what classes you found. You need a class based purely on the Win32 API. Even than you need to install the PSDK as documented. If you used one using MFC and ATL you must fail because MFC and ATL are not part of VC Express. http://msdn.microsoft.com/visualc/learning/vcexpvids/default.aspx ...Show All
Windows Forms Validation Controls in a Web User control
Greetings I am in the process of upgrading my web site to ASP .NET 2.0. I have a user control (.ascx) that has a validation control in it. When I click a submit button on the host page (.aspx), the validation control shows an error but continue on to post back the data. If this a bug or am I missing something Please advise. Hi! Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39 I tried to re ...Show All
Visual Studio Help crashes Visual Studio 2003
I am a computer science major at a university that has Visual Studio 2003 available through the MSDN academic alliance. I installed VS without the MSDN library for an assignment and everything was great, then when I later tried to install the library it won't work. If I try to directly open the library, a message comes up saying "updating help..." then Document Explorer crashes. If I open VS the same message comes up and the whole program crashes. I can get to VS by clicking on a file that is normally opened by it, but as soon as I do anything that changes settings or causes the help update message to come up, it crashes. I downloa ...Show All
Visual Studio 2008 (Pre-release) How to set underline text by XAML?
Hi all, If anybody can show me how to set underline for text in XAML code, i can set it by code-behind but i want to make common style for all hyperlink text with underline. Thank for support, Cheer, Dat Dang http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=288536&SiteID=1 ...Show All
Visual Studio Team System Project Creation Failed: Retrieving MSF methodology failed
When I create a new project, I get the following error: Time: 04/26/2005 01:29:28.162 Module: Engine Event Description: Project creation failed Exception Type: Microsoft.VisualStudio.ELead.Common.Exceptions.ELeadException Exception Message: Retrieving MSF methodology failed Stack Trace: at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.DownloadAndExtractTemplate(Int32 methodologyIndex) at Microsoft.VisualStudio.TeamSystem.ELead.ProjectCreationNew.EngineStarter.TryCreateProject(ILogHandler logHandler, String& completionMessage) -- Inner Exception -- Excepti ...Show All
Visual C# Logger in multi-threaded application
Hi, I have a multithreaded application, in which most my classes inherit from a base class. This base class contains a Log()-method, that is supposed to append text to a text box created in the main thread. I know that this is a problem since I can/should only access the textbox in the same thread as where it was created. What I would like, is a thread-safe way to implement the Log()-method in the base class, so that disregarding which child-class and which possible thread I am in, I can call base .Log("Warning, something might be wrong", Type .Warning); and the message gets printed to a textbox instantiated at the ...Show All
Visual Basic 0x prefix in VB
In some example microsoft code for vb, there was posted a declaration: Dim Key As Byte () = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, 0x09, 0x10, 0x11, 0x12, 0x13, 0x14, 0x15, 0x16} which creates an error in 05. Is there a switch, define or setting that tells vb to use 0x with/instead of H edit, oh, see what you mean, no it should be &H the code must be a mistake. ...Show All
Visual Basic How to call a DLL written by C# from VB codes?
I wrote a class library (compiled as DLL) using C#, with source codes as the follows: ============================================================== using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Threading; using System.Diagnostics; using System.IO; using System.Text; namespace UTS_Convertor { /// <summary> /// Summary description for Class1. /// </summary> public class Class1 { public Class1() { // // TODO: Add constructor logic here //   ...Show All
