David Makin's Q&A profile
Visual Basic Imports? Importance, Advantages and Disadvantages
The Project Properties Imports are the list of all class that will be used in the project for referencing classes/dlls. I just want to clarify something if there is any article in MS that will discussed the advantages / disadvantages and ways of importing classes. And also the best method to do for that. (In Script and/or in Project Properties.) I also need to know what will be the effect for the Project of Importing in Project Properties vs Code-behind. TIA Yes of course, I am familiar with that. Classes needs to reference first in the project before importing in on a code or/in project properties imports s ...Show All
Architecture UML/Modeling Tools you are using?
One of the problems I have found in VSTS 2005 is the lack of modeling tools for the Software Architect. Jack Greenfield addressed and answered my concerns here . He also said MS is working on some addressing some of the issues. I responded to him here . I needed something today to allow me to continue doing my job which currently is implementing a product line engineering process. I am using UML on this project. In case you are interested, here is a list of the tools we are evaluating from MS and their status. I answered Steve Cook's question as to what UML I would like to see supported by MS here . XDE was out because it ...Show All
Visual Studio Team System WebTest with Team Build?
Is it possible to run WebTests with Team Build I'm using Beta 3 Refresh and I couldn't manage it to work, no matter what I do the test always fail under Team Build (it runs perfect when using Test Manager). I'm getting the error: Results Top Level Tests ------- --------------- Failed (FullTests/)c:\fullbuild\projeto apresentacao\fullbuild\sources\classlibteste\testproject\webtest1.webtest Run has the following issue(s): F:\Program Files\MSBuild\Microsoft\VisualStudio\v8.0\TeamBuild\Microsoft.TeamFoundation.Build.targets : warning : Cannot open the ASP.NET project 'F:\Documents and Settings\Administrator\My Documents\Visual Studio ...Show All
Windows Forms How can I make a form listen to mouse_move event at design-time?
Dear all, In order to enable users to draw on a form, an object of type IDesignerHost should be used to mask the form to act as the designeing host. The problem is that this mask also blocks the form's mouse_events including the Mouse_Move event. I need to know how to activate this event while the form is in design-mode. The following code shows how to mask the form (designing host) with the IDesignerHost object and how to make use of services like the Toolbox service and the control-selection service: private void Initialize() { IDesignerHost host; IRootDesigner rootDesigner; Control view; // Initialise service container and designer host s ...Show All
Windows Live Developer Forums Sample: MSN AddIn - Text to Speech
A very simple sample of a msn addin. It uses the Microsoft Speech API to read incoming messages for you. The addin needs to be strong named and added to the global assembly cach. Same goes for the COM wrapper class for sapi.dll Generate the COM wrapper object for sapi.dll. Instead of just adding a com reference to it use tlbimp.exe and generate it yourself using the .snk file you've used to sign the addin tlbimp.exe /keyfile:”c:\my path\keyfile.snk” sapi.dll gacutil /i SpeechLib.dll Add a reference in your project to SpeechLib.dll The addin: using System; using System.Collections.Generic; using System.Text; using Microsoft.Messenger; usi ...Show All
Windows Forms MDI Problem
This problem popped up after upgrading to VS2005. My application has a report manager. You can print 1 or more reports at a time. Each report shows up in its own form. One form is used as the MDI Parent of each of the report forms. If I print one report I set the report form to maximized. When this happens, the MDI child form is shown with 2 icons and 2 control boxes, each of which work. If I don't maximize the child form then it works. Is this a known bug You see: [icon][icon] [min][max][X][min][max][X] Try replicating the situation outside of your application, i ...Show All
Visual C# From C to unsafe C#
Hi Peter, Thanks for responding. Converting to string doesn't help me convert the code unfortunately. Thanks! ...Show All
Visual Basic Adding an ocx component to vb2005 project
can somebody help me on how to add an ocx component on a vb2005 project such as shockwave ocx Dominic tanx for the reply. Ive already register it and it was succeeded but it still doesnt work. its still replying an error message " activeX control is unregistered" tanx.. ...Show All
Visual Studio Team System Number of times the web test runs
Hi, all. I created a web test and connected it to a data source, which is a SQL Server database. I have a table in my database that contains a bunch of values I want to use for running my test (in the Form Post Parameters). I want my web test to run once for each record in the database. I've selected "One run per data source row" option in the localtestrun.testrunconfig, but my web test only runs once (for the first record in the values table). Am I missing something How can I make my web test case to run as many times as there're records in the data source table Any input will be greatly appreciated. Thank you. ...Show All
Visual C# How to create a base class windows Form?
Hi All, I wanted to created a windows form with functions that are reusable. For example, creating a function to connect to the SQL server and validate user's name and password or insert record to SQL Server just by calling the AddRecord function. TIA For example, try this: public class BaseForm : Form { public void MyMethod() { MessageBox.Show("Hello"); } } public class DerivedForm : BaseForm { public DerivedForm() { MyMethod(); } } &nb ...Show All
Visual Studio Team System Trying out Trial of Team suite/edition problem profiling
I'm investigating the profiling capabilities of 2005 team suite for our development team. I've run into a couple of issues though. I'm trying to profile a C++/MFC app. First I'm getting a mixed message when I try and launch my app for instrumented profilng. I get the following message. Warning VSP2005 : Internal Instrumentation Error: The object '\LPWindowTest\Source\Windows\zlibstat.lib(.\zlibstat\adler32.obj)' was built without debug information. Is this a warning, that is I can continue or an error Is there anyway to specify libraries to ignore for profiling/instrumentation Secondly I get another error Er ...Show All
Visual C++ Unit testing For C++ code
Hi, I want to unit test a Simple VC++application. I am unable to find any reference, how to unit test a vc++ code, studio 2005. please help me by giving sample example. thanks. Take a look at http://msdn2.microsoft.com/en-us/library/ms182515.aspx . I believe unit testing is not supported for native C++ development but for managed C++. Thanks, Ayman Shoukry VC++ Team ...Show All
SQL Server T-Log Backups fail from 7am to Noon
This is a weird one. I have my server backing up the tlogs every 15 minutes 24 hours a day. Every day between 7 am and 12 noon they fail. I can't figure out why. Nothing that I know about happens between 6:45 and 7am that would cause an error. At 7am I get error 8309 in the App Event log. BACKUP LOG WITH TRUNCATE_ONLY or WITH NO_LOG is deprecated. The simple recovery model should be used to automatically truncate the transaction log. I don't get this at any other point in the day. After that I get a messages that the backup plan fails until noon. At noon the full backup runs, and then the TLog backups start running again. In the SQL ...Show All
.NET Development System.Collections.Generic.List datatype converting to Object Array
I have a property defined in a Webservices using System.Collections.Generic.List datatype. When that web service is referenced in my windows application, I see in the reference.cs file that the datatype is changed to an object Array. But I want the same datatype defined in the Web Services as i want to use the Add functionality of the List Datatype. Any solution for the issue. Thanx in Advance. Hi Parimal, Have a look at the following thread: Generic List get converted into an Array when sent through Web Service Hope it helps! ~JD ...Show All
SQL Server Does anyone know of an easy way (read without going into the XML) of deleting a dataset?
Please see above In report designer, go to the data tab and in its toolbar click the icon with the red X (deletes the currently selected dataset). -- Robert ...Show All
