pdDallas's Q&A profile
Visual C++ XML Extracting Attributes (Simple Question)
Hi, I have a simple question regarding XML. If I have an XML file in a similar format as seen below, want I want to do is find ‘Product_Number = 1’ get the COLOUR and PRICE but what would be the best way to do this (C++ .NET) and would code loook like < xml version="1.0" encoding="utf-8" > <PRODUCTS> <PRODUCT> <PRODUCT_NUMBER>1</PRODUCT_NUMBER> <COLOUR>Blue</COLOUR> <PRICE>83.40</PRICE> </PRODUCT> <PRODUCT> <PRODUCT_NUMBER>2</PRODUCT_NUMBER> <COLOUR>Yellow</COLOUR> <PRICE>83.21& ...Show All
SQL Server Sql Server 2005 and Sql Server 2005 Express Edition
I have Sql Server 2005 and Reporting Services 2005 installed in my machine. Can I install besides this products Sql Server 2005 Express and Reporting Services 2005 Express. Can they be both in the same machine Will I get any problem doing this Thanks, Marco Yes, both the Engine, Reporting Services, and Analysis Services are instance aware components, thus you can install them more than once on the same machine without any problems, as long as you give them a distinct instance name. Integration Services, Notification Services, and client components (tools) are the opposite. They can only have one copy per machine. Thanks, Sam Lester (MSFT) ...Show All
Smart Device Development Where is WM5 project type in VS2005? SDK does not fix.
I have seen several references to selecting Windows Mobile 5 as the project type when creating a project for that type of unit. Under Smart Devices, my VS2005 (standard) has 2003 PocketPC, 2003 Smartphone and Windows CE 5.0, which as I understand it is not WM5. I have also downloaded and installed SP1 which takes forever for me but it did complete just fine - the choices for smart device projects are the same Perhaps I just don't understand but if I want to target my new IPAQ 2495b with WM5, then that's what I want to select - just like it's mentioned. Thanks That just means you did not stop everything, s omething is still running. See this on how to run script manually. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Components ?
My question is quite simple : What should we do with "Components". Until now, there is just the GraphicsComponent class. As mainly they will be called at : Initialisation, Update of frame and draw of frame, should we use them as scene object holder Let's take an exemple : I want to create a TextManager class, that mainly will keep a collection of texts with properties that needs to be render every frame. Should I go with a static class, or use the "Component" model for it Tx you !!! That sounds like a good use of a component. You could have what text to render be a struct or class and expose a collection of them as a property. Then users could drop your component into ...Show All
Visual Studio Team System Saving Data From Custom Control
I'm probably missing something obvious, but I cannot get my custom control to save its data when the user saves the work item. The custom control works fine in all other respects - when I debug it I can see that the work item field is there and has the proper value. However, when I re-open the work item my custom control shows the field having a value of 0 (it's an integer field of course). Any ideas on what I may be missing here I am working under the assumption that I didn't need to take care of persistence myself since I don't have to if I were to create a simple integer field in the work item XML file. Thanks, David Martin In the InvalidateDatasource method, you need to update the control wi ...Show All
Windows Forms Screen resolution affects GUI
Hi, I've developed an windows application in VS2003 (VB.NET) and set form window size as maximized. Problem is, GUI affected b'cos of different resolution in deployment PC. My Development PCs Max .Resolution is 1400 x 1050 (32 bit). Deployment PC has a Max. resolution of 1024 x 768. Many controls are out of the screen. How to bring the exact GUI what i designed before . I've seen an article in Code Project. but i Couldn't get a clear Picture abt the concept. Sometimes Manually , I'm adjusting the GUI. Please give me good solution for it. I want to design an apps that fits to all kind of screen. Thank You! You need to redesign your form to fit the minimum resolution you may ...Show All
Visual Studio Can't edit macros; "The parameter is incorrect."
I am getting "The parameter is incorrect." when I try to edit macros. I get it from the context-menu in the Macro Explorer and I get it when I use the Tools menu to get to the Macros IDE. I have also gotten a message saying that an interface is not registered but I forget the details and I cannot get it to happen now. It is highly likely, nearly certain, that I messed it up. I tried to convert a couple of VC 6 macros and messed things up. Now however I can't fix it. I hope we don't have to totally re-install VS. I don't mind losing everything in MyMacros.vsmacros if I must so if someone wants to explain how to do that then that would help. I tried to search for provious answers; if there are any then I don't know what to search for. ...Show All
Visual Basic Exceptioon error when trying to set ComboBox.SelectedIndex
Hello All, First, just so you know, I am not a real programmer and have never programmed in visual anything before and am playing with VB 2005 Express Edition. In the Sub below I am simply trying to change PtComboBox.SelectedIndex when the RunComboBox selection is changed, but am getting the exception error shown in the comments in the sub. In the Form1_Load event handler I have this line. PtComboBox.SelectedIndex = My .Settings.PreTrig and it seems to work fine. I can change the value of My.settings.PreTrig and the box is set properly. There are 4 items in PtComboBox and there are only 2 items in RunComboBox. I sure hope someone can show me what I'm missing here because this makes no sense. Private Sub RunC ...Show All
SQL Server How to implement incremental load in fact tables.
Hi all, i have a fact table which loads through package,when i m trying to load this table by running the package,i m truncating the fact table and loading the fresh data,instaed of this without truncating the fact table i have to implement the incremental logic in this. For this i can use SCD or Conditional split,but problem here is i have many source tables to load this fact table,so its very difficult to trace the changes in different source tables. can any one help me out in this You should stage all of your source tables along with the current load date. That way, when you select from your source staging tables, you can retrieve the data based on that date field, thereby on ...Show All
Visual Studio Team System Performance Problem #2
We've got a project with 3200 objects. The project contains about 10 errors. When we attempt to double-click on one of the errors to bring up the file, Visual Studio will hang for anywhere between 3 and 10 minutes. The Task Manager shows 'devenv.exe' consuming about 90% of CPU resources for this entire time. We're using the RTM version of DBPro. Amos. In a similar way to Soma, I kind of fell into the role of product evangelist within our company during evaluation, quickly realizing the benefits such a product could bring to our development. However, after several months of CTPs and RTMs we have ended up with developer machines almost as highly spec'd as a couple of our older servers and we ...Show All
Smart Device Development Validating and Validated events are not invoked for focused Control when closing modal form.
Hi, VS2005, CFv2. Its easy to reproduce this problem. Create new form Form1, drop TextBox, form1.ShowDialog, enter text in textBox1, close form (press Ok). This problem makes useless using DataSourceUpdateMode.OnValidation when bind object to form controls. Thanks, Tom. mrbelk wrote: ... the Compact Framework doesn't support the ContainerControl.ValidateChildren() or ContainerControl.Validate() methods. Am I missing something No, you're not missing anything. Thank you for pointing this out. I've updated my earlier post in case anyone doesn't read the full thread. I'm not familiar enough with the CF, but perhaps someone can confirm whether writing an equivalent "V ...Show All
Software Development for Windows Vista Mixing multiple streams and sending them over network
Hi, I am beginner in Directshow application development. I have to develop an application and i want to make sure whether it is faesible in Directshow. The specification of the application: The media to be streamed over network are stored in files. The application has to read these files and stream them. The stream that is sent over network should have all the streams (say 4 or 5) embedded in such a way that the size of frames in each file is scaled down and shown as a rectangular box in different positions at the client. It is like showing a preview of all streams in the server to the client from which the client can choose one. The preview of all streams should be in a single frame at the client. It is like mixing multiple streams in to ...Show All
Internet Explorer Development Safe to inert HTML into page with IFrames after refresh
I know similar questions have been asked in the past, but none of the responses really answered my question: On a page with IFrames, after the user refreshes, is there a way to tell when the main page has loaded enough that I can insert HTML If I insert early, I get an "operation aborted" pop-up from IE and then the page does not load. Thanks, Alex I am using the BHO to insert the code into some given webpage. Nothing is known about the page beforehand. Two techniques that I have tries include: myDiv= doc.createElement("div"); ((IHTMLElement2)doc.body).insertAdjacentElement("beforeEnd", myDiv); doc.body.insertAdjacentHTML("beforeEnd", InsertVariables(someHTML)); ...Show All
Visual Studio 2008 (Pre-release) Returning Files as a Stream
I have a WCF contract that returns a stream. I am normally returning an XML file. This works fine, but whenever I return a 'null' or binary file, the WCF comm seems to get hosed. This is a self-hosted console app. Here is my app.config. <endpoint address="net.tcp://localhost:8002/ProLab/" binding="netTcpBinding" bindingConfiguration="" contract="NCRx.ProLab.Common.IProLabServer" /> The interface is set up as a duplex interface as follows. [ServiceContract(Namespace = " http://NCRx/ProLab/Server ", SessionMode = SessionMode.Required, CallbackContract = typeof(IProLabWorkstation))] interface IProLabServer { /// <summary> /// Notifies the ...Show All
SQL Server "Who's the idiot that designed the file destination? "
Hi everybody, I'm new -- sorry, I couldn't figure out how to reply to this thread, I think because it's locked- so I started a continuation. What I am wondering about is if you indicate "text qualified= true" then why does it still get confused by embedded commas in quote-delimited text; I would think that the "text qualified" parameter would take care of that. Can anyone explain So as a work around I am thinking of running a perl script via "Execute Process Task" and clean up the commas that way, since I have little control over how it is produced.. the app it comes from has no ability to contol output, and it outputs it's tables as comma seperated files, with text fields surrounded by quotes. I was hoping to stay inside SIIS fo ...Show All
