A.F.B's Q&A profile
Visual Studio Team System SQLCMD :connect not allowed?
In a post-deploy script, I want to connect to another server using :connect $(TargetServer) which works in the sql management console SQL editor window. But during build, I get the following error: Error TSD164: Syntax checking failed : Incorrect syntax near :. sorry, still not working! Even a simple file with only this in it produces build-errors: :connect "d03" GO Error: Error TSD164: Syntax checking failed : Incorrect syntax near :. need urgent work-around!! ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I rotate the camera around a specific point (eg. the player)?
Sorry, I'm full of questions tonight! :) I've been playing rotating my camera around stuff, like this: // Rotate camera float rotation = GamePad.GetState(PlayerIndex.One).ThumbSticks.Left.X / 50; if (rotation != 0) { GamePad.SetVibration(PlayerIndex.One, rotation, -rotation); angle += rotation; } else { GamePad.SetVibration(PlayerIndex.One, 0, 0); } Vector3 camera = Vector3.Transform(new Vector3(2, 2, 2), Matrix.CreateRotationY(angle)); effect.View = Matrix.CreateLookAt(camera, new Vector3(0, 0, 0), Vector3.Up); But the rotation is always around the axis. I'm not trying to make the thumbsticks work like Halo controls - one to move the camera along the X and Z axis, and the other to rotate the camera around the playe ...Show All
SQL Server Viewer Date Picker Post Back
Is there away to keep the date picker from doing a post back in the viewer (ASP) For that matter, any of the parameter controls. Mark, from what i have seen, when you use the report designer to create your report, it automatically makes each parameter dependant on the parameters prior to it, even if they are unrelated. I had this in a bunch of reports that used a cube as the datasource, and find it highly annoying as well. For each parameter there will be a dataset node under /Datasets in the rdl. So if your parameter called 'DateTime' is causing issues, find the dataset whose name is 'DateTime'. Then follow these steps: - under the Query/QueryParameters node remove any QueryParameter nodes tha ...Show All
Software Development for Windows Vista Splitting a wmv file
Hi, I am new to direct show application development. I want to split a wmv file into multiple files. Which direct show interface should i use to do this Thanks, Karthik Take a look at the DES interfaces. http://msdn.microsoft.com/library/default.asp url=/library/en-us/directshow/htm/directshoweditingservices.asp ...Show All
Visual Studio Express Editions Strange ObjectDisposedException
Something really strange: protected void WaitForData ( ) { if ( this . SocketCallback == null ) { this . SocketCallback = new AsyncCallback ( OnDataReceive ) ; } ServerSocket state = new ServerSocket ( ) ; state. Socket = this . Socket ; this . Socket . BeginReceive ( state. buffer1 , 0 , state. buffer1 . Length , SocketFlags. None , this . SocketCallback , state ) ; } public void OnDataReceive ( IAsyncResult result ) { ServerSocket socket = ( ServerSocket ) result. AsyncState ; int bufferOffset = this . Socket . EndReceive ( result ) ; if ( bufferOffset > 0 && bufferOffset != socket. buffer1 . Length ) { byte [ ] temp = new byte [ bufferOffset ...Show All
Smart Device Development PCI Card's Driver
I am new in the PCI development in WinCE enviroment. I am hoping someone can provide me the sample coding, any related document and information. Thanks in advance. You need to acquire Platform Builder and take a look at \Public\Common\Drivers\PCIBUS, as well as some other stock drivers for PCI devices. These samples cannot be taken out of PB - you do need the whole platform builder. An evalulation edition of it is available ...Show All
Windows Forms The selected rows aren't displayed
Hi I have a DataGridView control in my C# application and i want to select some rows in this control in the Load event of the containing form of the grid. The problem is that the rows aren't displayed as selected. The same code i use when a button is pressed (after the page is loaded) and it works fine. Is this a normal behaviour What should i do to select some rows before display de window with data grid Thank you I have made a similar test before receiving the response from you. The behaviour is the same. Here is the code (the code for button click event is unchanged): private void FormImportPreScrub_Load( object sender, EventArgs e) { ImportedFileCollection imp_files = new ...Show All
SQL Server Union problem
I have follow query declare @z int select id from table1 union select id from table2 i want after union in @z save value 0, 1 or 2. 2 - when first and second select returns any results 1- when one of selects return any result, and another return nothing 0 when both selects returns nothing Can you help me. How i solve this problem Hi, you probably would have to query the resultset a second time: SELECT SUM(SomeSum) FROM ( Select TOP 1 1 SomeSum From Table1 UNION SELECT TOP 1 1 SomeSum From Table2 ) SubQuery HTH, Jens K. Suessmeyer. --- http://www.sqlserver2005.de --- ...Show All
.NET Development JOIN in select command
If my SelectCommand points to query containing as follows: SELECT * FROM Contact INNER JOIN Company_Contact ON Contact.contact_id = Company_Contact.contact_id WHERE (Company_Contact.company_id = @companyid) how do I write my UpdateCommand, InsertCommand, and DeleteCommand objects to update the two different tables contained in the join query Is there a way I can update both the tabels using a single command and single dataadapter I'm not quite sure what you're shooting for here exactly but I'll take stab at it: 1. You can't update, insert, or delete a joined table 2. You can use subqueries to determine the appropriate record to update, insert, or delete. DECLARE @FirstName varchar(25 ...Show All
Software Development for Windows Vista disposing a QuartzTypeLib.FilgraphManagerClass object
Hi, Before I start: I am not in anyway familar with DS. Someone wrote me a dll that encorporates a QuartzTypeLib.FilgraphManagerClass object to allow me to play a avi stream to a picture box. The problem lies when i get the filtergraph to play in a picture box, I can stop it an load one video, but when i try another it "crashes" with a null refference. I would like to know if there is any way of disposing this object so that i can start a new one easily. Thanks MP Well, if you were using .NET, there might be some things to try. However, I'm guessing not. I assume you've already tried setting the variable to nothing. ...Show All
Gadgets Download and unzip a file from a Gadget ?
Hi, My gadget needs to download (via HTTP) a zip file and unzip it. This file contains information so local search can be done on client side. In Dashboard/Yahoo we have curl and unzip unix utilities to easily achieve that with some simple system call. How can you do that with Microsoft Gadgets Thanks in advance, I don't think MS's ZIP is exposed via COM, so you'd have to either include a command line based extractor in the Gadget, or write a COM wrapper DLL around MS's ZIP. Your best bet is to get a free command line extractor, like 7-Zip and use it's 7z.exe command line EXE, which you can call from your Gadget as described in this thread . Just bare in mind that you will run into security issues if you ...Show All
Visual C# multiple undo & redo
Hi, need some help here! Does anyone know how to implement multiple undo & redo function for a GUI with multiple tab pages Thanks! Undo is achieved by buffering the current version of an object before performing an operation on it, then reverting to that version when the user selects Undo. You can achieve multiple levels of undo by buffering multiple versions of the object, each with a string descriptor of what operation was about to be performed. Redo is more complicated, in that you have to record the type of operation and any parameters passed to it, and then re-apply them. Multiple redo is very rare; most packages simply allow you to redo the most recent operation. ...Show All
SQL Server Isolation Level
Hi all, In my trace output file, it is showing the isolation level as Serializable or Repeatable Read, in deadlocks detail, even though we are not setting the isolation level option any where in front-end or back-end code. Server default isolation level is Read Committed. What could be the reason for this I'm running the application in Test environment with 1000 or 2000 concurrent users. Thanks in advance. Regards Babu ...Show All
Visual Studio Team System Project Creation Wizard - error uploading documents to SharePoint
Background: I am getting the below error when creating a new Team Project. I have upgraded from RC to RTM. My user account and tfssetup are members of the local administrators group (and therefore are members of the SharePoint Administrators Group according to the doco and should have enough permissions). A search on the web and msdn forums didn’t yield any useful results. I did find the other thread with same error but that fix didn't work for me. Problem: When creating a new team project I get the following error: TF30177: Team Project Creation Failed. Error The Project Creation Wizard encountered an error while uploading documents to the Windows SharePoint Services server ...Show All
Visual C++ Getting error error LNK2019: unresolved external symbol "int __cdecl
Hi, i have written a function in one dll.i am not able to use the function in another dll.it throws linker error as error LNK2019: unresolved external symbol "int __cdecl function()" if anyone experienced above error pls let me know. Thanks, Ganesh Yes i have added the correct library in project settings.Also the dll has same function definition. Also the error ocuurs only when i build it in release mode.if i build it in debug mode it does'nt throws error. ...Show All
