John Freddy's Q&A profile
Visual C# Overriding static methods?
Consider the following situation: Two classes, B and C, share a lot of properties. They therefore both inherit from a common class, A. Of course we can call B(...) and C(...) to get a single B- and C instance respectively. On both classes I now want a static method, GetAllInstances(), that returns a List of all possible instances of the class. That is: The static method B.GetAllInstances(...) should return a List of all possible B-instances and similar with C. The code to produce all possible instances are very similar for both B and C and only differs on simple parameters, say a string named myDatabaseTableName. Therefore it is obvious to implement GetAllInstances() in the base class A and let it get the myDatabaseTableName property from ...Show All
SQL Server Cannot resolve index for fact table
Hi, When I am trying to deploy or save the project with cube I am getting this error. Property accessor 'StorageLocation' on object '339f70f7-5d30-4c38-97c8-30b675640b24' threw the following exception:'Cannot resolve the 'Fact Table 2' index because the setting does not support the '2' nesting level. Make sure that the product is installed properly.' (Microsoft Visual Studio) Also I have this error in "StorageLocation" property for partition. Any ideas Thank you for your help. One idea is double check the value for the StorageLocation property. What value did you have for it. Make sure it points to the valid folder on server's file system. Edward. -- This posting is ...Show All
Smart Device Development Which version of studio please
Which version of MS Studio do I need for programming .NET compact MS Standard 2005 or pro Visual Studio 2005 Standard fully supports device development. ...Show All
Visual Studio Team System Problem with running Continuous Integration
I am going to be running CI, and I forsee some problems that are going to arise. I am going to be having approximately 26 team build projects that are going to be running on CI. If each of those are run say 3 times a day - that will leave me with almost 80 entries in the "integration build", "found in build", "resolved in build" fields. I would like to have these builds ignored, as I have a main build which will "sweep up" all of the work items and change sets. What is the best way to do this fyi, I tried to rename my build to CI but you can't overwrite one with the same name once it has built... Thanks Jason, In particular, I would like a filter that would only dis ...Show All
Visual Basic Visual Studio 2005 Windows Service Starts but Timer does not execute unless in debug mode
This is a very interesting one. I am able to deploy my VS 2005 Windows Service with a release configuration but when I do so, it does not begin to execute the timer until I am attached to the process. The timer is enabled and set to execute every 3 seconds but never does. I am using an account in which the same service works in VS 2003 so I do not think it is permissions. If anyone has any insight into this behavior I would appreciate it thanks... Hi All, I've a simple windows service written using VS 2005. This Windows Service with Timer works fine under XP and not VISTA. Please help #pragma once using namespace System; using namespace System::Collections; using namespace S ...Show All
Visual C# RTC Client API: Problem in making PC-toPhone call application...
I am trying to build a SIPUA client to make PC-To-Phone calls using RTC Client API 1.3 through a SIP Service Provider. The SIPUA Client, however, is not intended to receive any phone calls. I have following confusions: I am using the following code hr = pIRTCClient->put_AllowedPorts(RTCTR_UDP, RTCLM_NONE); If the value RTCLM_NONE is correct as I am not supposed to receive any incoming call Do I need to enable the presence information or add a buddy to make a call Or creating and enabling the profile is enough. [Please remember the application is making only PC-To-Phone calls and not intended to receive any calls]. When I call the following line of code: hr = pIRTCClie ...Show All
Windows Forms multiline problem
i have likes this equation; "label1.text = textbox.text" when my users click my button my form get the index of textbox to label but it arrange auto size for label and enlarge the width of label ;;; but i want this, when text is reached to 10 letter so text must continue to new line; summary i need multiline property in label; is it posssible and if it is yes how can anyone help to me; your sincerely; sorry for my absent-mindedness and novice behavior muhammed; but now it igves to me; Error 1 'System.Web.UI.WebControls.Label' does not contain a definition for 'CreateGraphics' C:\Documents and Settings\Developer\My Documents\Visual Studio 2005\AddNewsModule\TextDisplay.ascx.cs 70 29 C:\...\AddNewsM ...Show All
Windows Forms Dialog Result problem
Dear All, I got a very simple problem where I pop-up a dialog. Then in the dialog I got 2 button so if I pressed submit and close and then I respectively set the DialogResult as DialogResult .OK and DialogResult .Ignore. So in my calling form I set 2 if statements. The problem here my form1 pop up twice which I suspect because of my in both my if and else has a form1.ShowDialog statement. So how can I avoid double pop-up. Thanks. frm1 form1 = new frm1 ( ); if (form1.ShowDialog() == DialogResult .OK) { form1.Dispose(); } else if (form1.ShowDialog() == DialogResult .Ignore) { form1.Dispose(); } store your ShowDialog result into a DialogResult variable ...Show All
Visual Studio Express Editions button control
Hi I want to know is it possible for a button to have multiple events for example: I created a form with two buttons the first button(labeled "show Image") when clicked shows an image that is not visible until the button is clicked, now once it is clicked I want the button to be able to hide the image (and the label on the button to read Hide Image). How can I get the button to do this I hope this is making sense. Please explain how to do this if it is possible. The second button on my form is an exit button. The first button text is show image and once it is clicked I want it to change from show image to hide image and have the image become non visible and the button to change back to show image command. How do I write the co ...Show All
Windows Live Developer Forums Province, Country Polygon
Is there any way I can use a predefined polygons Such as country boundary or even province boundary Thanks! I really need to make a list of the 100 things I'd like to do in VE when I have free time. No I havn't but that said I was talking to a GIS speacilist that was playing around with map engines, he had the whole world from a free dataset, so it must be availible. There are several issues, firstly its going to be a huge amount of data, secondly there is another thread about the performance limitation of too many polygons / polygons with too many points. I'll send an email and see what I can find out. John. ...Show All
SQL Server use of CASE in script
I have been working on a job that is supposed to do the following: 1) Imports last name, first name, date of birth, ssn, medical record number, and enterprise id from TAB seperated text file an example of the format would be ENTID<tab>LAST<tab>FIRST<tab>DOB<tab>MEDREC<tab>SSN 2) Looks up the person in the import system and inserts a primary key value that represents the person into another table, along with some id numbers representing the system the file originated from. This is to identify people in one system that have been in the other as well. I have been working on a solution that imports the text file to a new table, then a cursor that reads each record, looks up the person, and then inse ...Show All
Smart Device Development Device Emulator standalone / VS2005 embedded
Is there any way to create some redistributible package containing a preconfigured Device Emulator and some application to launch Double click the application should start the emulator and launch the application... To make life easy for the "non-programmers" that would like to try/show some PDA application on an PC (without VS2005) this would be nice. And, how to start the VS2005 emulator and load some exe from the command line Some example please... Tanks! I will try this, but I guess I can't aviod the steps of having to install the standalone_emulator_V1.exe and efp.msi (to get network capabilities)... ...Show All
Windows Forms pRINT PROBLEM IN AJAX
Hai, Im wrking on AJAX and Reportviewer.Im Having a webpage with a UpdatePanel,Button and a ReportViewer within Updatepanel.Whenever i click on Button, report gets loaded in updatePanel. Report gets Loaded Successfuly in Updatepanel.But whenever i click on PrintButton of reportviewer (Which is Builtin within in reportviewer control),Im Unable to Get Print-Dialog .Im not able to Print report..... Whenever i remove the UpdatePanel ,Im able to Print report .(thru report viewer) Is it not possible to Print whenever i try to keep Reportviewer in Updatepanel. Can any one plz tel me a solution for this............it is very Urgent ............ Thank you in advance............ With regards, Mahender 9989302525..... _____________ ...Show All
SQL Server Get date according to particular timezone
Hello, I am struggling with one algo i.e. I want to retrieve the date according to time zone I have table called TIMEZONe in which i have the information about the hours difference (+12 to -12) from GMT... now my scenario is that I want to get the date, using information from timezone area table (time difference from GMT), of any particluar time zone can any one tell me, how will I able to achieve this task. for example: it 4:00 AM in the mornign in GMT TIME and date is 11-08-2006 but in US it 11:00 PM and date is 10-08-2006 Note: Server date is set to GMT (System date) regards, Anas you can use the script task to achieve what you're attempting to accomplish. i suggest that you employ th ...Show All
.NET Development Try-catch doesn't catch interop exception
With .NET Framework v2.0, if Photoshop isn't installed on the user's system when my code attempts to open it, this .NET runtime exception is thrown: Microsoft .NET Framework Unhandled exception has occurred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately. Retrieving the COM class factory for component with CLSID {B827BBBB-1621-4064-812B-0D759D04A008} failed due to the following error: 80040154. I've placed the code to open Photoshop in a try block and a user-friendly explanatory message box in the catch block. The exception isn't caught and the user sees the .NET runtime exception message. The application works fin ...Show All
