Shalin Dalal's Q&A profile
Audio and Video Development Pre-command?
Hello all, I've been browsing this forum for a while now and am posting for the first time. I appologize if this has already been answered in some way, but I have been unable to find an answer. I have a 'main menu' that has a series of menu drawer popouts that links to a number of titles. when I return to my menu title from another title, I want the state of the menu drawers to be the same as when I left the menu, and the focused button to be the last button activated. Essentially I am trying to write a 'pre-command' (from the good ol' SD days) that performs a check of which title I have just left when I enter the menu, or checks a global variable (a la GPRM), and then sets the approprate XPaths so that my menu and button focus can then ...Show All
Visual Studio 2008 (Pre-release) Vista IIS7 WCF - Has anyone got it working?
I can't get the simplest WFC app created by the VS2005 to work on the local machine! Two - I have read and tried just about everything mentioned in any post about WFC and IIS. This is NOT supposed to be this difficult I am sure. My installation: Vista Beta 2 (build 5384), IIS 7 enabled, VS2005 with extensions (WF RC2, Orcas), Vista Windows SDK 5383.1.1 I ran the serviceModelReg.exe -i (no errors). I have copied other web services from IIS 6 to the IIS 7 and they work nominally. I can create, compile and execute aspx sites on the machine. A step by step setup procedure would be helpfull. I hope someone at Microsoft actually has a configuration working... If not please say so. Been beating my head against the now bloody rock for ...Show All
Visual Studio Team System Can TFSBuild run different targets the way MSBuild can
I am new to TFSBuild and now have a basic, automated build working for my project. The next step is to be able to add a couple of targets to the project file and run those at different schedules. It may be that one of the targets builds the project in Debug mode and the other builds it in Release mode. In MSBuild, I could do this by adding the "/t:" switch, followed by the name of the Target. Can I do this with TFSBuild Perhaps I am barking up the wrong tree and would be better to create more Build Types. My set up is that I have Team VSS on one server and a seperate Build Server with Team Services installed. Thanks in advance for your help, Gordon You'll need to manually ed ...Show All
Software Development for Windows Vista LSA authentication group weirdness
Hi, I have two problems on Vista RC2 with group settings created by my custom LSA authentication package, which both don't occur on XP. First, the token created under Vista is missing the "Local" SID, S-1-2-0. Per documentation I don't add this group to the TOKEN_GROUPS list returned by LsaApLogonUser. On XP, the "Local" group is added by the LSA,. On Vista, it's not. I can add the group in LsaApLogonUser, though, and LSA doesn't remove it. Is that a bug or a security related feature Second, consider a user logging on, who's member of the local administrators group. The group is added to the TOKEN_GROUPS list filled in by LsaApLogonUser. The TOKEN_PRIMARY_GROUP SID is also set to the admin group. This doesn't work. LSA returns with a stat ...Show All
SQL Server Accessing MSDB shows "client unable to establish connection... Encryption not supported" error
Hi, I currently have SQL2005 Std, using 2 separate domain accounts for both SQL server and SQL agent. When accessing the MSDB stored packages folder from mgmt studio, I get the following error: Client unable to establish connection. Encryption not supported on SQL server. I did google for this error, but have tried all suggestions, including updating the MsDtsSvr.ini.xml file with the servername. I am using a default instance. Also, I am only able to access the MSDB folder if I set the SQL service account to the local admin account. I have also set the SQL service account to be part of the local admins group, but without any luck. TIA. After trial and error, somehow this problem was resol ...Show All
Visual C# Multiple inheritance scenario
Hello, I know that there is no multiple inheritance of classes in C#. My problem is, I have a scenario that I don't know how to solve without it. Are there even scenarios that cannot be solved without multiple inheritance or is it just a flaw in my design Alright, this is what it's like. Let's say I have a class Object which represents a named item. class Object { public string Name; } It's extended by the Person class which adds the age property to it. class Person : Object { public int Age; } Next class ( IDObject ) extends Object , so that it can be associated with an integer. class IDObject : Object { public int ID; } Now what do I do if I want a person that has an ID Normally, I'd sug ...Show All
Visual C# Calling methods of a class without creating an instance of it
Hi, I'm sure this probably has been answered before, but somehow I couldn't find it, so really sorry about that. But how do you call methods of a class without having to create an instance of it I mean, in my project I have something like: public class FileOperations{ public void read_config_file(...) { (...) } } And I want to call the read_config_file(who doesn't depend on anything but the filename and a property where it'll write the config values) without having to do: FileOperations fileOp = new FileOperations(); fileOp.read_config_file(); I was a poor (poor like in noob) Java programmer but I used humm I believe it were static methods in abstract classes, something like that, don't re ...Show All
Visual Studio Team System I need help in implementing this rules in my FxCop project
Hi, In my FxCop project I need to implement the following rules, a. All Classes should be static. b. Initializing of Empty dataset should be avoided can anyone help me in implementing this rule. Thanks in advance Venki Hi, I tried to override the function Check(Class c) like public override ProblemCollection Check( Class member) { but got an error message"Error 1 'CustomFXCopRules.AllClassesINBLDALShouldBeStatic.Check(Microsoft.Cci.Class)': no suitable method found to override D:\MyProjects\TechSupport\FxCop\CustomFXCopRules_WhidbeyCode\CustomFXCopRules\CustomFXCopRules\AllClassesINBLDALShouldBeStatic.cs 44 44 CustomFXCopRules when I built the proj ...Show All
SQL Server Two Dimensions Sharing same Parent Table
Hi, I have a serious problem when I explore my Dw Model. I have one Fact table and Two Dimensions: Brand Dimension and Department Dimension. Both Dimensions share at Top Level Company Attribute. The Schema is like this : Brand Dimension : Brand (Brand Table), Brand Group(Brand Group Table), Company (Company Table) Department Dimension : Department( Department Table), Department Group(Department Group Table), Company (Company Table) Almost forgot..The Company attribute is present on all tables because is a key member. At this point everything was ok. But when I started to explore on AS (Browser) my problems has just started. I realize that, for AS, the Company attribute is not the s ...Show All
SQL Server importing flat files to many tables
I'm trying to input a few thousand flat files into a few thousand tables in a sql database im using integration services with a for each loop to read all the files in a directory the problem is i can only insert the data from all the files into one table does anyone know a way to do multiple tables maybe using some sort of variable Yes you can, although the approach differs based on what you are trying to accomplish. If each file goes to a different table, use table name variable as your data access mode. If you want each file to go to each table, use nested foreach loops. Foreach file, foreach table, input data. ...Show All
Visual Studio Express Editions How do I use normal C++, All I can use is Visual C++
How do I use normal C++. The options only include Visual C++. Can I use C++ with a Visual C++ compiler Don't get it confused Visual C++ is really just the C++ compiler with some extentions. Think of it as a snazzy name to make you think it is great or something. So normal C++ programs will compile under the Visual C++ compiler with no problems. The visual part comes into it when creating Windows Forms programs. You have the resource editor available so you can see the window as you create it, rather than just guessing and seeing how it looks by running the program. Just remember when you create a project, create a Win32 Console application. This will give you a native C++ project which runs under t ...Show All
Windows Forms How to process keydown event while dodragdrop
Hi all: Dodragdrop is a process to consume message, when mouse or key status change, will raise an event named OnQueryContinueDrag. My question is: how to let my Form get the Keydown message while dodragdrop. OnQueryContinueDrag can not give which key is pressed. Thanks alot! ...Show All
Software Development for Windows Vista changing directshow capture dimension
hello, i am using directshow to capure live video on pocket pc (QTEK 9100). the captured frames have dimension 144*176. the other possible media types have dimension 288*352 etc I would like to know if/how it is possible to change the camera properties to make it capture in one of the standard formats 176*144 (QCIF) , 352*288 (CIF) etc many thanks deji You generally can't use arbitrary dimensions no. What is listed as the possible media types is usually all that is available. So do I surmise that you video is in a portrait 3x4 configuration or that the image is sideways (90 degree rotation) Do you check for any hardware settings Sometimes there is an option to use the device i ...Show All
.NET Development Needed: Socket
Hello everybody :) I'm searching for a good socket(Server/client). I know, in C# I can use System.Net.Socket, but I'm looking for something more easy. A socket that's free, multi-threaded(so that it can handle multiple connections if it's listening to connections) and it would be nice if it was open-source. Thank you, Nils A socket by definition is a single connect, so you won't find a library that supports multiple connections per socket. There's products like nsoftware's IP*Works that may organize class differently; but you'll still have to deal with many of the same issues if you're dealing with a custom protocol. Maybe you can detail what you want to do with a socket ...Show All
Visual Studio Team System How to organize unit tests in tree-view way?
Hi I noticed VSTS lists all unit test in test manager by using flat-view way, which is not suitable for management. How can we organize these in tree-view way like what NUNIT did Ron Hi, You can to that by opening the test manager window. You will see a tree view. In that tree view you can create lists. meaning group of tests and place them in the tree. ...Show All
