Yuki Chen's Q&A profile
Internet Explorer Development Customize your settings window is blank
Hi everyone has anyone has this problem. i was using IE 7 Beta with no problems and then was asked to upgrade when the version came out. upon updating i have the customise your settings page (http://runonce.msn.com/runonce2.aspx) coming up with a blue background and nothing else. I have done everything that microsoft sent me but no joy. It means my Homepage will not come up until this has been set. but as i can not see it i can not set it up . i can just type my website in and then it seems ok its just i can not use the homepage setting even though my home page is set as before. This is driving me to dispair and i am ready to dump the thing but then i remembered i need IE for my website and other websites to view HTML and normal view as mo ...Show All
Smart Device Development Deploying CF Project to run using Full Framework for Desktop
Hi everyone, I currently have a CF project in VS2005, but I would like to know how to change the project to target the full .NET Framework instead. My goal is to have my CF app run on the desktop. I have searched for similar questions, and somebody mentioned that a Deploy to Desktop feature was in the VS2005 Betas but was removed for RTM. Supposedly the feature is slated to reappear in the VS2005 SP1, but I couldn't find it in the latest Beta of SP1. Does anybody have any suggestions Thanks! Kirupa You can run NETCF executables on desktop as is unless particular executable uses any NETCF specific classes or P/Invokes CE specific DLL(s). Attempt to run such application on desktop would result in TypeLoadException since NETCF ...Show All
Visual Studio 2008 (Pre-release) gridview
Hello, I have a bunch of listviews that have the exact same shape but use different itemssources. So I thought I would try to share the gridview between the listviews. I put the gridview the resources and tried to use it but as it turns out two listviews can't share the same gridview. I was wondering is there a way around this Or do I need to wrap the listview in a user control Thanks Houman Hi Lee, Yes that's exactly what I mean, they have the same set of columns. And the columns have the same displaymemeber binding. I have 2 list views (source list view, target list view) and two buttons (add, remove). When I click the add button the selected elements from source list view is mov ...Show All
Visual C# Picking at random, with varied probabilities
One part of a program that I'm writing requires me to pick an object at random out of a collection. Each object has a different weight (probability), currently stored as a Double, associated with it, and the number of objects varies. The total probability, 1.0, is equal to the sum of the weights of all the objects in the collection. Is there a commonly used, efficient algorithm for picking random objects in this situation Currently, the only one I can think of (and this is pretty tedious): Load the keys and weights of the collection's objects into structures inside an ArrayList. Sort the ArrayList in ascending order, by weight. Add on another value (CumulativeWeight) to each structure that represents the sum of all the weights up to and ...Show All
SQL Server MDX count customers with turnover over x dollar
Hello Sirs, the subject might sound weird, sorry for that. Here is the the correct question: I have a Cube "Sales" with various dimensions and measures. To get a distinct count on my customers I added a new cube "DCCustomer" with the same dimensions as "Sales" and a distinct count in the numeric field "CostumerID" as the only measure. After that I combined the two Cubes to a Virtual Cube in Analysis Services 2000 to get both the measures of "Sales" and the distinct count measure "DCCustomer" from "DCCustomer". Now, I would like to have a distinct count of customers that have not only produced turnover but turnover above e.g. 150 $. What would be the MDX-Code ...Show All
Windows Forms DataGridView Datasource property
ArrayList Ips=c1.getIPs(); dataGridView1.DataSource = Ips; The getIps returns an arraylist with count 1 the content of arraylist 0th element is 'Pencil'. but in grid its displaying the length of string i.e 6 rather than displaying Pencil.What should i do to display the content of arraylist rather than the length. regards DataGridView columns are bound to properties of the object, contained in the list. String only has one property (Length), so I don't think that's possible with the string datatype. One more thing: have you considered using generic List<string> instead of ArrayList Andrej ...Show All
Visual Studio Brace Matching Limitations in MPF
Hi, I've got a problem with the MPF and brace matching. BraceMatch and TripleMatch are private classes in the MPF. That is not a problem if your language is like C# and other Microsoft languages and there is not need to extend the brace match mechanism, but what about languages that have four or more parts. In Eiffel there is the loop construct: <Loop> ::= from <Compound> until <Expression> [ invariant <Invariant> ] loop [ variant <Variant> ] <Compound> end ; I cannot implement QuadMatch because BraceMatch is not accessible from other external assemblies. In addition I cannot override Source.GetPairExtends to handle quad matching because I cannot author MatchQuad and ...Show All
Visual Studio Team System Reporting server not seen by other machines
What could be the problems that other machines cannot see the RS that i can view on that server Regards Alu i can get to see the browser to see the webpage in IIS on my local machine now....(after playing around the permission..s) and could see the folders and reports. But on the client machine i have disabled the logon diagloue and see the homepage but somehow i could not see the folders as I would see from my local machine. mmmm Regards Alu ...Show All
Visual Studio Express Editions keyboard event
If it's possible id like a "Do Until" loop so that it loops until a key is pressed, any key at all Here is one way: Private Done As Boolean = False Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Done = True Me.KeyPreview = True Do My.Application.DoEvents() Loop Until Not Done Me.KeyPreview = False End Sub Private Sub Form1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles Me.KeyPress Done = False End Sub ...Show All
Visual Studio Express Editions Is there a way to compact a database through VB Express?
I have an application with an Access database as the source of the data for my application. I know that within Access you can compact a database. But is there a way programmatically within VB Express to compact the database If possible, I would like to avoid calling an Access command as some of my users might not have Access installed on their computers. Also, what about a routine that when a user clicks on a button it will allow the user to save a backup copy of the database Thanks, John I haven't tried this yet, but in your example, you rename the file to something else. Is it possible to compact it to the same name If not, then I will need some way to replace the old file so the program reco ...Show All
Windows Search Technologies Failed to remove the old catalog
I uninstalled the Office 2007 beta and just installe dthe latest version from MSDN (RTM). After starting Outlook it said that it required WDS 3.0 (RTW) so I nstalled that. Now I get this in the event log: The Windows Search Service has failed to remove the old catalog. Internal error <0,0x80070003>. WDS tells me that 0 items are searched and that indexing is not running. The usual repairs don't work (start/stop the service, reboot). Any idea where these catalogs are located so that I can delete them manually If you go to the Windows Search shortcut (mag glass) on the bottom right; right click and select "Windows Desktop Search Options" then select "Advanced". The location of the ...Show All
SQL Server Dependencies not correct with temporary tables --> replication is failing
Hello all, here is a stored procedure I have: CREATE PROCEDURE spU_GUI_AppliqueConditionFinancementPourGuichet ( @GuichetId int, @Validateur nvarchar(40) ) AS CREATE TABLE #tReservations (ReservationId int) IF (dbo.GetSiGuichetEnRegle(@GuichetId) = 0) INSERT #tReservations EXECUTE spU_GUI_AppliquePerteFinancement @GuichetID, @Validateur ELSE INSERT #tReservations EXECUTE spU_GUI_AppliquePerteAgrement @GuichetID, @Validateur SELECT GR.Id, dbo.FormateNoms(GR.Name) AS Names FROM #tReservations LEFT JOIN AnotherTable GR ON GR.Id = AnotherTable.id DROP TABLE #tReservations GO The creation is ok but when I look to the dependencies, I see that it depends on GetSiGuichetEnRegle only. For me, it shall also depend on ...Show All
SQL Server problem with DtsTransferProvider
I am trying to transfer a database from one SQL Server 2005 server to another. TransferData method completes successfully (and all tables are available in the destination) if the source db contains only default database users (namely dbo, guest, sys). Then I repeated the same process after adding a database user (named 'testdbuser') to the source database, TransferData method threw the following exception, but the database was created in the destination (tables were not available in the destination) ERROR : errorCode=-1073548784 description=Executing the query "CREATE USER [testdbuser] FOR LOGIN [BUILTIN\Admini..." failed with the following error: "User, group, or role 'testdbuser' already exists in the current database.". Possible failure ...Show All
Smart Device Development Upgrading from Beta 2 of VS 2005 to RC / RTM Version - What device device developers should know
We were looking at some scenarios where as a device developer you had VS 2005 Beta 2 on your machines. Then you decided to un-install Beta 2 and install RC candiate. There are a few things you should be aware of. 1. If you had installed the DMA Transport Update , please make sure remove that before you un-install anything else to clean your machine. We are also in the process of adding removal of this Patch to the un-install tool that VS Setup team has been working on. 2. You would also need to clear your old data store and saved state. Here are some symptoms of having older files on your machine. 1. Error message as soon as the Device Emulator starts Failed to open the VPC Network Driver. Verify that the driver is insta ...Show All
SQL Server Aggregate Count Zero or NULL - multiple measuregroups vs. single measuregroup
Hi Quess this fact table (100.000 Records a Day) Dim1 | M1 | M2 ---------------- A | 1 |NULL B |NULL| 2 C |NULL|NULL D | 3 | 4 I create a cube on top with four measures - for each a LastNonEmtpy and a count measure the result is Dim1 | M1*| M2* *)=Count measure ---------------- A | 1 | 0 B | 0 | 2 C | 0 | 0 D | 3 | 4 Is there a way to get a null value instead of a zero value in SSAS2005 (Build 2153) I have already thought about create a measuregorup for each meausre with a view related which filters the null value rows - but I guess the cubesize will increate much if I have a measuregroup per fact measure, because the dimension information needs storage too - I guess I need the count measure for calculati ...Show All
