Fr0Gs's Q&A profile
Visual Basic REGEX
Please help me find regular expression for wild character match. Say the regex should return true or false depending upon the validated expression. USA --> IsMatch("US*") should return true USA --> IsMatch("U*") should return true USA --> IsMatch("*A") should return true USA --> IsMatch("*SA") should return true USA --> IsMatch("*A*") should return true USA --> IsMatch("A*") should return false Regards: dipesh Hi, If all you need is to check whether a string match with wildcards, you don't have to use regular exp ...Show All
Visual Studio Team System Code coverage / signed assemblies / unit tests fail
Hi, I'm using VS 2005 RC1 and having problems with a unit testing/code coverage/signed assembly combo meal. I have unit tests that succeed against the assemblies without code coverage turned on. The assemblies are all signed with a common key file. When I turn on code coverage all my unit tests fail with a: "Strong name verification failed for the instrumented assembly 'Business.Entity.Assets, Version=1.0.0.0, Culture=neutral, PublicKeyToken=522bbccfa70f591f'. Please ensure that the right key file for re-signing after instrumentation is specified in the test run configuration." I've set the re-signing key file in the localtest ...Show All
Software Development for Windows Vista Checking the status of a running workflow/orchestration.
This question is really more about BizTalk than WF but with the obvious similarities (and the complete absence of a BizTalk forum) I thought I'd post it here. Really it's a simple question, I would like to be able to have an application check on the status of a running orchestration based on a correllation set. Is there a way to expose a web service end point that can look up the status of running workflow/orch instance. I'm guessing there is based on what BAM is doing but I'm trying to figure out if there are limitations before I dig deep into trying to figure this out. Any help is much appreciated! Thanks! This is a WF forum so ...Show All
Visual Studio Express Editions New WinMain?
Hi, I'm trying to test out a chapter of a directx book, and I get errors like I can't overload winmain. Why is this happening When I go back to my old vc++ 6.0, it compiles fine (there's a linking error, but that has to do with directx 9 not being supported). I mean, this shouldn't be that difficult, should it I've started a new, empty win32 application (not console). I create a new, blank file called winmain.cpp and I paste in the code. I compile it and it spits out a bunch of errors: 1>winmain.cpp 1>c:\documents and settings\jombee\my documents\visual studio 2005\projects\erase_me_2\erase_me_2\winmain.cpp(32) : error C273 ...Show All
Windows Forms Modal Window in Another Thread
I have a requirement to open a modal window in another thread which will overlay on top of a panel created in the main UI thread. The application gives an appearance of as though there is only one window to the user. We have an application framework where different pages plug-in like a tabbed dialog mode. One of the page which is actually auto generated code from some rules will open many successive modal windows. When a modal window is opened we lock the UI thread so the user cannot move to the other tabs. To achieve the navigation to other tabs while a modal window is open on a tab we had to do this thread approach. The framework is a ...Show All
.NET Development Bitmap Load and Save
Hi All, sure this is obvious to most of you, but please be patient and Help me : I load a bitmap with: imgInternal = new Bitmap (path); pictureBox1.Image = imgInternal; when I try to save it (not modified, nor even touched !) with: imgInternal.Save(saveFileDialog1.FileName); or imgInternal.Save(saveFileDialog1.FileName,imgInternal.RawFormat); and the image is saved as a 32 bit BMP. I want to keep the original format, how can I do Thanks in advance. YdN Am not sure if this helps,but I hope it does. Try this- Image mage = Bitmap.FromFile(@"C:\Documents ...Show All
Windows Forms Have trouble introducing my own bug
I have installed the old terrarium for .Net framework version 1.0. I have both version 1.0 and 1.1 of the .Net framework installed. I still don't seem to be able to receive creatures in ecosystem mode, but thats a different issue. I can now run in local terrarium mode, and I can introduce animals from the server just fine. However when I try ...Show All
Visual Studio Tools for Office Outlook 2003 VSTO error
I've been creating an Outlook 2003 Add-In using VS 2005 and VSTO 2005. I've recently come into a glitch that I cannot find any information about and was wondering if any of you had any information on it. The same error happens on the Visual Studio 2005 Tools for Office Sample: Outlook Business Contact Assistant Sample, so I know that it isn't just my code. (link at bottom) Problem: When I build and install the Add-In using the auto created setup file (msi) the dll gives an error and never loads. In fact you have to go to the COM Add-Ins and add it in to see the error. The error is "C:\Program Files\Microsoft\BusinessCon ...Show All
Windows Live Developer Forums Submit an App - Get the Windows Live Messenger Beta!
Would you like early access to the Windows Live Messenger Beta Starting today, November 8 th and running thru 9:00am PST on Monday, November 14 th The first 5 people to submit Activity Apps to the Worlds Best App contest and successfully pass compliance checking will receive an immediate invitation to the Windows Live Messenger Beta! Be one of the first people in the world outside of Microsoft to run with the next version of Windows Live Messenger! Lets see those apps!!! -Scott i want to be a tester of msn live messenger 8 Beta Can i get a invition at dreifinger@catsoft.nl ...Show All
SQL Server Problem with line breaks in Reporting Services 2000 SP2
I was having a strange problem with line breaks in SQL Server 2000 Reporting Services. In some cases, line breaks would not appear where they should in a report, but if the report was exported (i.e. to PDF format), then everything appeared ok. I found that if a line break was entered by a user into an HTML text field using Firefox, then the line break would be represented by ASCII char 10, whereas IE treats line breaks as ASCII char 13 + char 10. No big surprise there, except that Reporting Services doesn't seem to render the char 10 line break correctly when viewing the report in HTML. The line breaks simply don't exist. With char 13 + ...Show All
Visual Studio Team System Wildcard for version type
Is there any way to specify a wildcard for a version data type in the SCE e.g. Common Language Runtime version 2.*.*.*. Currently, I can only set it to 2.0.0.0. ...Show All
Visual Studio 2008 (Pre-release) BinaryMessageEncoding and TcpStreaming Binding in September CTP
Was binaryMessageEncoding removed from WCF due to the fact that it was not interoperable In Beta1, you could flag a binding for binary encoding this way < binding configurationName="TcpStreaming"> < binaryMessageEncoding /> < /binding> September CTP bits don't like that BinaryMessageEncoding element. I am told that it is invalid child element of binding. I can't find any examples in the docs that don't do it this way, but assume that the docs haven't totally been cleaned up yet. Hey Julie, Yes, lot of refactoring has been done in CTP bits (now the baby looks better ;-)). So some of ...Show All
.NET Development Change password in Active Directory
I am trying to change the Active Directory password using C#. However, it seems to me it does not really works. I wonder what is wrong with my code. Hope somene can help me with this and thanks in advance. Below is my code : try { string dcDNS = "mypsptestdev"; //use this if you want to supply a server name DirectoryEntry userEntry = null; string currentUserName = (((string)Context.User.Identity.Name).Split('\\')) [1]; DirectoryEntry rootDSE = new DirectoryEntry(String.Format("LDAP://{0}/rootDSE", dcDNS), "_aduser", "TESTsql@dm1n", AuthenticationTypes.Secure); string rootDN = rootDSE.Properties[" ...Show All
.NET Development How to use System.Net.Mail.SmtpClient via SSL and Authentication?
Below is my code, and is just blocked there. There is no any error message. '=============================================> Dim msg As String = "---" Try Dim strAddress As String = " xxx@xxxx.com " Dim sm As New SmtpClient(Host, Port) With sm &nbs ...Show All
Software Development for Windows Vista "LoaderLock was detected"
I get this message after closing any VS2005 application in Debug mode.... VS2005 stays in debug mode until I explicitly kill my app. At first, I thought it was only on Avalon apps, but I get it on any regular WinForms app, even ones that I am recompiling on VS2005... Any idea what it means LoaderLock was detected Message: Attempting managed execution inside OS Loader lock. Do not attempt to run managed code inside a DllMain or image initialization function since doing so can cause the application to hang. I found it best to load your form, or executable, create what you need and make sure ...Show All
