Pelle's Q&A profile
Visual C++ Visual C++ 2005- class view may lost some classes when those class's header file contains some inline functions.
There is a project ported from VC2003, have many classes/structs, and many of them was packed into a namespace, like this: #ifndef STDTYPE_7C974E45_BE4E_4d85_A64C_7A9232D0CA2D #define STDTYPE_7C974E45_BE4E_4d85_A64C_7A9232D0CA2D #include <xmlserialize.h> #include <atlsafe.h> #include <Lzari.h> #include <error.h> namespace XmlPackages { // 构化 据包 构 struct TPackageStruct : public XmlSerializeable::IXmlSerializable2 { // 构化 据包 构 struct TSectionStruct : public XmlSerializeable::IXmlSerializable2 { // 构化 据包 元素 构 struct TItemStruct : public ...Show All
Visual Studio Team System BuildType for multiple solutions having BVT lists
I am using 180 day trial version of TFS and VSTS 2005. I need to include many solutions in one team project and get it built in a nightly build. Each of this solution has its own BVTs and I need these to get executed once build is completed. Everything works fine if I create separate Build type for each solution. I can even include multiple solutions in a single build type. But I am not able to specify multiple VSMDI files and the BVTs in multiple solutions in a single build type. I tried modifying the Xml file for BuildType by adding a MetaDataFile tag. But again I dont know to check-in the modified Build type file ...Show All
Windows Forms Changing control's property -> Repaint!
I have a problem. If I change control's property (for example, Location, Size, Region, etc), I shall have twinkling. I need the following code: void Freeze() { // PLEASE CODE HERE } void Unfreeze() { // PLEASE CODE HERE } ... ... Freeze(); Location = someLocation; Size = someSize; Region = someRegion; // etc. Unfreeze(); ----------------------------------- Example of twinkling is here - http://www.davincitechnology.ru/out/FlickerDemo.rar Did you try the SuspendLayout() and ResumeLayout(), either on the control itself, of th ...Show All
Visual C# Syntax Error in Update Statement
Dear All, I had encountered Syntax Error in Update Statement when I execute the following code. private void UpdateNewPwd( string EmpID, string NewPwd) { string strUpdate = "Update Users SET Password = '" + NewPwd + "'" + " where EmployeeID = '" + EmpID + "'" ; string connectionString1 = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + System.Windows.Forms. Application .StartupPath + "\\Local_Database\\DryEtch.mdb;User Id=admin;Password=;" ; OleDbDataAdapter dbAdapter = new OleDbDataAdapter (); OleDbCommand dbCom = new O ...Show All
Visual Studio Crystal Report Error
Hello, I'm getting Crystal Report Exception on opening a report after it's exported to a file. I've a button on my form that calls following method, which opens a report in Crystal Report Viewer component. The report fails to load only after I use Crystal Report Viewer "Export" button from the viewer. It export the file for me, but when if I click Button to run my report, I get an exception. ----- Method ----------- private void loadReport() { ReportDocument rpt = new ReportDocument(); rpt.Load(@"CrystalReport1.rpt"); crystalReportViewer1.ReportSource = rpt; // show crystal report contr ...Show All
Visual Studio 2008 (Pre-release) Blog based on WPF
http://www.valil.com/Valil.Blog/Valil.Blog.xbap viliescu wrote: http://www.valil.com/Valil.Blog/Valil.Blog.xbap Really interesting, great job :) btw, there is no RSS on it :) But I like your controls, on the rigth, with the animation on the green button And the animation on the books is fun too :) Just to be sure: looks like you have changed the template for a listbox, and all the listboxitem are now in a StackPanel, rigth Thanks ...Show All
Visual Studio VS2005 Team Suite Beta 2 fails to install on clean SBS 2003 system
I have been trying to install VS2005 Team Suite on my SBS 2003 system for some time without success. Despite having removed almost everything from the system it still says: "A failed installation has been detected. Press OK to uninstall the product. Then retry installing." I ran the VS2005_Beta_Cleanup_tool successfully to no avail. After repeated attempts to cleanse the SBS2003 system of all remnante of previous VS2005 installed, I decided to quick format the hard drive and reinstall SBS (including Share Point) and Exchange. Applied all of the windows updates and ran the VSTS 2005 install. First time installation faile ...Show All
Visual Basic Tabbed Browsing - Struck a problem.. Please help...
Hi everybody, I have started making my own tabbed browsing but i dont know how to use the webbrowser progresschanged sub without having an intial object 'WebBrowser1' - all of them are made programatically and names are stored an ArrayList. How can i add Private Sub WebBrowser1_ProgressChanged( ByVal sender As Object , ByVal e As System.Windows.Forms.WebBrowserProgressChangedEventArgs) Handles wblist.item(itemname).ProgressChanged I also need the System.Windows.Forms.WebBrowserProgressChangedEventArgs for each browser. When i tried typing it in manually some help files mentioned WithEvents - is this where i shou ...Show All
SQL Server Setting Passwords In Connections Using Script Task
I have a situation where I have to read an encrypted password from a table and set the password and userID for the connections. I wrote functions to retrieve the data from a table, decrypt the password and UserID, and set the connection string for the connection. What happens, though, is that the connection string I wrote to the connection gets changed when reading it back so that the password is no longer included. Also, in testing the connection, it fails, telling me login fails. Can anyone shed any light on this Does anyone have sample code to show the setting of a password for a connection in a script task All of the examples I find are ...Show All
Visual Studio Express Editions A small complaint from nobody
I have long been a Visual Basic coder. I read C++ quite well but really struggle to write it. Primarily because nearly every "example" I try to compile, will not. This makes it nearly impossible to understand how things are put together. Most of the time I can't figure out if I am formating my code the wrong way or just don't have one of the many compiler or references set correctly. So if anyone at Microsoft is paying attention, or cares. Would you please figure out how to make an entry level IDE for VC++, that has examples that compile right out of the box. I don't understand why this has to be so complicated. As near as I can ...Show All
Windows Forms binding navigator toolstrip
binding navigator toolstrip I've added a button to the toolstrip for the purpose of canceledit. Here's my problem. I want the button to simply have a C on the face as text. No matter how I vary the properties - backcolor, font, text, the C doesn't show up. Alternatively, vb6 came with a huge bundle of icons. If vs net 2005 has t ...Show All
.NET Development .NET 2.0 Error Reporting, Can it be disabled?
I'm not looking for a system setting, I'm not looking for workarounds... I want a way to disable it on an application basis, programmtically, in code, the way it should be. To require all developers to workaround, write perfect code (who does this anymore anyways ), or make huge try...catch blocks is ludicrous. The fact that we got by just fine with .NET 1.x and the way that all exceptions were handled, and without it calling for a WER. I know that some Microsoft personel read this, and I refuse to believe (or at least won't take it nicely) that there's no VIABLE fix. I can't request of my clients to _not_ click the send error repor ...Show All
Windows Forms Having a relative positioning problem with the TabControl
I have a TabControl with TabPages that are set to AutoScroll. I then placed two RadioButtons and a ComboBox down below the visible height of the of the TabPage (you have to scroll to see them). The load event sets the Visible property of the ComboBox to False and toggling between the RadioButtons toggles the ComboBox Visible property. When the ComboBox becomes visible it is not displayed at the location which I placed it, but shows up at a location relative to where the TabPage is currently scrolled to. Is this a bug and does anyone know of a workaround Here is sample code. Public Class Form1 Inherits System.Windows.Forms.Form #Regio ...Show All
SQL Server Probem in using the Copy Database wizard
I am trying to migrate from Sql server2000 to Sql server 2005 with the help of Copy Database Wizard of 2005. It is failing in the Last step. That is when executing the Sql Jobs.Could any one help me out Thanks Ram Vajrala Let us know if you are using Attach/ Detach method or SMO transfer Could you please post the exact error message . Please make sure that SQL Agent was started and running before you copy a database using Copy database Wizard Thanks Sethu -- This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are s ...Show All
Visual Studio DSL Tools / VS.NET RTM
Just wanted to check out the DSL Tools (last build was Sep CTP) and it works with Beta 2, will there be a compatible build for the RTM (VS.Net) Ajay, The MDF team is working hard to get this out ASAP. As Stuart pointed out in his blog post about this upcoming CTP we expect it to be available in about 2 week ( http://blogs.msdn.com/stuart_kent/archive/2005/11/02/488101.aspx ). Regards, ...Show All
