Tony Malandain's Q&A profile
SQL Server XML stylesheet available for .dtsx ?
I am having more luck editing the dtsx files directly than using configs. Also for documentation purposes this would be helpful as I don't know enough about xml to find or build a tool to create a style sheet for me. Thanks! Ken Well that's obvious of course and the solution is to back up before editing. Let me tell you, it sure seems to beat using the designer and building a ton of expressions, variables, updating config files, etc. to get the dynamic behavior I am looking for. Also, I can break the package easily enough without editing the file directly ( try setting the inputid of a script transformation incorrectly- that seems to work really well at breaking the package :) But thanks for the warning. In any case, I plan ...Show All
Visual Studio 2008 (Pre-release) Using the First and Single methods
I am using the LINQ to Entities (I call it ELINQ as opposed to SLINQ, LINQ Tto SQL) and I am successfully creating and adding entities to the database using code like the following: NorthwindModel.Orders newOrder = new NorthwindModel.Orders(); newOrder.OrderDate = DateTime.Today; orm.AddObject(newOrder); int x = orm.SaveChanges(); However, I also want to set the Customer objec ...Show All
.NET Development soap xml serialization of "object" data type
hi folks, i want .net framework to xml serialize the below class, based on the type of data present in the second data member. but, only the first data member gets serialized and the second member is ignored. is this the way to implement what i am looking at that too, in .NET 1.1. http://xxx ")] public class MessageParams { [XmlElement("Credentials")] public Credential cred; [XmlElement("FirstMethodParm", typeof(FirstMethodDataType))] [XmlElement("ScndMethodParm",typeof(ScndMethodDataType))] public object Item; } TIA Sek This works for example. Try something similar or post something simple and runnable that doesn't wo ...Show All
Visual Studio how do I change the color of bookmarks in VS2005?
the bookmark indicator is a blue rectangle. in Visual Studio 2003 I changed it to a red rectangle so it was more visible. in Visual Studio 2005 (version 2.0.3115.0), I go to Tools/Options/Fonts and Colors. then I select "Bookmark" in the "Display Items" list. then I change the "Item background" from the Default blue to red. but it has no effect -- the bookmark rectangle still appears blue. (note that all my other color changes took effect just fine and that when I open "Fonts and Colors" it says that bookmark it is set to red.) this seems like a small thing, but I've found myself setting breakpoints that already exist (which toggles them off) because the blue color was so light that my eye doesn't pi ...Show All
Visual C++ Abstract class object
i hav read in all books dat we cant create object of abstract classes.. . and reasons like they are too abstract to create an object.. .. i want to know more of these reasons why we cant create objects...... . . . . manish Hi You must considering two aspects here - concept and implementation. Virtual Call Mechanism and Abstract classes is a concept. In the C++, the abstract classes can have pure virtual functions with method body. May be in my D++, I may not implement that way. If you are writing an abstract class in C++, follow its rules. Nothing mysterious. Regards Vivek Ragunathan ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Screen align quad on xbox360
this work fine on windows bu does not work on xbox360 code: public class QuadMesh { public VertexBuffer MyVertexScreenQuad; public VertexDeclaration MyVertexDeclaration; public void CreateScreenQuad( CreateSettings Evo) { EvoPositionTexture [] Quad = new EvoPositionTexture [4]; Quad[0].Position = new Vector4 (0, 0, 1f, 1f); Quad[0].Texture1 = new Vector2 (1, 1); Quad[1].Position = new Vector4 (Evo.ScreenWidth, 0, 1f, 1f); Quad[1].Texture1 = new Vector2 (0, 1); Quad[2].Position = new Vector4 (0, Evo.ScreenHeight, 1f, 1f); Quad[2].Texture1 = new Vector2 (0, 0); Quad[3].Position = new Vector4 (Evo.ScreenWidth, Evo.ScreenHeight, 1f, 1f); Qua ...Show All
Visual C# get color list
I need to set a chart color for each bar, inside a for(int i = 0; i < n; i++) I set each bar's value. but what about bar's color How can I set a different color in each loop base in "i" value, you know, from list of color from SystemColors or something laike that. thanks in advance for your help, Edward You will probably have different color for every bar. Why not define the color for every bar. I don't know why "i" is connected with color. If you don't have a setting for every bar, including colors, you can produce some default coloring. Create an array of 10 colors and get the color of i%10 item index. You will have bars with same colors if you have more than 10 bars. ...Show All
Software Development for Windows Vista Vista Master Volume Control with C#
Hi, I have write a class wrapper to Vista API audio functions to control the master volume (level and mute). All functions of IAudioEndpointVolume Interface apper to work ok except the SetMute function. The problem apper to be the parameter pguidEventContext of type Guid. If I set the following value : Guid nullGuid; nullGuid = Guid.Empty; int retVal = iAudioEndpoint.SetMute(true, nullGuid); I obtain the error "value dows not fall within the expected range" while executin the SetMute function. If I set a different guid value I obtain the error "exception from HRESULT : 0x88890004" (error inside the COM library). All other functions work ok with null guid. Only the SetMute fun ...Show All
Windows Live Developer Forums NEW API AND MAP CONTROL
Hi all- I'm happy to announce that the latest VE map control went live last night! You'll notice we rolled up some of your suggestions and bug reports into this latest release, and added a couple of really nice new features. Here's a quick summary: 1. Custom tile layers: use MapCruncher or some other tool to create map tiles, and now you can easily add them to your mashup! I've got an example on the interactive SDK that adds a LIDAR image over the map; it took me 10 minutes in MapCruncher and 5 minutes with the APIs. 2. Polygons. We added a VEPolygon object that's a lot like the VEPolyline object except that it also supports polygon filling. 3. Address disabmiguation. We've added a VESearchResult object that returns when you do ...Show All
Windows Forms DataGrid Click
I have a Customer information that is bound to a datagrid but I want to click the datagrid and show a form and it has that information in it is it way i can call a form from a data grid that has the information of the cell in the datagrid that i click on the form....basically i need to click the datarid cell and have my form show the information from that datagrid....can anyone help me out with that!!! thanks Well how do i get the value of data contained in a particular Row in a particular Column...I can get then number of the row and the number of the colum but how can i use the data within it...i am using 1.1 so no datagrid view....but this how i am getting it now and showing it in a messagebox....But i want to get the actual data t ...Show All
.NET Development web.config file
Hi, Can we create 2 web.config files in an asp.net application. will it work. can anyone suggest me the solution. Thanks in advance. Hi Srid, Two web.config files doesn't work in a web application root directory. Good Coding! Javier Luna http://guydotnetxmlwebservices.blogspot.com/ ...Show All
Visual Studio Error on a Help File Build
Hello, I received the following error when building a help file on a project: Error: Unresolved assembly reference: System.Windows.Forms (System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=969db8053d3322ac) required by apiregedit The project is building fine and I don't see any broken references. Thanks in advance for your help :) Bob Hanson hi, I am really new bee for sandcastle and I have exactly same problem, can anyone of you explain this in more detail thanks in advance :) regards, rashmi ...Show All
SQL Server ETL Package to OLAP cube
(I wrote this first on the SSIS forums!) Hi guys! I'm new here! Is there a way to create an ETL package that gets data from a flat file, puts it in a fact table and then it creates a cube based on the data without user intervention So the package will generate automatically a cube that can be used in SSAS I am sorry if I did not make any sense. Thanks! Any help doing this is appreciated! Jamie Thomson suggested creating an XMLA script to do it. Thanks again! There are actually 2 steps you need to distinguish. 1. Create dimensions and cube obects. For that you need to design your cube and dimensions first in BIDev studio. Then you deploy and test your cube. Finally you can generate an XMLA script for c ...Show All
SQL Server Trouble with Deployment
When I try to expand the MSDB under Stored packages in preparation to deploy an SSIS package to another server, I get the following. Client unable to establish connect. Encryption not supported on SQL Server The SSIS configuration file is the following: < xml version="1.0" encoding="utf-8" > - <file:///E:/SQL2005/90/DTS/Binn/MsDtsSrvr.ini.xml##> <DtsServiceConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <StopExecutingPackagesOnShutdown>true</StopExecutingPackagesOnShutdown> - <file:///E:/SQL2005/90/DTS/Binn/MsDtsSrvr.ini.xml##> <TopLevelFolders> - <file:///E:/SQL2005/90/DTS/Binn/MsDtsSr ...Show All
Visual C++ Why doesn't PDH work?
Hello, I've been trying to develop an application that reads the CPU load from the computer and the free RAM memory available. To do so, I was primarily thinking about using the PDH interface, since we are building to Windows Server 2003 and Windows XP, both of which already come with the PDH.dll. I downloaded the platform SDK from Microsoft's site, and I am using Visual Studio 2005. My dilemma is, every time I try to compile the source code, it gives me several errors, even with example codes taken from Microsoft's site. It gives me several unindentified objects in _main (it cannot understand/localize the commands, datatypes and so on). I don't understand why. I tried copying the pdh.h and pdh.lib to the main i ...Show All
