Coleenh's Q&A profile
Visual Basic How would I make a .XML doc like .INI?
Hi. So far, I think I have gotten my form to write .XML with this code... (This is just a test form, I will add it to the real one once I get this figured out) Dim Saved As New Xml.XmlTextWriter( "..\Test.xml" , Nothing ) With Saved .Formatting = Xml.Formatting.Indented .Indentation = 2 .WriteStartDocument() .WriteStartElement( "1stStartElement" ) .WriteStartElement( "2ndStartElement" ) .WriteElementString( "TextBox1_Value" , TextBox1.Text) 'Saves TextBox1's value .WriteElementString( "TextBox2_Value" , TextBox2.Text) 'Saves TextBox2's value .WriteElementString( "TextBox3_Value" , TextBox3.Text) 'Saves TextBox3's value .WriteEndElement() .WriteEndElement() .WriteEndDocument() .Flush() ...Show All
.NET Development Connection Pooling not working
I have a form that has a number of database calls. It does these sequentially. In some cases it's not possible (due to archetecture more than anything) to make these calls all on the same connection. However it does open then close the connection. (all connections created are in using statements) What I'm seeing is that we're getting a timeout when the 100 connection limit is hit. Looking at Activity Monitor I can see these connections growing and growing over time in the activity monitor the more windows you open and close even though these connections are closed. (and they all use exactly the same connection string) data source=(Local);initial catalog=Evolution;password=dyknalna;user id=EvolutionUser;Connection Timeout=20; I read ...Show All
Game Technologies: DirectX, XNA, XACT, etc. 1 question...
Hi. My question: Will finall release of xna include some physics engine Im very interested in it. Thx for any response. Thx for response, but notice that i just want to know that i dont waste my time to do my own phisycs engine (I know that it is fun to do it, but why do it, if its already done ). Now I'm waiting for finall release to write my games in 3d. ...Show All
Visual Basic Wild cards in an IF statement
Is there a way to use wildcards within an IF statement I am trying to do this: If strGroup Like %Direct% Then DataTable = dsStaffHoursWorked.vwGroupProjHoursDate mTableFill.subvwGroupProjHoursDateFill(DataTable, GroupStats(D).GName, cn) Else If strGroup Like "%Total" Then DataTable = dsStaffHoursWorked.vwGroupTotalHoursDate mTableFill.subvwGroupTotalHoursDateFill(DataTable, GroupStats(D).GName, _ dfEndDate, dlEndDate, cn) End If End If but it doesn't seem to want to be working. VB has a Like operator which can compare say a string to a pattern to determine a match VB Like Operator http://msdn2.microsoft.com/en-us/library/swf ...Show All
SQL Server Regd - License requirement for Replication
Hello, I am trying to figure out if we want to implement replication in SQL Server 2005 does it require licensing . I have got information on BOL for license information on cluster and log shipping , but didnot get any exact information for license regardign Replication and Database Mirroring. Can anybody please direct me to where I can checkout . Thanks Replication is part of SQL server, so if you have the appropriate SQL server license, that should be sufficient. Since you can only use replication from one SQL server to another server. Gary ...Show All
Windows Forms Cannot Access a Disposed Object
Hi, I have a WIndows forms app in C# using VS2005 under development. When I load a child form from my main app, form, it loads and runs fine. If I close it and then try to open it again it gives me an unhandled exception, Cannot access a Disposed Object. Not sure what to make of this. Any help would be appriciated. Thanks Jeff A form automatically disposes itself and its controls when it closes. Make sure you use the "new" operator to create a fresh new instance each time you display this form to avoid this error. ...Show All
Audio and Video Development Debug Help with Simple Animation
I trying to debug a small problem. I cannot get the animation to activate. I'm missing something simple. MARKUP < xml version="1.0" > <root xml:lang="en" xmlns="http://www.dvdforum.org/2005/ihd" xmlns:state="http://www.dvdforum.org/2005/ihd#state" xmlns:style="http://www.dvdforum.org/2005/ihd#style" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.dvdforum.org/2005/ihd http://www.dvdforum.org/2005/ihd/iHD.xsd"> <head> <styling> <style id="BACKGROUND" style:position="absolute" style:backgroundFrame="0" style:backgroundImage="url('bg_main.jpg') ...Show All
.NET Development WSE 3.0 UsernameTokenManager not working plz help!
Hi, Im using a custom UsernameTokenManager in WSE 3.0 but it always authenticates when it should'nt. I'm missing something but don't know what. my Web Service code is: using System; using System.Web; using System.Web.Services; using System.Web.Services.Protocols; [WebService(Namespace = " http://tempuri.org/ ")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)] [Microsoft.Web.Services3.Policy("usernameTokenSecurity")] public class Service : System.Web.Services.WebService { public Service () { //Uncomment the following line if using designed components //InitializeComponent(); &nb ...Show All
Visual Studio Express Editions how to make an AIM like program
im a bit new to C# and i wanna just play around with somethings in the program. but what im intererested in is how to make something like and AIM program .. any ideas thanks. Freaky Easist way would be to start with the code/work of someone elses and build your own GUI around it. My suggestion when it comes to AIM Fluent.TOC ...Show All
Visual C++ A compiing error about template
Dear Expert: I use visual studio 2005 to compile NeuroLib ( http://www.ia.unc.edu/dev/ ), and there are a lot of error like the following: ---------- e:\unc_proj\lib\neurolib\libraries\datatypes\Vector2D.txx(33) : error C2244: 'Vector2D<T>::{ctor}' : unable to match function definition to an existing declaration 3> definition 3> 'Vector2D<T>::Vector2D(const Vector2D<U> &)' 3> existing declarations 3> 'Vector2D<T>::Vector2D(const Vector2D<U> &)' 3> 'Vector2D<T>::Vector2D(const T &,const T &)' 3> 'Vector2D<T>::Vector2D(void) ------------------------------------- this is implementation of the .txx function: inline Vector2D<T ...Show All
SQL Server Replication - General Architecture
Hi All... We're developing an asp.net based project. We plan to deploy it across multiple servers running in an NLB environment. That is NLB via hardware or software - we generally leave that decision up to our customer. Different from prior projects we've done, this application will rely on a SQL Server 2005 database. With the NLB, we essentially install our application many times across multiple servers. As hits come in from clients, they'll get directed to one server or another by whatever NLB technique is being used. The applicaiton generally doesnt care which server is hit. But what about the database What's a typical or best architecture to employ Should each server have an instance of SQL Server and then somehow through replica ...Show All
.NET Development web application
hi, when i'm openning a new web application in vs2005, i can choose the location. there are 3 options: 1. files system 2. HTTP 3. FTP i would like to know what is the different between them and which one should i use thank you mic Dear Mic, File System option was included in the new version of visual studio (2005) in order to support Windows versions that do not include IIS, like WinXP Home. Using this option you will use instead of IIS another hosting process called "Web Development Process" (or something like that) for hosting your ASP.NET applications. Of course this new "process" is not as powerful as IIS so it is intended to be used only for de ...Show All
SQL Server using Output clause and return timestamp and return value
I am trying to bring my stored proc's into the 21st century with try catch and the output clause. In the past I have returned info like the new timestamp, the new identity (if an insert sproc), username with output params and a return value as well. I have checked if error is a concurrency violation(I check if @@rowcount is 0 and if so my return value is a special number.) I have used the old goto method for trapping errors committing or rolling back the transaction. Now I want to use the try,catch with transactions. This is easy enough but how do I do what I had done before I get an error returning the new timestamp in the Output clause (tstamp is my timestamp field -- so I am using inserted.tstamp). Plus how do I check for co ...Show All
SQL Server Account lockout problem with sp_send_dbmail
I am running this code in a job: EXEC msdb.[dbo].sp_send_dbmail @profile_name = 'Blah Blah', @recipients = 'blah@blah.com' , @subject = 'Server Report 1', @body = '', @execute_query_database = 'DBInfo', @query = 'EXEC dbo.usp_SvrRpt1;', @query_result_header = 0, @query_result_width = 300, --@attach_query_result_as_file = 1, @query_result_separator = ''; GO Because I am creating a total of 6 server reports, I alter the subject and query like so: @subject = 'Server Report X' --where X is replaced with values 1 to 6 @query = 'EXEC dbo.usp_SvrRptX' --where X is replaced with values 1 to 6 I can run 4 reports without any problems. If I run more than 4 reports in the same batch, my network account under Windows 2000 Activity Direc ...Show All
Visual Studio 2008 (Pre-release) CLR -> XML namespace mapping bug
Hi, I have found what I believe is a bug in the CLR -> XML namespace mapping functionality. I am trying to map a namespace in the current assembly to an XML namespace like this: xmlns:local="clr-namespace:MyProduct.MyNamespace" This works fine as long as the current assembly isn't signed. If it is signed, an exception is thrown: {System.IO.FileLoadException: Could not load file or assembly 'MyAssembly, Version=1.0.2497.20670, Culture=neutral, PublicKeyToken=null' or one of its dependencies. <snip> It appears as though a weak name is assumed ( PublicKeyToken=null ). Regards, Kent Boogaart PS. I also tried using the XmlnsDefinitionAttribute to map the CLR namespaces to the XML namespace, but this doesn ...Show All
