russlunn's Q&A profile
Audio and Video Development Scaling with Media Foundation transform
Hi I'm trying to write a transform that among other things does scaling. To Test it I'm using the PlaybackFX from the Media Foundation samples. The problem I encountered in is that in the transfrom filter it looks like the other parts of the topology is ok with the scaling (I'm getting SetOutputType() with the scaled size), but in the player it doesn't seem like working. I tried to get the video size using IMFVideoDisplayControl::GetNativeVideoSize() and I'm getting the original size before the scaling (the MSDN describe this function as a way to get the size prior to any stretching by the video renderer, so I expected it to be the scaled size). I also tried to set the video size to the output size of the ...Show All
Windows Forms Printing in .NET
The printing model in .NET is done by putting code in PrintDocument_PrintPage event and setting HasMorePages = True which will cause the PrintDocument_PrintPage event to fire again until you set HasMorePages = False. Is there a way that I can manually control the page breaks without using this crazy (IMO) event mechanism I wonder if this helps you in some way http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=813103&SiteID=1 http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=805077&SiteID=1 ...Show All
SQL Server Why the report parameter dose not take effect?
Hi, all experts here, Thank you very much for your kind attention. I am encountering a problem with reports built on my SQL Server 2005 Reporting Services Server. The reports parameters do not take effect at all I chose the value from the report parameter list, but the result returned the whole report data. Why is that And how can I solve this problem Really need help. Thanks a lot in advance for any guidance and help. With best regards, Yours sincerely, How are you using the parameter in your report You need to: 1. Either - include the parameter int he where clause of your source query to filter the data using @param_name syntax for SQL or ::param_name for Oracle data sources 2. Or - use the parameter in an express ...Show All
SQL Server Dynamic table name in destination
How to create a new table dynamically in OLE DB destination. This is what i am doing I am reading multiple flat files in loop and saving file name to a variable. Then i have a source script component which read and transforms data .Now how can I push the data to SQL table. I want to create a new table with name saved in a variable. I tried using OLE DB destination and assigning table name from variable. Does'nt work. Thanks in advance for any insight on how to make this work. -Amar Ok i broke into multiple work flows. Now i read file names and then execute a script task to create table(it worked). Then read and transform data..but how to attach destination to it or how to insert into SQL t ...Show All
Game Technologies: DirectX, XNA, XACT, etc. question about positions
hello all. i am working on a little 2D game. I am working with a background and a foreground.. for th ebackground i use the following stuff: private void DrawHintergrund( SpriteBatch Batch) { for ( int y = 0; y < SichtbarY; y++) { for ( int x = 0; x < SichtbarX; x++) { Hintergrund.Draw(t2dTiles[Map[y + PosMapY, x + PosMapX]], new Rectangle (((x * TileWidth)) - PosAufKarteX, (y * TileHeight) - PosAufKarteY, TileWidth, TileHeight), Color .White); } } } for the foreground i use this.. private void DrawVordergrund( SpriteBatch Batch) { Vordergrund.Draw(Panzer1, Panzer1ScreenPos, null , Color .White, RotationAngle, Panzer1Mitte, 1.0 ...Show All
Smart Device Development Displaying Working Icon on screen
Hi all, I'm developing mainly on PDAs and I want to know how to display the icon that comes up when a process is taking a while. There is normally an icon that appears which lets the user know that something is working in the background (like a progress bar, but a square that just repeats some animation) Is there an easy way to display this (is it part of a built-in function) or do you have to add your own icon and loop through the animation within a timer Thanks in advance. Kind Regards, Grant. Hi all, Sorry - you can ignore my last post - I just found the answer in another thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=22398&SiteID=1 Cursor .Current = ...Show All
SQL Server MDX Calculations Script updates
I have mdx calculated members defined in my cube calculation script. Is there any tool (other than BI Studio) that would allow a power user (typically a financial controller) to modify formulas for selected calculated members Another option could be to use custom rollup formulas stored in the relational data source and offer a nice front-end for modifying those formulas, but this would require a full process of the cube, where as modifying the calculation script would only require a default process. Any other idea Thanks! Thanks for the explanations Darren. As you rightly guessed, I would like to allow power users to modify centrally stored calculations. However, BI Studio is overkill for my target popu ...Show All
SQL Server SSIS and deleted records
I am trying to use SSIS to upsize Visual FoxPro data. The data is in free tables. I'm using the VFP OLE DB provider in a connection pointed at a folder. When I click on preview, I see the right data--deleted records are not included. However, when I run the package, the deleted records are sent to SQL Server 2005. I can pack all the tables prior to executing the package as a work around, but I would think I shouldn't have to. I don't see any way to detect which records are marked for deletion in the data flow. I've tried to specify in the connection string Deleted=Yes, but to no good effect. Also, as I mentioned, when I preview the data, the deleted records are not included, so the connection seems to work properly . Steps to reproduc ...Show All
Smart Device Development tcpclient beginRead problem
Hi, I am working on a project whereby several devices need to talk to each other using TCP. When I use TCPClient to receive packets, I use this method: client.GetStream.BeginRead(clientReadBuffer, 0, CLIENT_BUFFER_SIZE, AddressOf ClientRead, Nothing ) ClientRead is the function that handles the incoming packet as follows: Private Sub ClientRead( ByVal ar As IAsyncResult) Dim BytesRead As Integer Dim strRead As String Dim reader As BinaryReader Try SyncLock client.GetStream ' Finish asynchronous read into readBuffer and return number of bytes read. BytesRead = client.GetStream.EndRead(ar) End SyncLock If BytesRead < 1 Then ' If no ...Show All
Visual Studio Express Editions How Do I change a String Varible into a int varible
Hey I making a Xml Reader program and part of it use #s that I have stored in the xml file. <random>23</random>. Well I made a program that gets the #s and counts it down. Well the problem is it keeps telling me that I need a int varible and I can't convert a string into a int. Any Ideas or something. System.Xml. XmlNode countdown = TvfeedItems.Item(0).SelectSingleNode( "Play" ); times.Interval = countdown.InnerText; times.Enabled = true ; Thats the code I do have more at the top that loads the xml file and everything, but I think this is the main part you wana look at ...Show All
Visual Studio Team System Build script
Hi! I have VSTS4DBPRO project (and bunch of other projects - SSIS, SSAS, C# - in my solution). And i need to create sql script wich should create database using my custom installation tool and supplied (by user of that tool) database server name, database name, physical layout (database files names and paths) options (assume that database has finite filegroups). Any workarounds how I must build my solution to achive desired result How could I get this by VSTS4DBPRO Andrey Makarov wrote: Jamie, Gert! Thanks for answers! As I intend above there is simple but little bit awkward solution - little prog that trims everything before creation of database objects. And I've just done with it. ...Show All
Visual C++ How can I take the valor of a variable of a .cpp to other .cpp?
Hi,I need to take a valor of a variable CEdit of one .cpp and use it in other .cpp. I have put this but it doesnt work: static CString MyVariable; The compiler works well but in the execution I see that there isnt valor in the new variable. Help I proved what you said and it doesnt work neither.My application is based in dialogs: It has 4 dialogs with one CEdit each one.In the last dialog I have to write in a file all the previous information.In other words in the last dialog(his .cpp or .h,as you want) I have to have access to all variables of CEdits of previous dialogs.Now I have explained better,sorry.Ideas ...Show All
Windows Forms Spare Row at the botton of the DGV
Hi All Whenever I bind Data to the DGV control, there always seems to be a small grey area at the bottom of the control that I can't get rid off, no matter how carefully I size the control at design time. I am using the AutoSizeMode property of the right hand column to ensure there is no 'spare space' horizontally when the control/form is resized, but I can't find any similair property to get rid of the spare vertical space. I thought it may be due to the control leaving room for a user to add a new row of data, or for scroll bars, but whatever I seem to do, theres always a small bit of space after by rows. I have now set the background colour of the grid from the dark grey default to something less in your face, but this is only a w ...Show All
Visual Studio Team System Customize Project Template to set Area Security
I have modified the GroupsandPermissions.xml to create some addtional groups. Is there a way in the setup default Area permissions for these new groups in the template Or will this need to be something that is done after the project has been created. Yes. In the GroupsandPermissions.xml you can set the default permissions (permissions applied to the root area node) for that group. For example, in the Agile process template, the Contributors group has the following definition: < group name = " Contributors " description = " Members of this group can add, modify, and delete items within the team project. " > < permissions > < permission name = " GENERIC_READ " class ...Show All
Visual Studio Registering new Project Type with VS2005
Hey all: I have created a new project type based on the IronPython project example in the Sept SDK, but I am unsure how to register the new project type with Visual Studio. I found this article in the MSDN docs http://msdn2.microsoft.com/en-us/library/3xa20z3f.aspx , but I am not clear if this is what I need to do, and if it is how to do it. I looked at all of the .rgs files for the Figures project and none of them looked like what the article showed. Is there a walk-through anywhere that I can follow Devin That topic describes registering a native-code project type. IronPython Deployment Sample shows how to create an installer that registers a managed-code project type like IronPython. ...Show All
