Wong Shao Voon's Q&A profile
Windows Search Technologies Why does WDS require Terminal Services?
We have disabled Terminal Services via GPO due to increase security. When trying to install WDS 3.0, I get an error: "Setup has failed. Make sure Terminal Services are enabled before re-running setup." Even after enabling Terminal Services for the install, every reboot requires me to go in and turn Terminal Services back on or the Indexing service will not start. Why is TS required for this Any ideas for getting around this WITHOUT pulling Terminal Services disabled out of the GPO I would like to second this. I can understand why you are using Terminal services to create the single index, but as an administrator, this is painful, and the problem you are trying to solve is irrelevant. ...Show All
Visual Studio 2008 (Pre-release) how to change selection highlight color [at hover and selection]?
i don't know what i do wrong but i can't find a way to change the selection color from the standard system color to for example a linear gradient brush. My try which doesn't actually work as desired is the following: <Menu Width="30" HorizontalAlignment="Right" Background="White"> <MenuItem> <MenuItem.Style> <Style> <Style.Triggers> <Trigger Property="MenuItem.IsMouseOver" Value="true"> <Setter Property="MenuItem.Foreground" Value="White" /> <Setter Property="MenuItem.Background"> <Setter.Value> <LinearGradientBrush StartPoint="0,0" EndPoint="0,1"> <LinearGradientBrush.Grad ...Show All
SQL Server Adding 'Other' segment/slice in a pie chart
Hi guys, I am creating a pie chart report from a cube . This report may contain unknown number of segments. Here is the thing; if more than 1 data slice is generated with a value less than 5% of the total, then a segment labelled 'other' will be generated, and data from all slices with value < 5% will be added to this 'Other' segment. Is it possible to implement this functionality in the report layout level with out writing a complex MDX query If this is not possible, can anybody give me a sample MDX query which implements similar issue(i.e. 'Other-ing' rule.) For your information, this feature can be easily implemented using a third pary software such as 'Dundas chart for Reporting Service'. However, my client don't want to bu ...Show All
SQL Server Expression problem in Model Designer
Hi I created a model on a rational schema (sql server). It also contains dates. That datetime is split up into the date itself, daynumber, weeknumber, monthnumber, ... I want to create an extra field like dayName or monthName, based on those day/month - numbers. How do I do that I can't seem to find the right functions in the Model Designer who do that. tnx I'm posting some more information because nobody is responding ... Please take a look at: http://users.telenet.be/master/modeldesigner/modeldesigner.html It contains four images. Image1 : The fields of my model showing the date and the expressions on that date (like date day, date month, ...) Image2 : This is the report I get when I want ...Show All
Visual C# Not able to find the function name in the assembly through reflection.
Hi, I have an interface and some functions inside it. I have a class which implements this interface and one function prints "Hello world." and one property returning one integer value. Now I have compiled this class into an assembly. After this I have created one console application which loads this class and try to find out the function and property. I am using this code. Assembly a = Assembly .LoadFrom( "E:\\ClassForInterface.dll" ); MethodInfo method = a.GetTypes()[0].GetMethod( "INonUITests.RunTests" ); ParameterInfo [] parameter = method.GetParameters(); foreach ( ParameterInfo info in parameter) { Console .WriteLine( "Type of the parameter is :" + info.ParameterType); Console .ReadLine(); ...Show All
Visual Studio Team System During a merge, the "Building Change Summary" goes into infinite loop
My machine hangs while resolving conflicts during a merge. Here's what is happening: I initiate a merge between 2 branches It correctly identifies the conflicting files. I select one of the conflicting files and click on "Resolve" button. The "Resolving Conflicts" window comes up saying that its building a change summary. This process of building change summary keeps spinning.....and my machine hangs. The resolving conflict operation never ends. Note: This only happens for some files and not others. I tried doing this from multiple machines and got the same result. Is this a known problem, bug Thanks. It cannot happen during a "tree" merge, i.e. whe ...Show All
Smart Device Development System.Console.ReadLine() always return lowered case string -_-!
Hi, I have a console application that takes user input: seq = System.Console.ReadLine() System.Console.Write("TTT {0}", seq) Readline() somehow always converted the string into lower case so "ABCabc" would become "abcabc" which is not what I really want Is there any way to take user input as it is Thanks, Hi That is a Moxa UC-4708-CE device. It is a industrial device which has WinCE 5.0 embedded. It supports CF2.0 . I basically compiled the above simple Smart Application and upload it onto the device's CF folder and run it. Since this UC-7408 has no display, I am connecting it using HyperTerminal via comm port. I run the application under HyperTerminal and get the abo ...Show All
Visual Studio Express Editions Compiling Boost in VC++ 6.0
I would like to know how to compile Boost Library in VC++ as there are only header files(.h files) provided and no implementation files (.cpp files). As almost all of the Boost library is template based it is usually just defined in header files. So all you need to do is to just include the header file you need. Note: trying to use Boost with Visual C++ 6.0 can be a real pain as the support for templates in Visual C++ 6.0 is poor. If you wish to use Boost I would upgrade to at least Visual C++ .NET 2003. ...Show All
Software Development for Windows Vista StateMachine invoke StateMachine
Hi I have a question about invoke StateMachine There are two StateMachine Workflow : parent Workflow and child workflow . one state of child workflowevent has EventDrivenActivity. the question is : how can I Invoke the child workflow and Call EventDrivenActivity in the child workflow thanks Steve, I need to use InvokeWorkflowActivity to call an XOML only workflow. I know how to do it via CreateWorkflow, but am not sure how to do it with this activity. Below is the code I probably need to substitute for the XOML file, Rules files, and paramsCollection: this .invokeWorkflowActivity1.Name = "invokeWorkflowActivity1" ; this .invokeWorkflowActivity1.TargetWorkflow = typeof (WorkflowCon ...Show All
Visual Studio 2008 (Pre-release) Make a special listing...
Hello! I must make a "ToDo Application" with Windows Presentation Foundation and I want to list the tasks like this : http://test.duotone.ch/TaskList.gif Do you think it is possible And how can I make that Thanks ;-) PlaTyPuS If I understood correctly, you can use listbox, group the items and use an ItemTemplate to display information in that format. this section in sdk should help ms-help://MS.MSSDK.1033/MS.NETFX30SDK.1033/wpf_conceptual/html/145c8c3f-dbdd-4d0d-816f-90b35eba7eda.htm ...Show All
Visual Studio 2008 (Pre-release) Windows service , WCF and MSMQ
How can i use WCF on top of MSMQ to send and receive messages from one C# "windows service" to another C# windows service any articles that might help i got hold of some WCF queing stuff but those are for WCF services/clients.. in my case i need to use with windows services... If all the locations (clients and services) of your application use WCF and you are only interested in using MSMQ as a transport, the NetMsmqBinding ( http://msdn2.microsoft.com/en-us/library/ms752217.aspx ) is your best option. The binding supports standard WCF contracts and is not limited by backward compatibility requirements as the MsmqIntegrationBinding (the MsmqIntegrationBinding is used in cases where eithe ...Show All
Architecture DLL expertise
Is there a book or consolidated web resource that provides advanced details of DLLs Some of the things I want to study in depth: 1) binding an executable to a specific version of DLL (that is, to resolve the addresses of imported functions at compile-time). 2) pre-mapping of DLLs to different fixed addresses. 3) relocating DLL code, as it is loaded from disk, can make it potentially non-shareable between processes. What exactly causes this 4) Can a DLL referenced in C++ code with #import be either explicitly or implicitly linked, or does it only permit implicit 5) In C++, when is it appropriate to use "#import" My own guess, regarding question 5, is that #import has two purposes: 1) To allow the registry to ...Show All
SQL Server OK, Now a datetime Question
Trying to select from invoices where date is between today and today -30 days WHERE Invoices.Date< DATEADD (d, -30, GETDATE ()) gets no results Does the invoices.date contains date & time Is both date inclusive where invoices.date >= dateadd(day, datediff(day, 0, getdate()), -30) and invoices.date <= dateadd(day, datediff(day, 0, getdate()), 0) ...Show All
Visual Studio Tools for Office Two questions for creating Outlook AddIn with VSTO
Hello, I am using VSTO to create Outlook AddIn and have following questions: 1) In the calendar view, I want to find the time range (startDateTime and endDateTime) when a user selects certain range using mouse. Basically, I want to allow a user to select the time range with cursor and group all the appointments that fall within that time range in a group. I looked extensively through OOM but couldn't find any way to determine the time range for calendar selection. 2) Is there any way to modify (e.g. add an additional menu item) in the right click conext menu that pops up on the calendar view I can create additional toolbar and menubar at the top, but couldn't find any way to add additional menu items in the popup context menu. ...Show All
.NET Development convert any font into unicode
hi forum How to convert any font into unicode Character in .Net . thanking you in advance Your question doesn't make any sense. All characters and strings in .NET are Unicode. Fonts are a collection of glyphs for Unicode codepoints (characters). A Windows font typically only support a small subset of all Unicode codepoints. ...Show All
