Nick Palmer's Q&A profile
Visual Studio Express Editions String it together
Hi, Please let me know if there is away to manipulate a string so that if there is a comma directly after a number [see below] then it is replaced by a space. Before AXA_Data, 39, Trust_Acc, Jersey, T=Y, ********,***,**** AXA_Data, 372, Trust_Acc, Malta, T=Y, ********,***,**** AXA_Data, 03, Trust_Acc, England, T=N, ********,***,**** After AXA_Data39, Trust_Acc, Jersey, T=Y, ********,***,**** AXA_Data372, Trust_Acc, Malta, T=Y, ********,***,**** AXA_Data03, Trust_Acc, England, T=N, ********,***,**** I hope it makes sense, Jason this will become trickier and is more of a trial and error. Well one way would be to get the index of the comma. Once found, check to see ...Show All
.NET Development Append at the end of an existing xml file?
I got an XML file, and I want add new data to its end, how I'm able to do that I use appendChild and save to do all my nodes creation and saving.Using .NET 2003 That is part of the C# syntax to write string literals. If you do not use a string literal then you do not use it. For complete file paths it is helpful as instead of e.g. "C:\\windows\\file.xml" you can code e.g. @"C:\windows\file.xml". The C# syntax for string literals is explained on MSDN . ...Show All
Software Development for Windows Vista Problem with register filters
Hi all, I have a problem when doing the following line: CoCreateInstance(CLSID_FileSource, NULL, CLSCTX_INPROC_SERVER, IID_IBaseFilter, (void**)&pSource); I get an error REGDB_E_CLASSNOTREG, which means - "A specified class is not registered in the registration database". How can I register it Thanks, Yaniv Thanks - I will look it up. If I want to add custom filter like push source filter to the graph, what do I need to do Do I need to register this filter If yes then how can I do it P.S I am very new in DirectShow, so any help will be appreciate. Thanks, Yaniv ...Show All
Windows Forms Textbox1 to integer
can someone tell me how to take input from a textbox which the input is 1.9. I want to do 1.9 times 10 which equals 19 how can i do this in c# my textbox1 text now reads 1.9 which i made a label1 for it to display it . can someone show me how to take textbox1 value then multiply times 10 then write to label.. Hi, you can parse the text value using double.TryParse like: double d; if(double.TryParse(myTextBox.Text, out d)) { //valid number d = d * 10; myLabel.Text = d.ToString(); } Mark. ...Show All
Visual Studio VS2005 Installation failure
I am failing on the install of Dexplorer. I am logged in as administrator, but the error log shows I have insufficient priviliges to update the config file. Error 1303.The installer has insufficient privileges to access this directory: C:\Config.Msi. The installation cannot continue. Log on as administrator or contact your system administrator. I'll bet I'm not the first. Can anyone help Thanks! Can you take a look at the log files For the location of the log files see: http://blogs.msdn.com/astebner/archive/2006/01/20/515642.aspx Reading the comments someone was able to install dexplore after reinstalling the .NET Framework. ...Show All
SQL Server "Aggregate" function in reporting services
I have the problem of aggregating semi-additive measures correct in higher levels in a matrix control of reporting services. I use the "Microsoft SQL Server Analysis Services" data provider. I have a calculated measure saved in the AS2005 cube which looks like: [Measure].[Net Sales (kg)] = iif( [Measures].[Sales Volume KG] = 0, 0, [Measures].[Net Sales (RLG)] / [Measures].[Sales Volume KG] ) In the matrix, I have a 4 level Product Dimension on the rows (4 groups matrix1_level1 ..... matrix1_level4) and the visibility of the groups is toggled by each upper level, so I can drill in the product dimension. I place this measure in the data part of the matrix with (sum(Fields!Net_Sales__kg_.Value)). On the leave level all values ar correct ...Show All
Game Technologies: DirectX, XNA, XACT, etc. DirectX Texture Tool (PLEASE NEED HELP)
When im trying to lunch this utilitie in directx 9.0 sdk , it says Unable to create Direct3d Device . Please make sure your desktop color depth is 16 or 32 bit. my desktop color is at 32 bit and it still dont work , I really need some help . DxTex requires the "ref" software device to be installed. Did you install the full DXSDK Make sure you have a "d3dref9.dll" in your windows\system32 folder. -Mike ...Show All
.NET Development Aspect Oriented Programming techniques - intercepting calls to properties/methods - how?
I'm curious to know how aspect-oriented programming tools for .NET are able to work. In other words, how do you intercept a call to a property getter or setter, or to any other method Is it possible to use reflection and the Emit namespace to read an assembly and replace it with another assembly that is identical except for a few extra method calls before and after what was previously the method body Does this need to happen in a linking step (weaving multiple assemblies together) or could it be done dynamically by replacing an in-memory assembly What restrictions does the CLR impose on reaching into an AppDomain and making in-memory changes to the MSIL there Is it able to re-JIT changed methods Dan O ...Show All
Windows Forms How to create window controls using database values
Hello everyone, my name is Brandon M. Hunter and I'm a programmer...(AAA introduction humor). Anyways I need to find a way to create controls at run-time (checkbox,radio buttons,etc) that is based off the number of records I have in my database. So for example, I have a 5 records that are defined as subjects that a school teaches, I need to create 5 checkboxes for each of those records Does anyone know I tried using this piece of code for example: Private Sub Button1_Click( ByVal sender As Object , ByVal e As System.EventArgs) Handles Button1.Click Dim i As Integer = 1 Dim stringTest As String For i = 1 To 4 Select Case i Case 1 stringTest = "checkboxvalue1" Case ...Show All
SQL Server SQL Server and Terminal Services Application Mode
Hello! I am specifically looking for a KB article, best practice, white paper etc, that states it is not recommended that SQL Server (either 2000 or 2005) is installed on a WIndows 2003 Server that is also running Terminal Services in application mode. Is there such a document or reference Thanks, David Noal MCP >am specifically looking for a KB article, best practice, white paper etc, that states it is not recommended that SQL Server (either 2000 or 2005) is installed on a WIndows 2003 Server that is also running Terminal Services in application mode. ADS_TermServ2K.doc "Because Terminal Services is optimized for the desktop experience, it does not coexist wel ...Show All
Smart Device Development Type load exception: DOTNETCFV1 app running under DOTNETCFV2
I have an application that was built with VS 2003 and .NET Compact Framework 1.0. The application utilizes SQL Server CE 2.0. I have tried running my application on a system with .NET Compact Framework 2.0 SP1 installed and I get a Type Load Exception the first time the application attempts to access the local SQL Server CE database. I have tried the application on both Windows CE 4.2 and Windows CE 5.0 with the same problem. I thought 1.0 applications would run under 2.0. Any suggestions There should be more information on NETCF V2, e.g. like in this post: http://forums.microsoft.com/msdn/showpost.aspx postid=113878&siteid=1 This printout was added at some point (V1 SP2 as far as I re ...Show All
.NET Development I am making an Online Subscription Service
I am making an Online Subscription Service. I have thousands of subscribers. Some email adresses are not working in the list. And every time when we send an email to those subscribers then those email bounce back to my email address. I have got the idea from online resoures that If those bounced back email comes to a particular email address and we check about those emails (Subscribers) which are not exists. After a fixed number of bounces our system automatically delete that subscriber from the list. For all that I need to check that email address for bouncing emails. Any one can try to resolve this issue. ...Show All
Visual Studio Team System biztalk message problem
Dear all, My scenario is i calling a send pipeline in orchestration. I pass a message of xmldocument type to this pipeline. pipeline processes incoming message and return result in xmldocument object. Result is basically a flat file data now whenever i try to extract contents from message that is of xmldocument type it throws exception as it is invalid xml document. how can i extract contents of an invalid xmldocument Regards, Farukh. Hello You should post this to one of the biztalk forums. This forum is for answering questions on the new Distributed System Designers that ship as part of VS 2005 Team Edition for Architects. http://msdn.microsoft.com/newsgroups/ Biztalk is under Enterprise Development Thanks Brian [MSFT ...Show All
Visual Studio Team System Is it a good thing to use multiple scenarios in a Load test or not?
For Load testing I am currently reusing Web test scenarios. I am wondering that if I reuse 2 different Web tests scenarios in 1 Load test, would that be a good test Or If I run individual Load tests on each scenario Is it a good thing to use multiple scenarios in a Load test or not Thanks Thanks a lot. This really helped me a lot... ...Show All
Software Development for Windows Vista UnauthorizedAccessException when using MSDTC
Hello everyone, We have a 3-tier application, the client, the server and the databaser server. It was developed using C# 2.0 and .Net 2.0, the database server is MS-SQL 2000 and we have some MSMQ in there. All 3 are located on different machines. The client is Windows XP SP-2, the application server is Windows Server 2003 SP1 and the daatabase server is also Windows server 2003 SP1. Most of the time when the client performs an operation to the application server the database gets updated and something is written to a queue. The writing to the database and queues is performed in the context of a transaction, we use the System.Transactions facilities and MSDTC. When the server performs the writing operation it 'impersonates' ...Show All
