Erik Miller's Q&A profile
Visual Studio Team System Unit Test Configuration
I am just starting out using VSTS Unit Test capabilities. I have used NUnit in the past. I have created the Test project and added an App.config file. In this file I have created a <connectionStrings> section along with an <add name="DBAMS" ... /> entry. In fact, I copied from the app.config file I was using in NUnit where it worked. When I debug the test it is failing on the following line: providerName = ConfigurationManager.ConnectionString["DBAMS"].ProviderName; Turns out, it cannot find the DBAMS entry. What am I missing to get this app.config file to work correctly with my unit test I have ...Show All
SQL Server Using 2 Data Source and interact with them.
Hi there, I got a little problem with my SSIS Package : I would like to : - Open an OLE Data Source and an Excel Source in the same data flow task - Transform with a Derived Transform control (for example) a colum of the OLE Data Source using the Excel Source (like for example an Update OLE_Data_Source SET Col_1=Excel_Source.Col_2 WHERE Col_1=Excel_Source.Col_1) - Export results in a OLE Data destination I could use 2 Data Flow Task to resolve my problem, but in the case of 100 columns, i would rather not to use 100 Data flows tasks. So I dunno if I explained my problem clearly, but I you had any solutions, that would be ...Show All
Smart Device Development Extracting Bitmap from AVI File
I am capturing some Video on a windows Mobile device and would like to display a preview of the video file to the user after recording (a thumbnail basically) I have seen a few methods for doing this, but none of them seem to work with the compact framework. Any suggestions Take a look at this article on codeprojects.com: http://www.codeproject.com/cs/media/aviFileWrapper.asp I've not tried it on CF, but IMO it should work. ...Show All
Visual C# Query Output in C# differs from output everywhere else
I have a stored procedure that returns a calculated field. The query looks kinda simliar to the following: SELECT ISNULL(udf.SomeID, t.SomeID - 1) - t.SomeID + 1 AS IsHappy -- SomeID is an integer greater than 0 -- t.SomeID will always exist -- udf.SomeID is either NULL or == to t.SomeID -- IsHappy should == 0 if udf.SomeID == NULL and 1 otherwise FROM SomeUDF() AS udf, SomeTable AS t This sp has been used for months by various applications without a hitch. ...Show All
Windows Forms ADO.NET, DataSet and pulling related data from the SQL 2k
Please let me know if at any point I'm trying to force my way through doors already open :) My goal is to write a class that would enable me to populate the whole dataset with schemas of tables being in relation with the one in the basic SQL query and fill those tables with relevant data. Eg if I have table UserCoreInfo consisting of&nbs ...Show All
Visual Basic Disabling a form
Besides form1.enabled = false, is there another way of disabling the main form while another for is being showed Thanks William Hi, Use the ShowModal method on the form which you want to show from the MainForm. Then it will not be possible to access the Main Form until the other form is closed. Regards, Vikram ...Show All
Visual Studio ReportViewer with inner join
Hi, I'm trying to create a report with two tables in which I've created a inner join in the dataset desiner. I run the query and it works fine. When I am in the report designer I create a table and then pull the fields over from the data source into the details area. I have to select them from the two tables in the data source window. When I run the report the secondary fields do not synchronize. This is where I am confused, shouldn't those secondary fields I added to the SQL Select statement with a inner join, be available to add to my report Shouldn't I only need one ObjectDataSource for my report What am I missing ...Show All
Microsoft ISV Community Center Forums How to become an ISV
How to become an ISV what are the advantages of being an ISV and purchasing a MSDN Subscription what are the licensing Issues Having a MSDN Subscription and being an ISV can I deploy the developed applications to my clients How much should I pay to be an ISV and have a MSDN Universal Subscription (in Indian Rupees) Can an Freelancer be a ISV Can the Freelancer be a ISV and Work for a Company who is a MS Partner Please answer these questions in a sentence or two. Thanks Brenda.. The Contact number in India was useful. I Contact them once I'm in Bangalore after 25th November. Currently working in Switzerland. Do u think It is wise to t ...Show All
Visual Basic DLL's
How do you write dll's and how are they used Start a new Visual Basic project, and select Class Library, then add your classes in the project and compile it. To use it, just reference the compiled DLL to your project. For more information, watch the presentations from here: http://msdn.microsoft.com/netframework/programming/classlibraries/ Regards, -chris ...Show All
.NET Development Problems with Resource
Hello, I want to test the new resource-feature, so I created a resx-file with some values. Now I compile it with resgen and get following .dll: Visual Studio 2005\Projects\Ressource\Ressource\bin\Debug\de-DE\Ressource.resources.dll I want to read a value to a console with following code: System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo( "de-DE" ) Dim rm As New Resources.ResourceManager( "ressource.loc.de-DE.resx" , System.Reflection.Assembly.GetExecutingAssembly()) rm.IgnoreCase = True Console.WriteLine(rm.GetString( "User" )) But at the console line vs keeps on t ...Show All
Windows Forms playing Sound From A Button
I'm playing with VB Express. I am new to programming. Just for the heck of it, I want a form with a button that plays a sound file when clicked. 1. Why is it so hard to find info on this 2. How do I do this 1. It's not: see How to: Play a sound from a windows form 2. see 1. ...Show All
Visual Studio Emailing a report
I have a locally hosted report in an ASP .Net application. I am rendering this report to a text stream so that I can send it via email, but I think there is probably a better way to do this. What is the best way to programatically email a locally hosted report Hi John -- How are you handling retreiving the rendering from the web control and subsequent image streams that get processed I've been looking into utilizing this technique to retreive an HTML rendering since MS has removed that from the WinForms control, but I haven't had any real luck getting it to work yet. If you could maybe post a small code snippet, or just de ...Show All
Visual Studio Express Editions How to use an external script in IDE
I have many different .vbs scipts that I can click on to do various tasks (such as map network drives, WOL computers, and Remote Shutdown computers). All I want to do is to be able to press a button and it will activate the scipt. What is the code that would call the .vbs file and execute it in the IDE I tried to use "Add Existing Item" and put the script into the Solution Exploerer, but it either didn't put it in the IDE or I don't know how to call it. Thanks You cant run vb script in vb express. If you want to run a script file from your application you can use process.start("YourFile. ...Show All
Smart Device Development ok
Any idea what framework is built in the treo 700w I could not find this anywhere. Since it's running Windows Mobile 5.0 (Pocket PC Phone Edition) it should contain CF 1.0 Service Pack 3. It does support CF 2.0, you'll just need to install it on the device in order to use it. ...Show All
Visual Studio Team System Manual Merge
Hi, Is it possible to activate a manual merge Currently we are able to merge manually only if there are conflicts that need to be resolved. We would like to merge manually even if there are no conflicts at all. Thanks Michael What situation are you referring to There are two major areas where the Resolve dialog comes into play: (1) Your workspace version is out of date. Either you're trying to Checkin a file that's been changed since you checked it out, or you're trying to Get a file that's checked out to you but has changes on the server. (2) The target of a [tree] Merge operation is out of date. The target bra ...Show All
