Larry K. Moore's Q&A profile
Visual C# When does the return return the value
Hi All! I thought I had this figured out but maybe not.......... Does the return exit the function at the point where it is at ,, or does the return hold the value tell you finish the functions.... Please set me straight cause =================================== if I use this it returns a false all the time//// if ((KeyValue->ToLower()) == "accept") return true; return false; ; =============================================== if I do this it returns the correct value........ if ((KeyValue->ToLower()) == "accept" ){ return true ; } else { return false: } } ...Show All
Visual Studio Best Practice: Complex Visualizer Deployment, Debugging.
We are working on a pretty complex SDK. It comes with a couple of visualizers, but they are COMPLEX. That means they will depend on a significant number of additional third party libraries installed. Like Infragistics, like possibly some others. We talk about visualizing, for example, complex object graphs. What are the suggested best practices for that I do not like to put the third party libraries into the visualizer folder, simply for possible versioning problems. I also do not like to install them in the GAC out of pure necessity - i mean, a visualizer should not really install anything there. I guess things would be easy if I only ...Show All
Visual C++ reference counting problem
Hello everyone. I have been developing two ActiveX components. One is written in VC++ 6 and the other is written in VB6SP6. The VB component is the container of the VC++ component. The idea is to use the VB component as a browser plugin. My problem is when I shout the internet explorer off. I get an assertion on line 52 in cmdtarg.cpp. The line is ASSERT(m_dwRef<=1); and m_dwRef is equal to 2. I have been reading some articles that sais that internet explorer holds a reference of the activex document for a while, or until is closed. So, i may be doing something wrong. If some one knows about this problem, please, let me ...Show All
.NET Development Bizarre GC behavior (while testing a WeakDictionary)
I am encountering a bizarre GC behavior while testing a dictionary that I have designed. The designed dictionary is a WeakDictionary. That is basically a Dictionary where all values are kept through a WeakReference. The WeakDictionary does not prevent the values from being collected if they are not rooted elsewhere. Here below is the NUnit code that I am using to test the WeakDictionary. As you can see there are lines with REQUIRED. If those lines are omitted then the last assertion fails at index itemCount - 1 . Exactly like if the internal loop reference where holding a reference to the object outside there loop scope. If I am correct ( ...Show All
Visual Studio CR VS2005 Web Deployment
I have Visual Studio 2005 (Non Beta). I have a web application that uses the Crystal Report and works beutiful on the development manchine, Now I have copied my application to my production server and I get the following error message e: Could not load file or assembly 'CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified. Source Error: Line 1: <%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="DisplayReports.a ...Show All
Visual Studio Express Editions References / on-line chat
Hi All- Which reference would I use to set up the ability for on-line chat Thanks in advance! Hey check out this chat site, http://chat.roselinsofia.com ...Show All
Visual Studio Linked Solution. Does this work in 2005
One of the biggest headaches for us, is creating Applications consisting of many solutions. The normal recommendation from Microsoft is to put everything in one solution but this is not always ideal. The problem we have is the Debug/Release functionality. If you build a solution the assemblies are placed in target directories. These are based on the release type. When you reference an assembly which version should be referenced What we need is some kind of support for VS switching referenced DLL's when the solution switches release type. Has VS05 made any changes in this area What is required is an "Add Solution" which pu ...Show All
Windows Forms Comparing strings
String comparison Is there any way so that all the below conditions give me true results. String val = “Hello” Now comparing val it with the following code. 1“Hello “ //Note white space at the end of Hello. 2“ Hello” //Note white space at the beginning of Hello. 3 ...Show All
Visual Studio VSS: % in filename
I have added to a VSS project, a file which contains a % char in the filename. For example: "Is_Old_New_65%Line.vi". When I try to Check-out the same file, VSS complains with the error: "Is_Old_New_65%Line.vi is not a valid SourceSafe syntax". Looks like VSS is treating the % as a control character, and rejects the filename. Since VSS was able to ADD the file with the % character, it should also be able to Check-out/Check-in the same file. Has anyone else run into the same problem Any work-arounds, besides deleting the old version, and Re-ADDing the new version, which defeats the concept of versi ...Show All
Windows Forms cm.Position won't leave Zero
Ok, I'm sure this sounds stupid. Any help as to where I should look would be great. I have a database navigation device that should easily choose the new position of my datatable. Here is the snippet: Dim cmMembers As CurrencyManager = CType(Me.BindingContext(FamilyDS.Tables("Members")), CurrencyManager) cmMembers.Position = cmMembers.Count - 1 ...Show All
Visual C++ _CRT_SECURE_COPP_OVERLOAD_STANDARD_NAMES not working
Hello, i tried using _CRT_SECURE_COPP_OVERLOAD_STANDARD_NAMES after reading from the following post: http://blogs.msdn.com/michael_howard/archive/2005/02/03/366625.aspx i am still getting the depricated methods warning. i am including the code here. /******** stdafx.h - start *******/ // stdafx.h : include file for standard system include files, // or project specific include files that are used frequently, but // are changed infrequently // #pragma once #define _CRT_SECURE_COPP_OVERLOAD_STANDARD_NAMES 1 #define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers #include < ...Show All
Windows Forms Problem with value DataGridViewComboBoxCell
In VB 2005 Express I have a problem, which completely do not understand. I use a DataGridViewComboBox in a DataGridView. When I change data and save it, I have no problem. But when I close the form I a repeting error, being: System.ArgumentException: DataGridViewComboBoxCell value is not valid. Can anybody help Thanks in advance, Simon Use the following link: http://lab.msdn.microsoft.com/productfeedback/Default.aspx -mark DataGridView Program Manager Microsoft This post is provided "as-is" ...Show All
SQL Server SMSEE no longer launches, after SBO is installed...
Well, that's what happened to me anyway. I was using the SQL Server Management Studio (November CTP) succesfully since two months ago. Yesterday I found the SQL Server Books Online for 2005, and, thinking nothing could go wrong, I installed them. Since that very moment, SMSEE does not work anymore. Task Manager tells me "smssee.exe" starts, but then disappears immediately, in less than a second. Any idea why could this happen And, most importantly, how can I get SMSEE to work again, short of removing/reinstalling Thanks for your help! - Izhido An update... It's getting worse. It seems not even remove/reinsta ...Show All
Windows Forms Is creating form objects and disposing them better or using Activator.CreateInstance()?
I'm building an MDI application, and when user clicks various menus I want to load the child forms only if it is not loaded previously. I came up with two versions of methods to create the child form when menu is clicked. In the first version the calling method creates a Form instance, and in second version it sends Form's type. Both version work, but can experts explain which is better private void ShowChild( Form formToShow) { foreach ( Form form in MdiChildren) { if (form.GetType() == formToShow.GetType()) { form.Activate(); form.WindowState = FormWindowState .Normal; fo ...Show All
Windows Forms Format phone number
Hello, I have a text field where the user types in a telephone number. When the user is done typing the number and the text field loses its focus I need to take whatever the user typed and format it to a standard format. i.e. ###-###-#### If a user types 1234567890 I need it to change to 123-456-7890. Any ideas on how to do this or examples Thanks! You want to create a control based on the textbox ( or add an event handler for lose focus in your main code ) and then reformat the string there. ...Show All
