Mark Leung's Q&A profile
Smart Device Development MediaPlayer host sample freezes on Blackjack & Dash?
I am trying to use the sample CEWMPHostML from: http://www.microsoft.com/downloads/details.aspx familyid=46ba698a-c00d-4b90-9177-460854f1b57c&displaylang=en My program based on that sample works in the emulator and I believe on most devices, but locks up on the Samsung Blackjack and T-Mobile Dash. Is this a CPU related problem or Media Player control problem or what Can anyone with one of these devices replicate this I tried both the Smartphone 2003 and Smartphone 5.0 targets. If anyone is able to test it on a Dash or Blackjack and get it to work, please let me know. I'm not certain it is failing on the Dash, only got one report of that, and several for the Blackjack. I have not been able to n ...Show All
SQL Server Problem displaying data the way i want on a report- pls help!
I have output from a query in the following format: metric value abc 1514.98 def 878.95 ghi 618.98 I need to present a series of ratios on my report based on set formulae: eg liquidity ratio= abc/ghi*100 gearing ratio=def/ghi*100 etc Basically I need to be able to reference both the metric and value where I want on the report. Any ideas Interesting that I am getting a similar error and it doesn't look like my previous reply will fix. Will have to investigate further. There could be a security policy setting change required. ...Show All
Visual Studio Team System unused objects
Is there any way to list the objects that are no longer referenced anywhere in the database Many times it is useful to check where an object is referenced and it is used at all. Something like caller/callee graph. Thanks, Martin Kulov http://www.codeattest.com/blogs/martin Dependancy graph would be a good idea. If Gert misses this - submit it at http://connect.microsoft.com/visualstudio/feedback -Jamie ...Show All
Visual Studio Team System How to segregate multiple TeamBuild projects?
We are currently at a certain version (1.2) and have multiple solutions, all which need to be built separately. So I have a separate TeamBuild for each. But once we move to next version I will have to recreate the TeamBuild project files for each of these solutions. The TeamBuilds node in Team Explorer will be extremely cluttered with all these projects. Is there any way to create a folder beneath the 'Team Builds' node in Team Explorer so I can group my builds by version Also, how do I delete an existing TeamBuild project TIA! Hi DQM - Just to get more context into your scenario: 1. Why do you need to build each of the solutions separately Can we build these together but drop the binaries in separate folders 2. Would you c ...Show All
Visual Studio Tools for Office VSTO 2005 SE + Global Addins + SmartTags
As I understand it, global add-ins for VSTO 2005 SE do not simplify the creation/management of SmartTags like VSTO 2.0 document level customizations do. Are there any plans to beef-up SmartTag support for global add-ins for VSTO 2005 SE You are correct: VSTO 2005 SE does not add any new functionality to support SmartTags. Of course, if you install VSTO 2005 SE on top of VSTS or VSTO 2005, you will have the document-level support for SmartTags available. We did consider adding application-level support for SmartTags in VSTO, but we had to balance this against the need to make sure we ship VSTO 2005 SE at the same time as Office 2007 releases. It is very important for our customers to be able to build solutions based on Office 20 ...Show All
Visual Studio 2008 (Pre-release) Stream Based Data Processing using LINQ
I have been very excited about the new Object Query support in LINQ especially so when I realized that it implemented Lazy Evaluation since this is essential to implementing stream based processing however I am now running into an old problem that I have had with templates from 2.0 onwards and which has preented me using them extensiveloy in my work. This is the problem with doing simple arithmetic with a templated object. I notice that in the code expansion for a simple object query (Wes Dyers Blog - How Linq to Objects Queries Work) He shows the innerworkngs of a query as expanding to the following. using System; using System.Collections.Generic; delegate R Func<A,R>(A arg0); static class Program { static void ...Show All
SQL Server I need a duplicate "empty" database created from an existing "populated" with data. sql 2005
I need a duplicate "empty" database created from an existing "populated" database with data. I need this to be created on a new Server not the existing box. Any suggestions Sorry let me explain better what I need. First off we have a win2003 sbs server with MS Sql 2005 running on the same server. I am hosting a web application in IIS that writes to a database in the sql server, the database has near a hundred tables with many fields in each. The tables are full of data records. I need to replicate the database with a different name, and not replicate the data records just the tables and fields and relationships. To set up a new customer. I have a full understanding how to link the front end ...Show All
Visual Studio 2008 (Pre-release) can't install nor uninstall Beta2
hi everybody since last week i am unable to do anything with WinFX beta2 I began with FebruaryCTP : all was fine I upgraded to Beta2...after uninstalling using standard uninstall and the uninstall tools. for some unknown reason WCF didn't install and since then it s a nighmare !! I tried everything...read all the posts here and here....nothing succeed.. right now : uninstall tool says : can t uninstall some components...check you have admin rights (I try to translate as the message is in French...) I have admin rights so the problem should be elsewhere... if i try to install again, there is a message : PerformanceCounterInstaller.exe has encountered an error and it ends... i don t know what to do....except perhaps formatting my hard drive ...Show All
SQL Server SQL Server 2005 X64 Linked Server error
We use Windows 2003 Server (64) on AMD64 and SQL Server 2005 Developer Edition x64 + SP1 P roblem: I can not execute any sql on a linked server using the native Provider (SQLCLNI) Example (create a linked server on the same machine, other database (msdb) and try to execute any simple select using OPENQUERY s p_addlinkedserver @server = 'ls' , @srvproduct = 'SQLNCLI' , @provider = 'SQLNCLI' , @provstr = 'Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=msdb;Data Source=localhost;' Select * from OPENQUERY ( ls , 'Select * from Sysobjects' ) Msg 7356, Level 16, State 1, Line 1 The OLE DB provider "SQLNCLI" for linked server "ls& ...Show All
Visual Studio Team System Web test doesn't work
When I run a registered web test I get the following error message (I'm unsing beta 2): "Could not access the load test results repository: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding." How can I solve the problem Thanks, Pierre There is not a way to set this in code. If the controller is installed on a remote machine, then it will read this key on the controller machine, not the machine that VS is installed on. Deleting the encrypted string does force it to default to the display string. ...Show All
Visual Studio Team System Protected nested types, should CA1034 (NestedTypesShouldNotBeVisible) apply?
Currently, CA1034 suggests that types encapsulating implementation details of the containing type in a secondary, nested type are useful and should be private (inferred from "not be externally visible" and the fact that it warns about protected nested types). I would argue that the same is true for types that are encapsulating implementation details of the containing type and any derived types. If I want to declare a type that is only visible to subclasses of a type--for various reasons--the only way to implement this is to make that encapsulating type nested and protected in that base type. This, of course, raises a CA1034 warning. Hi David. Thanks for the response. I understood your points (although I don't agre ...Show All
Visual C++ OnShutdown() method does not work !
Hi all experts, I am using VS Pro 2005 and Win XP Pro. I have developed a C++ Window Service to detect the shutdown event and perform some tasks before desktop shutdown. I have followed the MSDN instruction and assigned CanShutdown to TRUE. However, I found that OnShutdown() method is not being called. Could anyone please help me Many Thanks The following sample codes are attached for your reference: =============================== virtual void ABCWS::ABCWSWinService::OnShutdown() override { ServiceStatusLog->WriteEntry("ABC Shutdown"); } void InitializeComponent(void) { .. this->CanShutdown = true; .. } =============================== ...Show All
Visual Studio Tools for Office How to create document w/o assembly attached?
I use VSTO to add some special formatting features to word. I need to use Smart Doc model to use Actions Bars cause Add-ins don't support them (till word2007). But I need to save results of user's work in this document w/o any reference to my controls (to allow to open it on other computer w/o assemblies etc)... Is there any way to do it P.S.: MSND says "Use the SmartDocument object to manage the XML expansion pack attached to the active document." but this object have only 2 methods. Is it the only control we could have Assuming we're discussing VSTO 2005 (not 2003) and you want to remove all things VSTO (including the Actions Pane), you ...Show All
SQL Server global execution
hey there Reporting services - page footer I have got this off the ssw.com.au Execution Time ="Execution Time: " + IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).TotalSeconds < 1, "0 seconds", ( IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Hours > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Hours & " hour(s), ", "") + IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Minutes & " minute(s), ", "") + IIf(System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds > 0, System.DateTime.Now.Subtract(Globals!ExecutionTime).Seconds & &qu ...Show All
Windows Live Developer Forums Error MSN Search When Putting Live
I've just finished testing an implementation of the MSN Search functionality into one of my projects. During debugging and testing on my local machine everything was working successfully, searches were being carried out and everything was fine. However when putting it onto the server I came across an error: The remote name could not be resolved: 'soap.search.msn.com' I believe that the problem will be down to permissions on the server. Before messing around with the permission settings I thought I'd ask and see if anyone else has had this problem and whether or not they managed to solve the issue. Thankyou James Most probably it is still the proxy. If your client machine is connected to internet via proxy, you need to explicitly set ...Show All
