Software Development Network Logo
  • VS Team System
  • Visual C++
  • Smart Devicet
  • SharePoint Products
  • Visual Studio
  • IE Development
  • Audio and Video
  • Game Technologies
  • Visual C#
  • Windows Forms
  • SQL Server
  • .NET Development
  • Windows Vista
  • Visual FoxPro
  • Microsoft ISV

Software Development Network >> redhanz's Q&A profile

redhanz

Member List

Roy mm
ac2600
aghoneim
Trevor2006
Ian Wallace
Pramod_SN
Magnus Sthlm
hafi23
mivecxtr
filson
AdamReith
sandsdad
CruzPedro
NytewolfAU2k7
guilhermecvm94558
Mamta M
bubsnt3
TomJ72
dmartensen
Ben Fulton
Only Title

redhanz's Q&A profile

  • .NET Development Escaping decimal points in regular expressions

    I'm trying to do something that ought to be very simple. I'm trying to test whether a string (which is an argument to a command) is a valid value of the type I need. That is, I want it to be convertable to a double and be in the range 0.1-1.0. I have this line in my code: Regex ValidPause = new Regex("^((1\.0)|(0\.[1-9]))$"); The problem is that VS marks the string as bad and gives me the message "Unrecognized escape sequence." If I take out the backslashes, the red squiggly line goes away, but then it matches "0x0", which is obviously not what I want. How should I escape the decimal points correctly Actually, it does work to match what I meant it to match. I just wonder, si ...Show All

  • Visual Studio Express Editions Running a shell command..

    Hi, I'm having troubles with running a shell command. I'm using this to initiate an existing remote schedule on a domain controller. The tool from which the shell command is run is used by helpdesk people (with no rights to start a scheduled task on a dc). Now, I started by using the schtasks.exe under an account with the right permission. This doesnt seem to work. Then I thought heck, I'll use runas.exe from MS and start the schtasks from there.. Nada too since passwords are not allowed by default. So after searching around on the net I found this tiny app sonur.exe which can be used in conjunction with runas.exe. It basically allows poking the password in the command line together with runas.. So, you get something like this: runas ...Show All

  • Visual Studio Team System 500-InternalServerError when running load tests

    When I ran my Webtest, I was able to complete the test execution without errors...but everytime I ran load testing, many '500-Internal server error' occurs... Also, when I look at the Test Summary part of the results...It shows the number of tests and the Failed Tests fields...in most cases both of the values here are equal...yet I know for a fact that there are successful tests since there's an email notification received everytime a user completes a registration. What I'm not really familiar with is what are these 'Tests' being referred to in the Test Summary part Does the value in the Total Tests field mean the total number of times the webtest was completed Thanks! But it seems that there are ...Show All

  • Windows Forms Make sure you are not dividing by zero.

    I am getting this message at this statement: g . DrawLine ( p , xPos + offset , yPos1 , xPos + offset , yPos2 ); g is an instance of the Graphics Class. It is not my code. I am trying to adapt NPlot package to my main application. The whole thing works well when NPlot uses an XML file (DataSet) that comes with NPlot. I copied the schema to another file and input my own data into the dataset and this error sprang up. I do not understand what the difference really is since I tried to copy everything slavishly. There are no dividions in the set of parameters. I cannot figure out why this message is appearing. Thanks. More and more good pointers. Many thanks. BTW NPlot is www.NPlot.com It is a good package. ...Show All

  • Visual Studio Vss 6 and vss 2005 Migration?

    1. Visual Source Safe 2005 will be a standalone product or will it be part of Team Foundation Server 2. Will I be able to migrate vss 6 database to vss 2005 3. Will I be able to use vs.net 2003 with visual source safe 2005 hi. >> 1 it will be available as a standalone product. >> 2 there is nothing to migrate. the database format hasn't changed. >> 3 yes. you won't be able to use some of the new functionality though, because that needs support from the ide also, and that is of course misssing in vs2003. WM_FYI thomas woelfer http://www.die.de/blog ...Show All

  • SQL Server Java script on the Jump to URL

    Hi, folks, Does anybody know how to make java script work on the Jump to URL Here is a thread that may help. http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=1053601&SiteID=1 ...Show All

  • Visual Studio 2008 (Pre-release) How to make WCF communication with SQL service broker?

    hi, I want tomake wcf and service broker communicate with each other,the question is how to write wcf so that two sides can communicate. thanks in advance Hi, That is not something easy to do and require a lot of custom code. You basically need a custom transport to talk with the Service Broker, and as far I know, there is not any available implementation of that transport. Take a look to this thread for more information, http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=285894&SiteID=1 Regards, Pablo. ...Show All

  • Visual Studio Express Editions Voice Talking

    Hey, How can I make a program "talk" Like say "Hello, Welcome to this program." Anyone you would need some audio files to do this, then play it using the SoundPlayer in the System.Media namespace. I think there maybe some other plugins or SDKs that do some voice talking thing, I'm not sure know that in .NET no such class exists to make it "talk" ...Show All

  • SQL Server Desprate..Please Help

    I wrote an application using Visual Studio 2005. This app requires a login that get that accesses SQL Express Data. I have an XP Pro box set up as a server using DSL Modem and connected to that is a Wireless hub. I used Network Wizard to set up a Home/Small Business Network on all the computers. My laptop has XP Pro and has Visual Studio and that's where I wrote the application. It's connect to the wirless hub with a cat 5 cable. The other laptop has XP Home Edition and is in another room is connected with wirless only. I set up a user called user1 in SQLExpress with a password. I set it up using MIXED MODE. (SQL server and Windows authentication mode) Connection String: myCn.ConnectionString = "Provider=SQLOLEDB;Data Sou ...Show All

  • Visual Studio Express Editions Another Problem

    Hi, I was wondering if there is anyway to turn a huge amount of code into a simple function. Right now I have a bunch of check boxes and they are all named C1-C7 and W1-W7, instead of putting in code for each one when clicked, which results in a large amount of code, is there anyway I could make one function to handle all of these. I tried something like this. If C(num).checked=true then W(num).checked=false endif its just a basic example of what i want and i could really use this later on. Thanks Well WayneSpanglers example does work but the other one might be nice for future use, ad thanx for showing me how to use cases.    Just note that all the cases ...Show All

  • Visual C++ Help button get chm instead of hlp

    I have a application built around a CPropertySheet derived class. The help button is looking for 'app.hlp' file (this is the default MFC stuff, I've not added anything other than moving the button). How do I get it to look for a 'app.chm' file instead I've tried the following using a test help file in InitInstance() //First free the string allocated by MFC at CWinApp startup. //The string is allocated before InitInstance is called. free((void*)m_pszHelpFilePath); //Change the name of the .HLP file. //The CWinApp destructor will free the memory. m_pszHelpFilePath=_tcsdup(_T("C:\\filezilla\\filezilla.chm"));     EnableHtmlHelp(); but i just get "Failed to launch help" This is a MFC ...Show All

  • Windows Forms --to attach a particular column to datagridview

    Hi, Is it possible to attach a particular column ( all row values) from a datatable to the datagridview control. thanks, Venp I'm sorry i confused you. My question is, if i have a datatable with empno,ename,dept,address... can i attach just ename to the combo ctrl. the same way for datagrid also. I want to reuse my datatable . thats why i'm asking. thanks Venp ...Show All

  • Windows Forms Annotations lost for Typed Datasets using Web Services

    Hi! I developed a typed dataset with tables and table adapters. I renamed the child and parent properties, to a name easier to understand, for example, < xs:annotation > < xs:appinfo > < msdata:Relationship name = " Component_Component " msdata:parent = " Component " msdata:child = " Component " msdata:parentkey = " Id " msdata:childkey = " ParentId " msprop:Generator_UserRelationName = " Component_Component " msprop:Generator_RelationVarName = " relationComponent_Component " msprop:Generator_UserChildTable = " Component " msprop:Generator_UserParentTable = " Component " msprop:Generator_ParentPropNam ...Show All

  • Visual Basic Simple web request

    This should be simple, I say someone do it before... from a vb.net app request from a weather service web site, the current temperature and read that (xml) and display it in the text box.... Don't know if I have any of my code correct, that is why I didn't post it.. I get an error also saying that "The remote server returned an error: (407) Proxy Authentication Required." Can someone help me....   The first code works just fine.... The second code for the weather breaks on the following lines Dim y As Integer = strHtml.IndexOf(")<br/>") strOut = strHtml.Substring(x, y - x + 6) the <br/> is not found and y is then -1 which the results in the second call ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Questionable Design?

    Granted, I'm only a hobbiest, but it seems that many of the samples in this beta just have some very poor design regarding encapsulation. Is it no longer one of the pillars of good OO that an objects data is private and exposed through accessors Steve Hoff wrote: Granted, I'm only a hobbiest, but it seems that many of the samples in this beta just have some very poor design regarding encapsulation. Is it no longer one of the pillars of good OO that an objects data is private and exposed through accessors I'm assuming you're referring to the Spacewar example ( or did you mean the output of the community at large ) I see a couple places where they have public members, but otherwise seemed solid ...Show All

©2008 Software Development Network