faraaz_malak_c92eb4's Q&A profile
Windows Forms Press control-D keys will insert a date into a textbox.
I have a comments textbox. I want to have control D( Ctrl-D) keys being pressed and it will insert a date in the textbox. Sound simply but I look around the web, still didn't know how to do it. Yes. This is what I am looking for. However, now I want to keep the postion of my editing bar to the end. Is that possible Thanks. ...Show All
SQL Server SQLAgent forces a Cmd Window
I am installing SP4 on a previously installed SQL2000 Ent running on a Win2000 Enterprise SP1. When I start SQLAgent, a CMD window with no statements opens up. If I close the CMD window, the SQLAgent stops. So, to keep SQLAgent running I have to minimize the CMD window and leave it up all the time. Is there any way I can run the SQLAgent without having the CMD window open all the time I am clicking on Start in the SQL2000 Service Manager when SQLAgent is showing as the service to start. You think the exe for SQLAgent is not registered as a service Is there any way I can fix it ...Show All
Visual C# Image Acquisition from IP Cameras
Hi, Is there a common solution to acquire image and video from IP cameras from different vendors How can I acquire video from 2 different cameras at the same time There are WIA, TWAIN and DirectShow technologies which are popular but what is the difference between DirectShow and WIA Detailed explanations and source codes would be appreciated :) Multithreading is ok, but what I need is what you would use for the // Code for read data from a device and send Would you use Twain, WIA or DirectShow Which one has which advantages and disadvantages Thanks for the code friend. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. space war input problem
space war don't respond on my keyboard actions To move ships independently I've modified GamePadHelper.cs file to map different keys for other players: // Setup Dictionary with defaults if (player.ToString() == "One" ) { // Here are the original keys for first player keyMapping.Add( GamePadKeys .Start, Keys .Home); ... keyMapping.Add( GamePadKeys .ThumbstickRightYMax, Keys .I); } else { // Here goes keys for second player keyMapping.Add( GamePadKeys .Start, Keys .NumPad0); ... } ...Show All
Visual C++ AVI's in C++/C#
I'm in uni at the moment, and what to create a video editor for my final year project, but as of yet have no idea where to start even loading a video into C++. I've had a look around on the net to find ideas, and there have been a few suggestions such as Direct Show and Open GL. Is this the way to go to do such a thing, or is there an easier/more efficient way to do so. Any help much appreciated Alan hello Re: AVI's in C++/C# since you got no replies for several days, It is probably because this topic is in wrong place, to get more quicker and valuable response, I suggest you posting it in multimedia newsgroup: win32.programmer.mmedia thanks bite ...Show All
Visual Studio Team System Only 64 tests run
Hi, I'm using Visual Studio Team system for developer and I have a team build that get latest/build/run tests. But only small portions of the test are run. I have 196 unit tests, but only 64 of them get run... why No error nothing. -joel Hi Joel, Are all 196 unit tests in the Test List referred to in the Team Build configuration file You should open the Test List and make sure all of the tests are listed without error. For example, if a test was renamed the link to the test would be broken and you should repair it. Cheers, David Williamson ...Show All
SQL Server Using ExecuteSQL task for MDX query - urgent help needed, please
I have an MDX query which I need to return some data to an SSIS package. It seems that I have to use an object variable for the result of that query, even though it is a single row. Does this mean thet the package views the column heading as part of the resultset for MDX queries When I used a loop to try to assign the values to individual variable I get an error, informing me that the values cannot be bound. I need the values returned by the query to use as input parameters to the next task in my package. Can anyone tell me how I can achieve this Many thanks ...Show All
Internet Explorer Development IE7 Crashes for Unknown Reasons
I have been getting IE7 crashes on a regular basis, on two different computers, after upgrading. Can't replicate the crashes, because they don't occur all the…but the info from the Event Viewer follows: On a P4–3.4E GHz computer with XP Pro & all current updates: “Faulting application iexplore.exe, version 7.0.5730.11, faulting module ntdll.dll, version 5.1.2600.2180, fault address 0x00018fea.” On Centrino 1.83 GHz Dell Inspiron6000 with XP Pro & all current updates: “Faulting application iexplore.exe, version 7.0.5730.11, faulting module unknown, version 0.0.0.0, fault address 0x61df7730.” Extremely annoying...so much so that I may go back to IE6. Anyone have any ideas ...Show All
Visual Studio 2008 (Pre-release) MSMQ and IsInRole problems
Running into some confusing stuff when using MSMQ (net.msmq) and trying to authenticate. I run the following code on my service (i.e., when receiving the message from the queue): Console .WriteLine( "TypeName: " + System.Threading. Thread .CurrentPrincipal.GetType().FullName); Console .WriteLine( "Test1: " + System.Threading. Thread .CurrentPrincipal.IsInRole( "TestGroup" )); Console .WriteLine( "Test2: " + System.Threading. Thread .CurrentPrincipal.IsInRole( "OFFICE\\TestGroup" )); Console .WriteLine( "IsAuth: " + System.Threading. Thread .CurrentPrincipal.Identity.IsAuthenticated); Console .WriteLine( "Name: " + System.Threading. Thread .Curre ...Show All
SQL Server Can Fact table link to more than 16 dimensions?
Hi, I am new to building cubes. I am trying to build a cube which includes: 7 database dimensions 22 cube dimensions (19 cube dimensions are liked to 4 table dimensions) The problem is when I try to make the PK of the fact table to include the 22 fields I receive an error that the PK cannot be more than 16 fields. What should I do Thanks in advance, Aref But these 6 columns are only part of the 22 dimension fields that I have. I am thinking of creating another table that holds all the possible combination of these multiple dimensions related to one database dimensions the use then use the PK of that combination as a single dimension field in my fact table then use a view to represent my fact table and ...Show All
SQL Server Order of conditions in a query
I have a query with many (approximately, 30) conditions, such as: select ....... from table1 join table2 on ( ( table1.field1 = table2.field1 OR table1.filed1 IS NULL ) AND ( table1.field2 = table2.field2 OR table1.filed2 IS NULL ) ) My question is: In C++ or C#, when I write a condition like this, say, in an IF or WHILE, I know that I would be better off specifying the IS NULL (well, == null, to be precise) first, and use | instead of ||. In that case, the first condition (equality to null) is checked first, it's fast, and if it's not satisfied, the control flow goes to the next statement. The question is, is there the same rule in T-SQL I mean, if I put the "... IS NULL" first, and then "OR ... = ...", wil ...Show All
Visual Studio Team System How do you import entire schema?
Every time I try import Schema to a project and compare it back to the source database there are always statements that are missed by the import. I then try to run an update and get a whole host of user or group not found errors. Are there settings that need to be changed when importing schema I have already tried having the source schema settings override the target settings and have also tried default settings. Hi Which objects are missing Within the project, we treat rules, defaults, permissions, role membership signatures, storage, custom errors, encryption keys, linked servers and logins are pre or post deployment objects. Therefore they do not always appear in the Schema compare when do ...Show All
Visual C# can i change the language of any thing?
hi i want change the language of textBox or any thing in my form. how can i do i want change the language automalically when the form is load (C# programming) You need resource files (.resx) containing all the required strings for each language (one for English, one for Portuguese etc.) and then you need to access via your class. You'll need the System.Resources and the System.Reflection references. The actual resource file should be named in the following style: MyResources.[Language Culture code] in order to identify which language they are: Example: MyResources.fr-FR.resx is a french language resource file. Create a resource manager in your class (as follows): private ResourceManager resourceManager = ...Show All
Software Development for Windows Vista Run a Workflow in a Workflow and cancel it
Hi, As many others i am quite new to this topic. I found some examples and tried some simple things. I just wanted to know if someone maybe has some finished code for my problem or has some hints how to solve it. I have a Seq-WF-App where i start WF1, constisting of: cdBegin - Code : { Log("Beginn"); } Call Workflow 2 cdEnd - Code : { Log("end"); } In Wf2 i have: cdBegin - Code { Log("Begin"), Loop(10) { wait 1 sec; } Log("end"); } cdEnd - Code { Log("End"). I wanted to know how I can call wf2 in wf1 with a timeout. So i want: Call Workflow2 ( 5 sec ). After 5 seconds i want to cancel/abort/terminate the wf2 i called. What i reached yet is: I Abort() wf2. The Wf2 is currently i ...Show All
Software Development for Windows Vista Problem calling web service with more than 1 Windows Workflow at a time
I have a Web service call that is made to invoke the Windows Workflow from a Windows Service running on a server. If I run 1 Workflow at a time, it's fine, but when two are processed within a short period of time, it gives me the error objProxy_manageWorkflow ERROR: System.ArgumentException: There was an error during asynchronous processing. Unique state object is required for multiple asynchronous simultaneous operations to be outstanding. ---> System.ArgumentException: Item has already been added. Key in dictionary: 'System.Object' Key being added: 'System.Object' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at System.Collections. ...Show All
