sumit kr's Q&A profile
Game Technologies: DirectX, XNA, XACT, etc. Displaying Videoframes with DirectX
I use a open source codec/video library (libavcodec). This lib exposes the video frames as 24_bit RGB bitmaps in memory. All I want to do now, is displaying those frames in a window as fast as possible. I tried a very naive approach: for ( unsigned int i = 0 ; i < Framenumber; i++ ) { Load->get_nth_frame( ID, i , RGBFrame ); DXDev->BeginScene(); Backbuffer->LockRect( &LR, NULL, 0); // [ memblit Copies RGBFrame pixelwise to Backbuffer , same function as //D3DXLoadSurfaceFromMemory ( Backbuffer, NULL, &SrcRect, RGBFrame, //D3DFMT_R8G8B8, Pitch, NULL, &SrcRect, D3DX_FILTER_NONE, 0);] memblit ( RGBFrame, (char*)LR.pBits, w, h, LR.Pitch ); Backbuffer->UnlockRect( ); DXDev->EndScene(); DXDev ...Show All
SQL Server using a datetime as dynamic filter... How?
Hi! Is there any way to use datetime value as dynamic filter in the Merge Replication (Yeah, I use HOST_NAME in order to pass datetime value) I used all possible approaches, but or I got the error Conversion failed when converting datetime from character string. (Microsoft SQL Server, Error: 241) or I got 0 rows on the subscriber after synchronization. Any ideas how it can be solved Thanks Paul I've sufficiently large table. Filtering based on date allows me to reduce appreciably the snaphot size. (Yep, it doesn't save a situation if a user want to have all data, but..) ...Show All
SQL Server REporitng Services for 2005 Express Advanced
Good day, I have recently downloaded the SQL Server 2005 Express Advanced. According to the site Reporting Services is included with this and when installing one can see Reporting Services installing so all seems fine. Well, after many days of pulling my hair out I am stuck. All I am trying to do at the moment is view the http://localhost/reports page and I can't. I keep getting an error saying the following: Server Error in '/Reports' Application. I did but I cannot remember what I did. I had all the good intentions of posting my results here but then got caught up in the next project. One thing I did note is that I upgraded IE to Ver. 6, but more than that I cannot remember. I am sorry ...Show All
Visual Studio Deadlock in ReportViewer?
Hi there, I'm stumped by the following: My program loads a report into a ReportViewer control (in LOCAL mode!), populates its datasets, then executes the report. Then I start changing the paper source and orientation in the Page Setup button in the toolbar. Every 20 times or so that I change something and click OK, the entire app hangs, showing the animated green circle (now frozen) and "Report is being generated". I can attach a Visual Studio debugger, and I get the following stack traces for two of the 5 or 6 running threads. Anybody seen this before, or have an idea of what's going on FIRST THREAD [In a sleep, wait, or join] > mscorlib.dll!System.Threading.WaitHandle.WaitOne(long timeout, bool exitContext) + 0x2e bytes ...Show All
Visual Studio Express Editions Making a textbox into an array and reading from each point in the array
I'm trying to build a name generator, that takes a letter from one point in an array, (Which originally comes from a textbox), and changes that letter to some other character. So for instance, if i put the name "Sam" in textbox one and clicked the "Generate" button, the out put, (Which has random keyboard typings of each letter, like S as "Ess" or "$") would go to textbox 2. So basically i want to build a name generator for The "Leet" or "L33t" Language. What i need to know is: 1.How to assign the Data of Textbox1 to a String array 2. How to read from each point in this array and 3. How to set the output to go to a certain point in an array for textbox2. Any help would be greatly ...Show All
Visual Studio Tools for Office Outlook Application ItemSend Event signature
Hi, I'm trying to develop a solution that filters the outbound emails sent from the company, compares the email addresses of the recipients with those stored in the company contacts database and stores the message into a database table. The best way to do this would probably be to do it on the server. I was able to do this for the inbound mail interacting with the Exchange event sink. Not a nice thing to do, having to do that in VB6 components that have to be registered with vbs scripts. But for outbound mail I was not able to do that. So I'm tring to develop a c# Outlook 2007 add-in that reacts to the Application_ItemsSend event (which has the advantage that I can put a checkbox on the ribbon to allow the user to choose wether or no ...Show All
Visual Studio Express Editions Messages From site
Hi All, Does anyone have anyideas on how to display latest news from a website into a vb.net app basicly I want to keep people updated when a new playlist is availiable etc. ive looked at rss, but dont need loadsa catagories etc. Is it possible to display a txt file on a server for example in an app Hope someone can help, Stuart Sure, debate is good. I just use my SQL server to stop the table from wobbling . Seriously, both approaches have merit: it really depends on some factors such as: how extensive is the updates list, are multiple users going to be updating it, how often, how many downloading, etc. My feeling is, get it working in some way to see how useful it is then if it's proving t ...Show All
Visual Studio 2008 (Pre-release) Appearance of buttons
Ok, this may sound crazy, but does anyone else have an effect on XP SP2 whereby the right-edge of the button is ever-so-slightly aligned too far to the left E.g. the right-edge is slightly inset into the button (although the top/bottom go to the correct place). I get this on all buttons (including the "x" in the top-right). I've tried various settings to do with ClearType, thinking that the font may be an issue. Everything looks fine when I run it on my Vista installation but ANY WPF xaml looks wrong on my XP boxes (e.g. all three I've tried so far). This is starting to bug me, as the visual effect may, unless it is known will-be/is fixed, may prevent me from being able to use WPF on a project as the target platfor ...Show All
Windows Forms Iterate Through BindingSources On A Form?
Is there a way to iterate through all BindingSource components on a form They don't appear to be in the Controls collection, and you can't seem to iterate through the Components collection. I know you can get to the BindingSource via the controls(s) bound to it, but is there a more direct way Hi Chris: Sorry for I not quite catch your means, as I think we already have bindingsource control in toolbox, and what is your question to use it ...Show All
Windows Live Developer Forums 'Sup with SSL? / New release
Hello, When can we expect to see a new VE maintenance release We've been living with the ugly SSL message for awhile and it would be great to know this is being addressed. Thanks, Jeff folks, i also posted a question about this a while back. The answer is to use microsoft MapPoint Web Services. They have an SSL link to their webservice. VE is a warpper to the MapPoint Web Services anyways. so try looking at MP WS instead. good luck! ...Show All
Windows Forms using graphics on mdi parent form
I have found a snippet to create gradated colored rectangle that then can be a form's background, but it uses the paint event of the form: Private Sub MainMenu_Paint( ByVal sender As Object , ByVal e As System.Windows.Forms.PaintEventArgs) Handles Me .Paint Dim rec As Rectangle = New Rectangle(0, 0, Me .Width, Me .Height) Dim myBrush As Brush = New Drawing2D.LinearGradientBrush(rec, Color.Aqua, Color.Yellow, Drawing2D.LinearGradientMode.ForwardDiagonal) e.Graphics.FillRectangle(myBrush, rec) End Sub I know how to create a colored background on the mdi parent but that code needs to be put into the load event. For Each ctl As Control In Me.Controls If TypeOf ctl Is MdiClient Then ctl.BackColor = Me.Bac ...Show All
Visual Studio Express Editions Need to know if uploading with VB Express app is possible.
Hi I have a copy of Visual Basic Express 2005 and I am currently writing an application that has to upload images to my domain into a specified folder. The problem is that everything I have been reading a researching on this hasnt helped me. I have used "My.Computer.Network.UploadFile" and have also tried the "System.Web.UI.WebControls.FileUpload.SaveAs" and both dont seem to want to work. the latter simply tells me that UI is not a member of System.Web The first one seems to work on pretty much all the methods such as "ping,IsAvailable" etc, but doesnt seem to work for uploading or downloading. My file paths are correct, the server is up and running and I am connected to the internet when I run the debug ...Show All
Windows Search Technologies Searchprotocolhost.exe fails with "outlook express could not be started"
Office 2007 prompted me to install Windows Desktop Search 3 and I did that. Since then, once in a while (every 10 minutes I guess), searchprotocolhost.exe is showing an error message box with the following text: "Outlook Express could not be started. The application was unable to open the Outlook Express message store. Your computer may be out of memory or your disk is full. Contact Microsoft support for further assistance. (0x80004005, 183)" My Outlook Express is running just fine. My computer is not out of memory and I don't have any disk that is full. I'm on Windows Server 2003 SP1. Is there a way to fix or workaround this issue Thanks, Florin ...Show All
SQL Server Sql server 2005 Stored procedures
I used sql server 2000 before but now I installed sql server 2005. I created some stored procedures in mssql 2000 but I want to modify them. I studied http://msdn2.microsoft.com/en-us/library/ms345356.aspx but when I expand Stored Procedures, right-click the procedure to modify, and then click Modify, It opens a sql file type and when I save it, it asks to save this file some where else and the main stored procedure remains unchanged. I have the same problem with making a new stored procedure it creates a file but it isn’t added under the Stored Procedures tree like my old stored procedures. How can I create new stored procedure and modify it Hi, its a difference wheter you "Save" which ac ...Show All
.NET Development Calendar DayRender
Can you please change the syntax to this pc of code. I want to use this on my page behind. I found this code on line. I am not able to fix the syntax. Thanks Private Sub Calendar1_DayRender(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.DayRenderEventArgs) Handles Calendar1.DayRender 'Clear the link from this day e.Cell.Controls.Clear() 'Add the custom link System.Web.UI.HtmlControls.HtmlGenericControl(Link = New System.Web.UI.HtmlControls.HtmlGenericControl) Link.TagName = "a" Link.InnerText = e.Day.DayNumberText Link.Attributes.Add("href", String.Format(window.opener.document.{0}.value = \'{1:d}\'; window.close();", Request.QueryString["field"], e.Day.Date)) ...Show All
