drugshrink's Q&A profile
Architecture Inheritance
I have a Party which can be either a Person or a Company. Implemented with inheritance Party is the super class and Person and Company the subclasses. What to do if I want both the Company and the Person to be able to play the roles of Customer or Partner under different circumstances and I don't want to duplicate information or code Examples: Party A, a Company in the role of Partner sells an order to Party B, a Person in the role of Customer At a later stage Party B, a Person in the role of Partner sells an order to Party C, a Person in the role of Customer and even later Party B, a Person in the role of Partner sells an order to Party D, a Company in the role of Customer In these examples Party B should be able to b ...Show All
Software Development for Windows Vista Bug with Vista and InkAnalyzer
Hello everybody, this is the real Problem of the thread I posted some hours ago. I had problems with painting ink into a Bitmap - I could'nt see any ink. But it was no problem of the painting-prodecure itself - there really was no ink. ;) Before my program draws the ink into the Bitmap it reads the RecognizedString from the used InkAnalyzer. And since Windows Vista this InkAnalyzer works abnormal - it deletes every stroke out of the InkOverlay-Object whenever I call the GetRecognizedString-Method of the InkAnalyzer. This happened not when running under Windows XP. Is this a known bug Or is it a feature ;) Well, no. I guess it's a bug. Is there any workaround beside not using this method anymore Will there be an upda ...Show All
Software Development for Windows Vista local service problem
I designed a local service for externaldataexchange but when trying to set the callexternalmethod activity's interface type, cannot see the my service. what can be reason thanks Hi, Madenci I'v had the same problem before, and the only thing that helped was rewriting the interface. I'm not sure, but I think it's a bug in the designer. Correct me if I am wrong. ...Show All
SQL Server How to get an absolute sum for all values in a certain level in a hierarchy
I am looking at a cube using excel. I have added two dimensions to row fields and one to the columns (date). Is there any calculation that will return the sum of a specific measure for one of the dimensions regardless of what is selected for the second dimension The dimension in question is a hierarchy and I want to get a sum for a certain level in the hierarchy. I have tried SUM with ANCESTORS but it still only returns the sum as constrained by values selected for the second dimension. Here is what I was trying: CREATE MEMBER CURRENTCUBE.[MEASURES].[Portfolio MV] AS Case When IsEmpty([Measures].[Market Value]) Then 0 When [Portfolio].[Portfolio Name].CurrentMember.Level Is [Portfolio].[Portfolio Nam ...Show All
Visual Studio Express Editions How to generate user instances in SQL Server
Hi, I'm a newbie in C# and SQL Server and I'm trying to add a SQL Database within Visual C# 2005 Express Edition . But I receive a message that says: "Generating user instances in SQL Server is disabled. Use sp_configure 'user instances enabled' to generate user instances." But how do I do that I have Management Studio Express installed. Best regards uh duh....about instances http://msdn2.microsoft.com/en-us/library/ms345149.aspx Security By default, SQL Server Express is configured to protect your data. As you install, you're given the opportunity to further tighten security or loosen it depending on your requirements. One of the first decisions you'll have to make is to choos ...Show All
.NET Development Retreive incoming IP Addresses?
Is it possible to get the incoming IP Addresses and display them in a listview Thanks, Loopback address prefix would only give you connections made to your machine to the loopback address i.e. connections from your machine to your machine. This would not help you. You dont need a web server, just a way to monitor traffic and connections to an existing web server. ...Show All
SQL Server Remote Database Management Through LDAP tools
Hai All How to insert and delete records from a table in the remote database " I want it to be done through a tool that used LDAP Servers. I want tools for the LDAP . Thank u Advance Regards Sunil ...Show All
Visual C# WM_DEVICECHANGE msg for CF/SD card reader
Hi, I am working with a CF/SD card reader. My application needs to get notified when a new card is inserted into the card reader. I have overridden WinProc and listening to a WM_DEVICECHANGE message - and it works fine when attaching an USB flash memory, my camara or inserting a CD. But I am missing an notification when I am inserting a CF or SD card. Windows itself seems to get informed by this, because the drive label changes to the volume name of the card and autoplay is started. The card reader is similar to a CD/DVD drive: one drive for each card type, present in the Explorer regardless if media is inserted or not. What do I need to do to get a notification Regards, dezet. ...Show All
Visual Studio 2008 (Pre-release) WPF - Forcing software rendering for multi-threaded rendering (multi-core advantage)
Here is a good one for the experts (especially the WPF team): Consider a scenario such as this. 1. A control needs to be rendered and stored as a bitmap thousands of times. 2. Each rendering will be different, and all images will be saved. 3. Since each rendering is made to be independant, the control and all data can be created on its own thread, which allows multiple renderings to occur at the same time. Thus performance is improved significantly for multi-core systems. I already have such a system/design where this works using .NET 2.0 and winforms (GDI+). Since GDI+ uses the CPU, everything is great, I see a 70% performance increase for each additional core. However, since WPF will attempt to use hardware rendering, I assum ...Show All
Visual Studio 2008 (Pre-release) CollectionViewSource Problem
Hi Everyone, i hope someone out there is able to help me. I'm stuck with the CollectionViewSource of a ListView/GridView. Code for ListView and CollectionViewSource can be seen below. At Runtime i am adding ListViewItems to the grid. The Content of a ListViewItem is a XMLNode. The content of the XMLNode is as follows : <z:row ows_LinkFilename="Dok1.docx" ows_DocIcon="docx" ows_Modified="2007-02-09 10:29:37" xmlns:z="#RowsetSchema" /> How do I have to set the Source Property of the CollectionViewSource Object. This is driving me crazy!! Whatever i do i am not able to see the listview grouping !!! I greatly appreciate any help on this !!! TIA, Oliver I have the following ListView: ...Show All
Smart Device Development Enabling num Lock programatically
I am writing a program for a PocketPC that has a built-in keyboard using eVC, and I was wondering if there was a way to activate the number/symbol lock key programatically As it is, the user has to push the orange key on the keyboard twice to enable the locking feature, I would prefer to be able to enable it in my program so all the user has to do is type the numbers. Thanks. Israel Brewster Computer Suport Tech Frontier Flying Service, Inc. 5245 Airport Industrial Wy Fairbanks, AK 99709 (907)450-7250x293 Israel Brewster wrote: So I just tried using that value (the 0x00008065 one) for the key code, but it still returns a value of 0, regardless of the state of the key, and they keybd_event fun ...Show All
SQL Server Company Dimension
We deal with multiple vendors who provide us information via text/xml files. Vendor A may provide financial data, vendor b provides litigation data, vendor c provides ratings data. Our current structure has databases for each vendor with its own company table which basically makes all this data disconnected. Of course each vendor has its own proprietary company id to make records unique. All of the data is based on companies so the grain of data would be at a company level. I would like to be able to link this information together by creating a dimensional model that has a single company table (DimCompany) and has facts populated based on the type of data we receive. Would this be the right sequence of events 1. My initial load (h ...Show All
Silverlight (formerly WPF/E) How to redirect on XAML file to anotherXAML file in same project
Hi, How can i call one xaml file from another xaml file in same project . Example : Suppose in my First.xaml file have one button .onclick of this button i want to show second.xaml file how i can achive this by using javascript as a code behind. Thanks Thanks for reply. As u said to clear canvas i know it ,but i want to change canvas content from one xaml file to another xaml file because xaml file contents are too heavy to create dynamically . If u know how to load a xaml file in canvas dynamically please send me it with simple code . Regards Dinesh ...Show All
.NET Development Run .NET executable over the network
What do I need to do to run a VB .NET executable over the network I have written a simple VB .net program. It works fine when executed locally, but simply will not run when executed over the network. For example, when connecting to the folder via the UNC path (Start -> Run \\ServerName\ShareName ), and then doubleclicking on the executable in the Debug or Release folder, the mouse changes to a wait icon for a second or two and then returns to normal. The program never runs. Event logs don't show any log entries related to this program. Several google searches have hinted at security (that's why I'm posting here). I've granted full Control to Everyone to the Share and Full Control to Everyone for NTFS (it's a test environment), ...Show All
Windows Forms how to disable this button?
I am openning frmOpenFile using a button on frmPatientDashboard (which is an MDI child of frmMain). when clicking the button open on the frmOpenFile I am passing this code so that it will disable the button (Open File) on the MDI Child because the file will be already open. This is the code: frmPatientDashboard PatientDashboardForm = new frmPatientDashboard (); PatientDashboardForm.toolOpenCloseFile.Enabled = false ; but the problem is that nothing is happening!! no error and the button will not change to disabled ...Show All
