infomax's Q&A profile
Audio and Video Development How to get/set the Bottomup value of a sample?
As you know in the DMO we are using BITMAPINFOHEADER to describe some video information. In the BITMAPINFORHEADER, if the bmiHeader.biHeight > 0, the data is organized as bottom-up; otherwise, the data is organized as up-bottom. But in MFT, how can we assign the value You don't need to specify top-down/bottom-up in the media type. When you get the buffer, QI for IMF2DBuffer. If the buffer supports IMF2DBuffer, the IMF2DBuffer::Lock2D method tells you the stride of the buffer, which is >0 for top-down or <0 for bottom-up. (It will almost certainly be top-down in this case, because it will be a D3D surface.) If the buffer does not support IMF2DBuffer, then it uses "GDI rules", ie, bottom-up for RGB a ...Show All
Windows Forms AutoScroll question
hi, if i have a form that has the AutoScroll property set to true and i have a control on the form that is located at say (-10, 10) then shouldn't i get a horizontal scroll bar i don't and i am wondering how i can get it aside from implementing scrolling by myself. thanks, scott You can make that easy by offsetting the origin of the Graphics coordinate system. For example: private void PaintSample(object sender, PaintEventArgs e) { Point p1 = new Point(0, 0); Point p2 = new Point(this.Width, this.Width); e.Graphics.TranslateTransform(this.AutoScrollPosition.X, this.AutoScrollPosition.Y); e.Graphics.DrawLine(Pens.Black, p1, p2); } ...Show All
Visual Studio 2008 (Pre-release) svcUtil / WSDL exposing private variables instead of public methods??
Hello all, I've been experimenting with WCF service exposing my a facade & common layer (that sit ahead of business / dal) but am having a strange issue with WSDL metadata generated by svcUtil that I hope you can point me in the right direction with.: For testing, my simple service is comprised of a 'common' layer that has all of my standard structures by which I will communicate data with across the layers (simple objects that expose public properties like [ID] and [CustomerName] which are mapped with get / set methods to private variables). For simplicity, all of the private variable names are prefixed with "_" and all public properties are generally the same name as the variable without the leading underscore. Th ...Show All
SQL Server ODBC-based to OLE DB-based data transfer
I would like to transfer selected data from an ODBC-based table to a OLEDB-based table. However, there isn't a data flow source on the Data Flow Design screen to accomodate such an action. Please help! Roberto, You need to create a package with a DataFlow task in it; then inside of the DataFlow; then from the toolbox you can use a Data Reader component to use an ODBC connection. Additionally you will need to add any data transformation logic/tasks and an OLE DB destination component. There is not such 'all-in-one' task to perform what you want; but you have many components that you can combine together to get it Rafael Salas ...Show All
Community Chat Need some feedback or advice for my web site
Hi I am in the progress of developing a web site whereby developers can do free online tests on various programming languages. I would just like some advice or feedback on ways to improve the site or other comments of the site The site is http://www.quiznetonline.com Thanks in advance Mark I tested it quickly and I am not sure if I see the whole question. I checked the C# quiz and question two seemed to be incomplete. I didn't see the whole code for it but it also seemed the questions answer was incorrect. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Question on deferred shading with normal mapping
Hello, I am currently working on my deferred shading engine and have run into an interesting problem concerning the usage of normal maps. At the moment I am storing the normal for each pixel in world space during the geometry pass. All of my lighting calculations are also being done in world space. The problem I am having is it seems more people seem to do normal mapping in tangent space. In fact I've only ever read 1 article on doing it in anything other than tangent space. To address this problem I was thinking I'll just store all of my normals in tangent space instead of world space when I do the geometry pass. This seemed like an even better idea once I realized I would need the normals in tangent space for parallax occlusion mapping a ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How do I clean my solution?
How do I clean my solution In my Build menu, there's no "Clean Solution" option. I want to clean it because I like backing up my project every now and then, and I don't want to back up my intermediary files. Thanks for the info, I wanted to know which folders I could safely delete. I'll probably start using version control eventually, right now I just want to zip up my project every now and then and store it online in case of disk failure. ...Show All
Visual Studio Team System Test not found in TFS build
Hi The test run fails with warning in buildlog.txt: "Test mytest cannot be found". The .vsmdi file loaded fine. Storage attribute in the .vsmdi file points to right folder where mytest placed. I've checked all properties - testlist, paths - everything looks fine, but the paths in "Search path(s) for tests" are still wrong, they point to solution folder. How can I add or change the "Search path(s) for tests" paths Zeev Can you post a little more information on what went wrong here Perhaps the portion of your build log with the relevant error information One shot in the dark as well - have you modified your build process (via TfsBuild.proj) to put output bina ...Show All
Architecture DataSet Performance issue
HI We are using a oracle stored procedure which returns a refcursor. For queries with like search which returns large number records the dataadapter.fill() is really takes time. For a case whcih returns 14000 records it took 3000 ms to perform the fill method, eventhou gh we are filtering by 99 recodrs using fill(ds, start, maxrecords). As the number of records increasing the time varies even if the filtering happens only for 99 records. Any idea how we can improve the performance. Or any other we can call the SP which gives any improvement We cannot modify the SP. And the DAL used by many diffrerent componenets. Thanks in advance Sharmila Sounds like you've got index trouble, ...Show All
SQL Server SQL Agent Roles
I have a domain account that is assigned the the SQLAgentOperator, SQLAgentReader, and SQLAgentUser roles. That domain account is able to create a job and delete the job. But, it is unable to edit the job. If I create a SQL Login with these same permissions, it is able to edit the job. What am I missing We were looking forward to implementing these new built-in security roles because we had to use our own security roles to give us similar functionality in SQL 2000 but it doesn't seem to be working properly in 2005. Michelle See this http://www.sql-server-performance.com/faq/sqlviewfaq.aspx faqid=137 fyi. What is the authentication method used to connect SQL Server ...Show All
Visual Studio Express Editions Microsoft forces me to use Internet Explorer again???
Check this out, folks. I am using Firefox as default browser; naturally Microsoft site is designed not to work with it (naturally). Therefore setting Firefox as a default browser deprives me from the express upgrades thus forcing me to use MS product There are unfortunately a lot of sites that only work with IE, having said that I saw one recently that only worked with firefox. I too am frustrateded at having to use IE to work with some MS sites, but I've seen a big improvement over the last six months and can now use a lot of MS sites with firefox that previously wouldn't work at all. ...Show All
Windows Forms datagrid red cross
I have one problem with .net framework 1.1 data grid, randomly an red cross appear, the problem seem inside the datagrid control: See the end of this message for details on invoking just-in-time (JIT) debugging instead of this dialog box. ************** Exception Text ************** System.NullReferenceException: Object reference not set to an instance of an object. at System.Data.DataColumnPropertyDescriptor.GetValue(Object component) at System.Windows.Forms.DataGridColumnStyle.GetColumnValueAtRow(CurrencyManager source, Int32 rowNum) at System.Windows.Forms.DataGridTextBoxColumn.Paint(Graphics g, Rectangle bounds, CurrencyManager source, Int32 rowNum, Brush backBrush, Brush foreBrush, Boolean alignToRight) at System.Windows.For ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Getting XNA apps to run on non-development machines
This seems to be a common problem, but I've yet to find a real solution. The only thing I've found that works so far is to include a bunch of dlls with XNA applications. What does not work, however, is satisfying the posted requirements: .NET Framework 2.0 XNA Framework DirectX 9.0c (latest update) When a machine satisfies the above requirements, it still cannot run XNA applications (dies when initializing the graphics device). However, any machine with the XNA SDK has no trouble doing so. It's not reasonable to ask people to install C# Express and the XNA SDK (~120MB total) just so they can play my XNA arcade games. Has anyone found a better solution so far Well, few possibilities: - the machine does ...Show All
Visual C# Need help with .Split()
I've actually got two situations with this method. The first is with the .Split command. It works with the majority of the names it's passed but a few are not being processed correctly. For instance, the majority of the name fields entering this routine look like this: Holt, James; however, a few look like this: Harden, Jr.,James, which the .Split doesn't process. I've tried several configurations, {' ', ',', '.'} for example and still nothing. The configuration shown below is the last attempt. The second problem I'm encountering is an indexing error. When I click on a name in the Tree, then click on a letter above the name I get this error: "Index was outside the bounds of the array." The tree looks like this when th ...Show All
Visual Basic Data Form Wizard Template
i'm working with a trial version of visual studio 2005 in which i'm currently using VB.net. I'm unable to locate the Data Form Wizard template when adding a new item to a project. I have customomized my installation and i know have all possible components installed. Can someone please help me find a solution. Thanks Danny Hi Danny, Visual Studio 2005 retired the Data Form Wizard template and introduced a new set of features for accessing data. The entire section, "Accessing Data" can be found here http://msdn2.microsoft.com/en-us/wzabh8c4(VS.80).aspx . To achieve the same result as the Data Form Wizard template, you can follow this How-to topic: http://msdn2.microsoft.com/en-us/63h88ca ...Show All
