Kanika's Q&A profile
Visual C++ Retrieving CObArray from method
Hi, I need to manage a CObArray object in a class, but this object must be retrieved from another class. How can I implement the method of this class to get retrieved the object in the first class raulhsj wrote: Hi, I need to manage a CObArray object in a class, but this object must be retrieved from another class. How can I implement the method of this class to get retrieved the object in the first class Perhaps, something like :- class A { CObArray m_arr; public: CObArray& GetObArray() { return m_arr; } }; class B { public: void F() { A a; a.GetObArray().Ge ...Show All
Visual Studio Package Load Failure
Althogh the installation of VS 2005 completted sucessfully I constantly get the following error message: Package 'Microsoft.VisualStudio.QualityTools.TestCaseManagement, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' has failed to load properly (GUID={A9405AE6-9AC6-4F0E-A03F-7AFE45F6FCB7}). etc. What could be the cause for this message From Amit Chopra BLOG: http://blogs.msdn.com/vsdteam/archive/category/6349.aspx FAQ:I just install Beta 2 (after un-installing the previous version) ... And I get one of these these errors: "The system cannot find the path specified." or "Canno ...Show All
.NET Development How do you generate <T> or (of T) using codeDom
I would like to generate this using codeDom anybody any ideas public interface IEmployee<T> { List<T> GetEmployeeList(); T GetEmployee(int ID); } Thanks in advance Ah generics are a great thing but unfortunately they can complicate reflection and the CodeDom. Fortunately once you figure out how MS exposed generics it is pretty simple to understand. MS added TypeParameters to objects that can have generic parameters. They also added the CodeTypeParameter class to wrap generic parameters. Armed with this the code simply boils down to creating the code model as normal but including the generics where neede ...Show All
Visual Studio Express Editions Newbie: tyring to use numbers in a textbox
Ok, I am kind of stuck on how to accomplish the following: I am using 8 texboxes that will contain only numbers (ranging from -50 to 50, no decimals) Textbox 1 will contain the sum of all of the other texboxes. I can fill the other 7 textboxes with the numbers, but how do I add them together, and make it so that text box 1 will constantly add the sum of the other 7 text boxes (incase the values change later) Thanks in advanced. Hi there, Each of your text boxes has a TextChanged event (I believe that if you double click a text box on your form it will open up the code editor where you can type in code to handle the TextChan ...Show All
.NET Development hwo to set to avoid the SecurityException ...?
************** Exception Text ************** System.Security.SecurityException: Request for the permission of type System.Windows.Forms.SafeNativeMethods.IFont.GetHFont() at System.Windows.Forms.Control.ActiveXImpl.get_AmbientFont() at System.Windows.Forms.Control.get_Font() at System.Windows.Forms.Control.GetParentFont() at System.Windows.Forms.Control.get_Font() at System.Windows.Forms.ButtonInternal.ButtonBaseAdapter.CommonLayout() ******************************** I'v used ".NET Framework 2.0 Configuration" tool, new a Permission set and set permisson "User Interface" "Grant ...Show All
Visual C# get user directory
how do i get user directory(document and settings) programatically http://msdn.microsoft.com/library/default.asp url=/library/en-us/cpref/html/frlrfsystemenvironmentspecialfolderclasstopic.asp lists all special folder paths ...Show All
Visual Studio Express Editions Configuration Error in web.config line 42 after installation
Hello, I just intalled VWD 2005 Express beta-2 on Windows 2000 SP4 and I did create a new web site. Just after the creation of the web site (I haven't added anything in the project yet, I went in Website -> ASP.NET Configuration and I got the following error : Server Error in '/asp.netwebadminfiles' Application. The first thing that I would do is to remove the beta 2 product and install the full release package, since the release of the RTM version there have been some major changes. Visual studio express editions FAQ http://msdn.microsoft.com/vstudio/express/support/faq/ Visual Studio Express edition Registration FAQ http://ms ...Show All
Smart Device Development Open/Run HTML+JavaScript in Pocket PC 2003 Form
I need to open and run in my application's form (Pocket PC 2003 + .NET v1.1 + C#) a file with HTML+JavaScript content (that implement a mini-texteditor). Something like an Internet browser but it is in a form with other Windows.Forms controls (if it is posible). Scenario: user can input a text in a html textarea and formatting it (with html tags) using a JavaScript tool. Finally the user can save that in database). Can I get some help with this Thanks! Web browser control (in Cf2.0), or HTML control (in OpenNETCF SDF 1.4) are the only things that get close to what you want, but from what I know the scr ...Show All
SQL Server Problem converting VS2003 code to VS2005
Hi: I am trying to convert my VS2003 project to VS2005 beta 2. The actual conversion has gone fine, but some code that was working fine under to old IDE is now giving me an exception when run under the VS2005 generated code. The code is: using ( SqlConnection conn = new SqlConnection ("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=GestionNET00001;Data Source=localhost" ) { ... } And the error I'm getting is: {"The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception."} Has anyone any idea why this is happening TIA, MartinH. It's not a bug -- the confusing thing was w ...Show All
Visual Studio Team System Project creation problem
OK I'm probably being dense here. Installation is a single server with reporting services, sharepoint, SQL all running. I can get to the relevant pages. The client can see the server and ping it over the network. Both are in a W2K3 domain and the DC is running SP1 as is the VSTF Server. tfssetup and tfsservice are both local admins and domain admins so should have all the necessary permissions. I'm logged in using the tfssetup account (tried also with tfsservice) and get the same error. Here is the output from the error file: 04/27/2005 02:31:02.560 | Module: ELeadServiceMediator | URL for eLead web service retrieved as " http://vstsb2:8080/ ...Show All
Visual C# Visual C# Express Edition: Toolbox Components Disappeared / Reset Doesn't Work
I have been using Visual C# Express Edition productively for a couple of months now - very impressed with the stability and only having to deal with a few minor quirks. Today unfortunately I am encountering issues with the Toolbox. Upon starting up the IDE today and loading my ongoing project, I found that several Toolbox categories had gone missing. For example the "Common Controls" category. So, I decided to try the Reset Toolbox option. When I did this (and it's happened twice now) I received the following error message (a dialog box): Microsoft Visual C# 2005 Express Edition Microsoft Visual C# has encountered a ...Show All
Windows Forms System.Net.Sockets.SocketException when using the HttpWebRequest.GetResponse
Hello i keep gettign this error when i use this code Error: An unhandled exception of type 'System.Net.Sockets.SocketException' occurred in system.dll Additional information: An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full Code: Dim HTTP_request As HttpWebRequest Dim HTTP_response As HttpWebResponse HTTP_request = HttpWebRequest. ...Show All
Windows Forms Sticky question
What's the best technique used to see all the events and the order in which they execute during the life of a winform carrying labels, textboxes, checkboxes, and dropdownlists, etc Thanks. The best source for this information is MSDN help. For example, here is the sequence of events that are fired in the event lifecycle of a form: -&nbs ...Show All
SQL Server dynamic connection string
hi all, i've been reading through the forum on this subject but couldn't find the solution. i'm using RS2005. it's mentioned that dynamic connection string is not applicable for shared data source. is there a workaround for this thanks! Dynamic connection strings cannot be used with shared data sources. Other suggestions can be found in this related thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=16395&SiteID=1 -- Robert ...Show All
SQL Server cannot login to SQLExpress 2005 help please!!
I just installed SQL express couple of days ago. Then I tried using SQL Management Express Studio CTP. I select SQL Authetication, key in the correct password but it says "A connection was succesfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error:0 - No process is on the other end of the pipe). (Microsoft Sql Error: 233) When i tried windows authetication, it say cannot initialise SSPI package. I went to download the windows fix after reading this article http://www.pcreview.co.uk/forums/ ...Show All
