DavidAWinter's Q&A profile
Visual Studio Express Editions VB/asp projects
Heya all- just wanted to find out bout express edtion- ive got a vb/asp application in vb.net 2003 editon- however i want to tranfer it on to express editon as there seems to be some errors working with VB.net 2003- but when on trying to open the file- in the express editon- it comes up with error such as no web component not installed and unable to convert project- any suggestions please thanks well it is meant for the web, but express isnt used for asp and vb.net development then can you use visual web developer express with asp and vb.net then- and are there any issues with importing my application from VB.net2003 thankx ...Show All
.NET Development Memory leaking on one machine, but not another... HELP!!?
HI I have a vb.net windows forms app (framework 1.1) It creates 4 user-controls on a window (which themselves contain a mixture of com and dotnet controls). It displays the user controls for a fixed amount of time, passing in image and video files to be displayed for fixed time-legths, then destroys them. Then it starts again. On my laptop, and 3 other machines I have at my disposal, the user-controls are disposed of properly, and memory is released, but on 2 machines, the memory is not released! It appears that Garbage collection is not working properly! This is running exactly the same binary .exe file on different machines, and all machines are running framework 1.1 sp1 on xp pro sp2. Can anyone give a reason why on one machine, the mem ...Show All
Visual Studio 2008 (Pre-release) Focus Keyboard
I am using Josh Smith's excellent DragCanvas to create a designer. I'd like to have keyboard events (OnPreviewKeyDown) so that when a user uses arrow keys it moves my design elements around on the screen. I give the selected element focus using: SelectElement(UIElement element) { this.selectedElement = element; if (element != null) { element.Focusable = true; Keyboard.Focus(element); // element.Focus(); yeilds the same result } } And it gives the element focus but shortly after (not sure exactly the Keyboard focus gets stolen! and it's no longer focusable. If I tab through the elements everything works the way I want--arrows moving element, etc... I've also noticed that if I call my SelectElement() method which uses the ...Show All
Visual Studio Team System Merge/Checkout scenario
If say we have a version of a file that has come from a nother source location and we simply want to use this version but the version in source control is different and needs to merged with this "loose" file, is it possible to have TFS do a merge on the local file one a checkout Use case: 1. File A.cs is in source control 2. File Aa.cs is modified elsewhere 3 File Aa.cs is copied over A.cs locallly 4. File A.cs is merged into Aa.cs in place... Is this possible Basically, I want to force a Conflict Resolution so that changes in the source files can be merged... Hello, in TFS we don't perform get on the checkout (as SourceSafe does). Checkout only marks file as checked ou ...Show All
Software Development for Windows Vista Initializing local services from App.Config
I've seen plenty of examples on how to load core services (persistence, tracking, etc.) using entries in the App.Config. Is it also possible to load your own local services using App.Config entries If so, is there an example of how to do this somewhere Thanks. Bruce Bukovics Author of .NET 2.0 Interoperability Recipes http://www.apress.com/book/bookDisplay.html bID=10116 I was searching for more information on this very usefull feature. I'm wondering why it still haven't found its way into the Windows SDK (still missing in the RTM Version). It's not mentioned in the "Workflow Configuration Files " http://msdn2.microsoft.com/en-us/library/ms732240.aspx, the main info source on using the config f ...Show All
SQL Server SSIS XML Configuration updating at runtime
How can I update a variable in the XML configuration file. Can I use the configuration object for it or do I need to use XML objects and do it just like any other XML file Another problem I have is, I know I can reference the same XML config file from 2 different packages. But every time I do that through the wizard, only the last package configurations are placed in the XML file. Any help is appreciated! Hi Jamie, Right on the spot. That is exactly why I need this. I will pull records delta from a vendor and I need to persist the date somewhere. I've seen code with LoadPckage and app.LoadFromSQL etc. It seems not logical to load the same package while still in the package script ta ...Show All
Visual C++ Urgent help required: Error 14001
In Windows XP I ported a VC++ project previously built with ver 6.0 to 2005. I could run the application in my machine without any problems. But if I try to run the same in other machines, I get following error. This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem. I looked at various threads in MSDN related to this and I did following to fix the issue. 1. In the target machine which doesn't have VC++ 2005, I installed Sax binaries. 2. Tried to create VC+ deployment project and installed the same in the target machine. Both attempts are unsuccessful. Can some one give me hint please Thanks in advance ...Show All
Visual Studio 2008 (Pre-release) WCF UserName authentication
HI, I'm trying to implement username authentication for a WCF service (hosted in ServiceHost, not IIS) and once service starts it gets to Faulted state if i specify: tcpBinding.Security.Message.ClientCredentialType = MessageCredentialType.UserName; Here's the piece of code where service is being started (all settings, e.g. endpoints, behaviors are set in code - there is no app.config in the project): //////------------------------------- urlService = "http://localhost:8000/MyService" ; host = new ServiceHost(typeof(ServiceLibrary.service1)); host.Opening += new EventHandler(host_Opening); host.Opened += new EventHandler(host_Opened); host.Closing += new EventHandler(host_Closing); host.Closed += new EventHandler(host_Clos ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Simple question. How to convert float to only 2 decimals?
How do you convert float to only 2 decimals I want to display the elapsed time in seconds but the time is a float so it is displayed with 5 decimals and I only want 2. (24.47984 to 24.48) Cheers Alfons You can also put the numeric format in the format string, like so: testFont.DrawString(30, 30, "Pos: {0:F2}, {1:F2}" , thing.pos.X , thing.pos.Y ); Saves a little typing. See the MSDN docs on formatting for more about this. Cheers, Leaf. ...Show All
Visual C# Calling Virtual Methods from Within Constructors
[Reposted from .NET forum] I have an issue and I wonder if anyone has run into this. As I know, you cannot call virtual methods from within constructors safely, because the inherited class is not constructed at the time of base constructor invocation. However, I am creating a base class whose internal workings are sufficiently complex that I had to create a series of virtual functions that the inheritors can modify. These are called when a particular property is set in order to set up the connective tissue underneath. This is not a problem. The problem exists because I cannot use these same virtual calls on either deserialization constructors or in the default constructor to perform these same operations when the class is first in ...Show All
Visual Studio Can it be done : Custom colors for bars in bar chart ?
Is it possible to have different colors for bars in charts. I am wondering if there can be formula applied for each (x,y) values We are using Reporting services in local mode. If it cannot be done, it appears we have to purchase separate charting components. Thanks You can take a look at the following blog article which also includes a sample report: http://blogs.msdn.com/bwelcker/archive/2005/05/20/420349.aspx Within the next month or so there will also be a new MSDN article that specifically focuses on how to get more out of the built-in RS charts. -- Robert ...Show All
SQL Server Confusion over @@ROWCOUNT test
I have a pair of services. One is an initiator of a conversation, another is a target. I have a pair of message types, one sent by the initiator one sent by the target. I have a pair of queues corresponding to the above services. Both queues have activation stored procedures associate with them. The intiiator sends its mesage to the queue that the target service is defined on. The activation procedure successfully retrieves the message, does some work and then sends a reply message on the same conversation to the initiating service. At this point behavior seems to become strange. Some of the time the send from the target service produces the "zero length message" error and indeed at times the message body is em ...Show All
Visual Studio Tools for Office Adding large amount of data to excel range generates excetion:HRESULT: 0x800A03EC
I have made some code that can take som data from a .NET dataset and put it into an excell sheet. This works perfectly when i have e.g. 1000 rows of information. My problem is that based on som mete data, i create a four column and 24000+ row data for an excel range. when i try to assign the data to the range, i get the following exception: Exception from HRESULT: 0x800A03EC at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData& msgData) at Microsoft.Office.Interop.Excel.Range.set_Value2(Object ) the code that produces the error is: private void InsertData(DataTable table, _Worksheet concreteWorkSheet) { // the worksheet starting at cell A2. int nu ...Show All
.NET Development Generate TypedDataset from Schema
Hi All, I'm looking 4 your advise i want to create Typed Dataset based on my Schema file. I tryed to use the xsd.exe tool, it generates me cs file derived from Sysytem.Data.Dataset however i can't see all tables in design mode, and i need to. also i added to my project my schema file and in custom tool property wrote "MSDataSetGenerator", it generate me dataset however it's not looks like TypedDataset based on some tables from DB, i don't see tables and relationships. Any suggestions TNX Advance. ...Show All
Visual Studio Sandcastle assembly collection to multiple .CHMs?
I want to document the APIs stored in multiple .DLLs so that each .DLL is documented in a separate .CHM file. There are basically primary and secondary .DLLs, and the secondary ones might not be installed. If they are, though, they'll reference classes defined in the primary .DLLs. I can make a single .CHM with cross-references among the classes, but is there a way to use Sandcastle to generate separate .CHMs and still have the appropriate links between them ...Show All
