Veejay11's Q&A profile
Architecture DAL without deep loading
Hi all, I have written a DALgenerator for our project, wich uses uml-models to generate a DALfor sql server and oracle and a encapsulation for a BL layer on top of that DAL. What I want do discuss is the handling of relationships between objects and how they are handled or not handled by the dal. In my dal I do nearly nothing about relationships. Whenever I model a 1:n relaionship in my uml-model, I generate the foreign key in the DTO and that's all. Most of the or-mapping tools use the oo-way and embedding an reference of the referenced object inside the DTO. I realy don't like this aproach. When my BL layer returns a List<UserD ...Show All
Windows Forms Clearing the Graphics Buffer
I know in C# there exists a function Clear(Color c) for the graphics object. However, this method doesn't really clear the graphics on screen, all it really does is the FillRectangle function with a specified color for the length and width of the entire screen. What I want is something that truly clears out the screen, not some sort of mask to cover what was previously drawn. In my search I've found nothing on this topic, however, I have discovered something interesting that I think would helpful for this problem. Try this experiment: Create a windows application project in VS and add a panel to the form. Within the panel, make it so that it ...Show All
SQL Server Merge Replication Between two Existing Databases?
Hi gang, We have a couple of databases on separate servers that have exactly the same schema, and we would like to set up merge replication between them. Is that possible The few times we've experimented on test databases, the subscriber database has been trashed and rebuilt using data from the publisher, rather than preserving data from both databases. I'm really new to replication in general, so any kind of advice would be helpful. Cheers, Matt Yes it's possible, see topic in Books Online " Initializing a Merge Subscription Without a Snapshot ". ...Show All
Visual Studio Team System Work Item property values
Hi there, in TFS Beta 3 when I create a new Work Item it has fixed values for some of the fields, for example the Priority has to be a value of 1, 2 or 3. Are these values defined by the Team Template Can I add my own values to these type of fields, if so can you give me a clue I might be pushing my luck now, but is it possible to add your own fields to a Work Item For example if I wanted to record some sort of internet reference against a Work Item what would be the best way Thanks very much for your help Graham Yes you can do that. In fact I think its one of the coolest extensibility features in Team Sys ...Show All
SQL Server JOB With SSIS Step Fails If Package Contains A Script Task
I have a Job Step defined to execute a SSIS Package. This SSIS package contains a Script Task. The Job fails with the message "Package execution failed. The step failed." I am logging events in the package and when the packages gets to the Script Task the log reports "The script files failed to load". If I disable the Script Task from the package it executes fine. Curiously, the package runs successfully with the Scritp task enabled using dtexecui and dtexec from the command line. Only if I include the Package in a job step with the Script Task enabled does it fail. Any help would be appr ...Show All
Visual Basic Common class library between XP and SmartDevice
I want to have a common class library between windows xp program and a Pocket PC program. The code in the class is general processing, nothing device dependant. So, in my VS2005 Solution, I have a XP program and a Pocket PC program, and a Class Library. How can I get VS2005 to ( I guess) compile the class twice generating a DLL that will work with windows XP, and another DLL that will work with Pocket PC with out having to copy the code into another class libary that is specific for Pocket PC Any suggestions on how to have common code work for both without having to repeat it would be greatly appreciated. ...Show All
Visual FoxPro Using Text To Speech With Visual Foxpro 8 & 9
I am writing an application in VFP9 that I want to read a field from a Foxpro table and read this information the user. I have had success using the speech5.1 SDK, but only with VB or C#. This application must be written using foxpro. The problem I am having is that I cannot insert the activeX control (OLE object) into my foxpro form. The Insert Object window will not allow me to add sapi.dll to my form. Any suggestions Yo chief I'm very interested in getting this code to run, but I get an error and have no idea what it means! Type Library C:\Program Files\Micr ...Show All
Visual Studio Express Editions Clarification
i've been hearing a lot about the express editions of the visual studio suite. and i've been looking up ome info on the microsoft web page. i just want to make sure i understand this correctly. even now, 4-19-06, i can download the express editions for free, and will never have to pay for them they will never expire i can download them and install them on multiple computers simply by regisering each time i can use this for commercial use even if i install them on my desktop at work thanks for your time. I think that is how it works, I just started using the express editions of visual web developer and visu ...Show All
Visual Studio Express Editions Where's the "e-book"?
As one of my "Registration Benifits" listed, I see: E-book - Download an electronic version of MicrosoftR Visual C#R 2005 Express Edition: Build a Program Now! from Microsoft Press I've searched High and low -- Where do I find this hi, if you registered your product you can check this link https://connect.microsoft.com/downloads/downloads.aspx SiteID=40 hope this helps ...Show All
Windows Forms ClickOnce - Update from a Mapped Drive
Hello, Is it possible to have ClickOnce look at a mapped drive for updates instead of a complete UNC path Thanks, Hei ClickOnce should not have a problem. But are you sure that all your users of the app are going to have the location mapped to the same drive all time -thanks Sreekanth ...Show All
Visual Studio Tools for Office Excel SaveAs not working properly
I am programming an excel spreadsheet in c#, and catching the BeforeSave event on the workbook. I want the saveas dialog box to appear each time save is saved. I have written the code as such: if (!savingfile){ savingfile = true; Cancel = true; SaveFileDialog dialog = new SaveFileDialog(); if (dialog.ShowDialog() == DialogResult.OK){ SaveAs(dialog.FileName, Excel.XlFileFormat.xlWorkbookNormal, missing, missing, false, false,Excel.XlSaveAsAccessMode.xlNoCh ...Show All
Visual Studio 2008 (Pre-release) DirectShow and video capture in Avalon?
Should I still use directshow to create a video capture application in Avalon If yes, where can I find the reference. If no, what should be the new alternative Thank you. Yes, this would be a way to get things done. But it's limiting, I can output only on a rectangular surface, whereas with MediaElement you can output to various shapes, and both in 2D and 3D. This is what I'm looking for. ...Show All
Visual Studio Express Editions Visual Basic Beta1?
Is there any way to download Visual Basic Express beta 1 back again I had much less errors and I could make new projects! The beta 1 version was much better. So maybe I could uninstall beta 2 and install beta 1 instead again. You need to remember that there is always going to be a number of changes between Beta 1 and Beta 2. You can't develop in Beta 1 forever. Bite the bullet and more across to Beta 2. Are you having any issues in particular ...Show All
SQL Server Filtering on Page Group Data
I have a report that draws data from a SQL Server database. I set the report to page the data based on months from that database. Now that i can see each transaction for the month on each of the 12 pages the report creates, i want to limit each page to show me just the TOP TEN for that month. For instance. In January, i see 35 transactions. I only want to see the top ten for January, and I still want to be able to see all of the other months on the 12 different pages. I assumed that filtering would be the way to do this, considering there is a filter option for Top N. But whenever I set that filter to Top N and the value to 10 for A ...Show All
Visual Studio How to build VS solutions/projects through the command line
I have found others with the same question, but couldn't really figure out the solution. My problem occurs when I try to build a VS solution or project through the msbuild task. The solution or project itself is build and copied correct, while the referenced projects are build and copied to their normal output dir (the one specified in that project) instead of the output dir of the project that are referencing it. In my case I am trying to build a number of testprojects and then running them. This crashes because mstest is not able to find the referenced projects dll. I really would like to avoid editing the VS projects in order to ...Show All
