40th Floor's Q&A profile
Visual C# Regular expression help - quantifiers/negation issue
hi, im not exactly certain if this is the right place for this post but hell... Im currently working on a regular expression to capture portions of a .cfg file- it needs to be able to match any character, blank space and 2 newline/return chars but stop matching once it finds two newline/return chars. a snippet of the cfg file- START MATCH [blah]\n\r line 1\n\r line 2\n\r\n\r END MATCH [blah2]\n\r line 3\n\r etc, etc. If anyone could help me out i would be extremley grateful! im having troubles creating a regular expression that will allow the capture of \n\r and anything else but stop once it finds two of them in a row. ...Show All
Windows Forms Excel like tables / grids without binding?
Hello, I am new to 03 .net and I am having a hard time with a couple of things so I am hoping someone will help! How do I create a grid like display without binding Sometime Visual only and sometime in the future I will build the database for a binded grid. Is there a way to create these grids and specify the number of columns and rows without binding them Ya, I got the data grid connected to the access databas last night. It isn't going to work the way I want it to. Is there a way to create a grid on the form and be able to populate it programatically ...Show All
.NET Development MSMQ Serializable Hashtable subclass causes a hang when extracting Message.Body
To start: I get no error message; just a hang condition. If I could get an Exception, I could probably figure this out for myself. Instead, .NET just hangs, cold and unresponsive. Here's the short concept of what I'm doing (no code examples here as the concept should be simple enough to implement by any interested troubleshooters): Make a struct called KeyValuePair with two fields: a Key and a Value, both String types. Mark the KeyValuePair struct as [Serializable]. Make a subclass of Hashtable called HashSet and override the Add method to guarantee that all Keys are unique at a ...Show All
SQL Server Making SSAS Developer Edition act like standard edition
My understanding is that the Developer Edition of SQL/SSAS contain all of the functionality of the Enterprise Edition. Is there a way to force it to act as if it were Standard Edition (and therefore subject to all of the limitations of SE) The reason I ask is that with our product we're trying to maintain compatibility with both SE and EE. I realize I can just install SE instead of DE, but if there's a way to simple toggle the behavior, that would be even better (especially since I already have DE installed. :) A partial answer: If you have a BI project (that you open with Visual Studio to design and t ...Show All
Smart Device Development Playing sounds
HI im writting a new program and i need to be able to play sound files. Mp3 files prefered but i can use wave files or anything else that works. Forgetting to post probably ill put it in my sig. I use vb.net 2005 for smartphone 2003 Thanks all Sorry for the late reply Actually i found the way my self to play wav files using coredll. From other forums if anyone needs some code ill be glad to post it. ...Show All
Windows Forms Cannot receive data from serial communications api
I am unable to receive any data from a win32 api that I am using for RS232. My application is based on a sample application that comes with the api and works fine; it can tranmit and receive data. I have set up a text box to display the received data, however nothing is showing up. I have tested the connection using the  ...Show All
Visual Studio 2008 (Pre-release) Calling type extension method recursively
Hi, Does anyone of you know if it's possible to call a type extension method recursively. Example public static IEnumerable < RegistryKey > GetSubKeys( this RegistryKey registryKey) { IEnumerable < string > registryKeyNames = registryKey.GetSubKeyNames(); foreach ( string registryKeyName in registryKeyNames) { RegistryKey registrySubKey = registryKey.OpenSubKey(registryKeyName); yield return registrySubKey; GetSubKeys(registrySubKey); } } I don't get any compiler or runtime error but the inline GetSubkeys(...) isn't doing muc ...Show All
Visual Studio Express Editions Problems installing Visual C++: install hangs & 100% cpu
I meet or exceed the system requirements: WinXP SP2 Over 3GHz Processor Pentium 4 w/HT (not sure if you need to know this or not) 1GB RAM 50GB available hard drive space I already had the .NET framework installed, so I uninstalled it as directed, and rebooted my computer. I then tried to run the install. It tells me that it's loading up and gets to the " This may take a moment or two" message. The load bar gets to about 3/4 of the way across, then stops. The processor usages shoots to 100%. Trying to kill the process closes the little install window with that last message, but the program continutes to run. After several tries I give up an ...Show All
Visual Studio Team System Team Foundation Server installation error
I'm trying to install the Team Foundation server (Single Server) and I get this error (taken from the installation log file): [05/17/05,12:25:31] vs70uimgr: DisplayMessage_START:Error 32000.The Commandline '"C:\Program Files\Microsoft Visual Studio 2005 Enterprise Server\BISIISDIR\uninstall\createds.exe" " http://STARBUCK/ReportServer/ReportService.asmx " TfsReportDS "Data source=STARBUCK;initial catalog=BisDWDB" "SPRINGFIELD\tfsservice" "01000000d08c9ddf.. ... .. ..a8710a6e4d66" 0 1' returned non-zero value: 3. Does anyone know what this error code 3 is It might help me look in the right direction to complete the installation... Many thanks ...Show All
Visual Studio Nested Solution Folder Parent?
I am creating an unbound reference. In my IsEnabledFor method I am trying to see if the current item is a SolutionFolder, and if so, if its parent is also a SolutionFolder with a specified name. For some reason, I can get to the logical parent of the current solution node, as it is in Solution Explorer. I can easily test if the target is a SolutionFolder, but the problem is testing its parent. Project project = (Project)target. - OK project.ParentProjectItem - yields a ProjectItem for the same node project.ParentProjectItem.Object - yields the same object (SolutionFolder)(project.Object) - yields the solution folder interface (SolutionFolder ...Show All
Visual C# Who called a method
Hi, I do not know how to determine who (which object) call a method. Let's take a look at code below: using System; using System.Collections.Generic; using System.Text; namespace sample { class Program { static void Main(string[] args) { Upper u = new Upper(); Lower l = new Lower(); u.fooUpper(); l.fooLower(); } } public class Upper { public Lower low = new Lower(); public void fooUpper() { low.fooLower(); Console.WriteLine("upper"); } } public class Lower { public void fooLower() { // how can I determine if fooLower was called from Ma ...Show All
Visual Studio Tools for Office taskpane
in the ms-access2003 task pane, we can see home, next and previous buttons. when i click on any of these buttons, i want to remove controls from the actions pane and display the other one. now the point is how to access these home, next and previous buttons from my vsto appln Hi, VSTO suppors customization of the actions pane in Word 2003 and Excel 2003 only. I don't think there is a way to programmatically access the Home, Previous and Next buttons of the task pane in those appplications. You might have more luck with questions about Access 2003 by posting your question to an Access newsgroup ...Show All
Smart Device Development Pls give me some advice!
Hello there, I am a new comer to this smart device development world. now I have some problems with creating a smart device dll using VS 2005. The problem is I know little about developing DLLs. Is there anyone who has any online tutorials or useful sites about it especially for VS2005 Thank you very much... Hi Brain, I'm glad i found someone who knows in and out about DLLs. I aint able to create a DLL. Here is my required set up:: 1. The DLL has to work on the calendar.exe (or poutlook calendar.exe) , in other words, whenever the calendar application on the PPC is lo ...Show All
Smart Device Development problem with date datatype
hi all iam working on an application that accesses database via a web service and it works perfectly till it comes to saving dates in the DB it saves 1-1-1900 although i've given it datetime.now parameter to save if any one knows the solution for this problem please help me iam using VS 2003 and microsoft SQL server 2000 Please read this to find our what details we need to help you are missing from your post: http://www.danielmoth.com/Blog/2005/03/please-read-before-posting-to-ng.html ...Show All
Visual Studio 2008 (Pre-release) [Feb CTP] endpoint configuration doesn't work anymore
Hello, I unistalled the Jan CTP and then reinstalled the Feb CTP on a WinXP SP2 box. I then created the first basic service: namespace Service { [ServiceContract()] public interface INotificationservice { [OperationContract(IsOneWay=true] void Notify(string message); } } namespace Service { public partial class Form1 : Form, INotificationservice { ServiceHost host = null; public Form1() { InitializeComponent(); } private void stopButton_Click(object sender, EventArgs e) { if (host != null && host.State != CommunicationState.Closed) host.Close(); } ...Show All
