MathiasR's Q&A profile
Visual Studio How to Get a List of files in runtime?
Hello, I'm trying to get a item list with the path of dll and exe files with no success :( The problem seems to be that I'm trying to list some files in a directory that as files, only when the projects are built and the files are copied to the drop location. (yes i'm reading the files from the drop location). I've tried using the <ItemGroup> and no success (the files must be present at the begin of the build. So i was wondering if there is a way to do this Also i wanted to exclude some files: <Readdirfiles Include="\\mymaindir\Debug\**\*.dll" exclude="\\mymaindir\Debug\**\*word.dll"/> <Target Name="readdirs"> <Message Text="Listing directory files -> @(Readdirfiles)"/> & ...Show All
Visual Basic Opening Folder in Windows Explorer from class file
When I click on "button1", I want it to open a Windows Explorer window to the path inside the string "path_place". How do I go about doing this you could start a Windows Explorer process, giving the argument property the path_place example: dim myProcess as new ProcessStartInfo myProcess.Filename = "explorer.exe" myProcess.Arguments = path_place Process.Start(myProcess) hope it helps! ...Show All
SQL Server SQL 2005 upgrade Problem - In place upgrade
Hi, We are running a test upgrade form sql 2000 standard edition 32 bit to sql 2005 developer edition 32bit. Followed through all the steps and specified the account(SA priveleges and currently used by the 2000 version) and is the local admin on the box for the services and the setup seemed to move fine, except for when it got to the point of installing database services - This is the error message that I got: MSSQLServer could not be started. Verify you have sufficient priveleges to start system services. The was no choice but to hit cancel and then the set up progressed with a final message of 'SEtup failed'. Here is a portion of the error log: Attempting to recover in-doubt distributed transactions involving Micros ...Show All
Visual Basic Timer Ticks Twice
Hi All I am experiencing a small problem (challenge). I have a VB.net (2003) windows service that fires off a routine every 2 minutes. In fact, it executes an external program, so it doesn't really do much. Everything is great until I try to add threading to the process, either by way of the Imports System.Threading statement directly, or by referencing a library that includes that line. When this is done, the OnTick event is fired twice. For example, the following is logged, so it seems to be serial, not simultaneous (Can't be sure though). ---------------------------------------------------------------------------- 09:11:43:S001 Service Started ---------------------------------------------------------------------------- 09 ...Show All
Visual Basic Program Path
How would I, on program startup, get the program to write its current path in which the exe file is, to the registry Thank You! Sorry but this is the incorrect forum. Also please do not cross/duplicate post: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=696280&SiteID=1 the same would apply, except when you are loading your form/application instead of doing it via a custom action ...Show All
Visual Studio Team System The Team Foundation Server work item database can not be opened.
Today when I tried to import a new WorkItem type to our TFS-server I get a strange error-message: === U:\WorkItems>"e:\Program Files\Microsoft Visual Studio 8\Common7\IDE\witimport.exe" /f newBug.xml /t tfs /p Test The Team Foundation Server work item database cannot be opened. It may be offline for system administration. Try again later or contact your Team Foundation Server administrator. === The strange thing is that I can export WorkItems definitions and when I try to import to a project that not exists I am informed of that. I get the same error-message when I use Process Template Editor and I have tried with several different workItem definitions (all validated fine). Any suggestions ...Show All
Visual Studio Express Editions Someone please help me!!!
I need help making a .cpp program that returns the factorial for a non negative integer. I honestly don't know what to do! I'm new to this whole Visual Studios thing so can someone who knows what they are talking about help me out please thank you very much. ...Show All
Visual Studio Team System WorkItemFormControl hanging on .Item assignment
Hello All, I am seeing the WorkItemFormControl form hanging while I initialize it with the following code: m_wifc = new WorkItemFormControl (); m_wifc.Item = paramWI; m_wifc.Dock = DockStyle .Fill; m_wifc.Name = "WIFC" ; When the .Item property is assigned, the control seems to hang and never return. Here is the callstack from the debugger: [Managed to Native Transition] Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.dll!<Module>.CLocker.Enter() + 0x19 bytes Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.dll!Microsoft.TeamFoundation.WorkItemTracking.Client.DataStore.FieldClass.IsReadOnly.get() + 0x69 bytes Microsoft.TeamFoundation.WorkItemTracking.Client.dll!Microsoft.Tea ...Show All
.NET Development Sending mails on a localhost IIS SMTP Server
Hi, I wrote a code to send mail and I want to test on my IIS server. I tried to set up my IIS SMTP server then I used Outlook to check my email but I had an exception Your server has unexpectedly terminated the connection. Possible causes for this include server problems, network problems, or a long period of inactivity. Account: 'localhost', Server: 'localhost', Protocol: POP3, Port: 110, Secure(SSL): No, Error Number: 0x800CCC0F is there any tutorial for setting up IIS and Outlook to send and receive mails on the localhost server I saw in many WebCasts doing it but they didnt show how to set up the servers. Thanks in advance. Thanks Brendan for your help , but you know I ...Show All
Software Development for Windows Vista link problem in MonitorInfo9 example
Hi, all, When I try to compile and run this example, the following link problem appears. monitorinfo.obj : error LNK2001: unresolved external symbol "unsigned int (__stdcall* ATL::g_pfnGetThreadACP)(void)" ( g_pfnGetThreadACP@ATL@@3P6GIXZA) I fond g_pfnGetThreadACP is defined in USES_CONVERSION which is used in W2T and so on. I tried some answers for this problem provided in internet. But they do not work. thanks in advance for your time and consideration. Best, Damon It might be in atlsd.lib. Incidentally, USES_CONVERSION was removed from the samples for the Vista SDK. ---------------------------------------------------------------------------- Mike Wasson, DirectShow SDK Documentation This posting is provided " ...Show All
Visual C# waking the service every five minutes
hello Everybody i have made a windows service in C# I want my service to wake up every 5 min and do some processing how can it be done It is urgent Please mail some raw code if possible Hello, You have a few options. This is the code for the simple component based timer : using System; using System.Collections.Generic; using System.Text; using System.Timers; namespace ConsoleApplication1 { class Program { static Timer timer; static void Main(string[] args) { timer = new Timer(5 * 60); // 5 Mins timer.Enabled = true; timer.Elapsed += new ElapsedEventHandler(timer_Elapsed); System.Console.WriteLine("Press any key to exit"); System.Console.ReadKey(); } ...Show All
Visual Studio 2008 (Pre-release) Call WCF asynchronously
How can I call WCF service asynchronously from client Is asynchronous call is recommended practice in WCF Is not, life is easier in WCF than in Web Service. If yes, would MS consider adding asynchronous call functions in "Add Service Reference" so that "Add Service Reference" can become a useful tool. ...Show All
Visual C# Interfaces oversold???
First, I must admit that I am a C# novice and so I probably don’t have as much knowledge and experience on the subject of interface as most of you guys reading this post. After reading a few books on C# and interface design, I still can’t see and understand the real power of interface unless of course, we are talking about interfaces as a powerful concept in OOP ‘only’ and not as a powerful concept in the general sense. When I was first learning OOP I was quite suspicious about the ‘excellent features’ that OOP claims to be able to deliver to the world and I was right. For example, in reality OOP offers very little if any, code reuse. I am now having the same suspicion about interfaces even though I see a lot nice words used to d ...Show All
Windows Forms DataGridView with dependent ComboBox columns
Question: How do I correctly setup the binding for a DGV that has two ComboBox columns, where one determines possible values of the second What I'm doing: I have a DataGridView which contains two ComboBox columns bound to an IList<Items>. The columns are setup like below (other columns ommited): // Setup Size Column DataGridViewComboBoxColumn colTwo = new DataGridViewComboBoxColumn(); colTwo.DataSource = _sizeSource; colTwo.DataPropertyName = "Size"; colTwo.DisplayMember = "Description"; colTwo.ValueMember = "This"; colTwo.Name = "Size"; _dgvPipePricing.Columns.Add(colTwo); // Setup Schedule Column DataGridViewComboBoxColumn colThree = new ...Show All
Architecture Hosting Long Running Batch Processes In IIS 6
I am currently architecting a framework that will depend on IIS to host batch oriented code. The design will use a disconnected model with a controller (that lives remotely) and checks back periodically via an ASMX layer. When invoking the actual batch execution code the ASMX call will spawn as many threads as it is configured to run and immediately respond (hence avoiding any long running HTTP connection). I like the idea for a number of reasons, obviously I get to use a standard communication protocol to invoke the batch code across tiers and I can even incorporate standard load balancing routines. I'm also able to use the same communication end points to check back in on the threads as they are executing. There are also a number of o ...Show All
