N_John's Q&A profile
.NET Development bug reports
### Visual C# .NET Compiler Defect Report, created 08/08/06 13:46:09 ### Compiler version: 7.10.6001.4 ### .NET common language runtime version: 1.1.4322 ### Operating System: Windows NT 5.1.2600 Service Pack 2 ### Compiler command line csc /r:Accessibility.dll /r:Microsoft.Vsa.dll /r:System.Configuration.Install.dll /r:System.Data.dll /r:System.Design.dll /r:System.DirectoryServices.dll /r:System.dll /r:System.Drawing.Design.dll /r:System.Drawing.dll /r:System.EnterpriseServices.dll /r:System.Management.dll /r:System.Messaging.dll /r:System.Runtime.Remoting.dll /r:System.Runtime.Serialization.Formatters.Soap.dll /r:System.Security.dll /r:System.ServiceProcess.dll /r:System.Web.dll /r:System.Web.Mobile.dll /r:System.Web.R ...Show All
SQL Server How to reset identity column's value?
Hello friends, I have a table in SQL server 2005. it contains one identity column named EmpID it's datatype is int isidentity and auto increment by 1. I deleted all the records from this table. Now I want that EmpID should start again from 1 how can I do it Thanks & Rgds, Kiran Suthar. TRUNCATE TABLE "table_name" will delete all the records as well as it resets the identity column to 0. simple way to solve your problem Difference between Delete & Truncate visit TRUNCATE TABLE is a statement that quickly deletes all records in a table by deallocating the data pages used by the table. This reduces the resource overhead of logging the deletions, as well as the number of locks acquired; ho ...Show All
Software Development for Windows Vista playing at the same FPS as of the video
Hi All, I was just trying to write a filter that would be able to decode and playback an H263 frame. I am able to succefully play the video however the FPS is coming down than what actually the video is suppose to be playing in.(Actual FPS of the clips is 30 and i am able to hit a max of 24fps.). Can anyone let me know as to wat are the factors that need to be kept in mind to get the right FPS. Regards Hi Michael, Thanks a lot for the valuable input. I did make a check on the timestamps and i find that they are very much on mark that is difference between any tow consecutive sample is 33.33msec. I am not too sure there are any contraints on the availability of the processor. Any thin ...Show All
Software Development for Windows Vista passing parameters to a xoml workflow
I've been toying with xoml files for a while and I like that they're serializable so that I can decouple quite a bit. I have one issue though,... I don't know how to pass that dictionary of string object to a xoml file. When I do it complains about not having the specified property, which is true since I don't know how to add it to the xoml in xoml-speak. How can I define a Property of a certain type in xoml Also, is it possible to call an external method from within a custom activity without having to create a callexternalactivity and invoking it Thanks Okwatangen, have a look at the following thread: http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=997501&SiteID=1 Note, the xoml Workflow ...Show All
SharePoint Products and Technologies Problem with Javascript/Activex (like embedded Media) in Post list in blog template of WSS 3.0
Hi, When I try to add javascript (or activex) in posts in WSS 3.0 blog module, sharepoint delete js code. Do you know if a solution exist For example, i would lik to add video in my post with : <table border='0' cellpadding='0' align="center"> <!-- begin video window... --> <tr><td> <OBJECT id='rvocx' classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' width="320" height="240"> <param name='src' value="http://realserver.test.com/test.rm"> <param name='autostart' value="false"> <param name='controls' value='imagewindow'> <param name='console' value='video'> <param name='loop' value="false"> <EMBED src="http://realserver.test.com/test.rm" width="320" height= ...Show All
Audio and Video Development uncompressed YUV to EVR
Hi, I am writing a simple YUV media source to take in .yuv bytestreams and send it to the EVR. I have modified the MFT_Grayscale to act as a dummy transform to copy the yuv samples to the EVR. I am also using the playbackFX sample for the player. I'm having a problem with the player just showing a black screen, as if no samples are being sent to the EVR. I have verified that the samples are being processed in the dummy transform with the correct image size and attributes for my given yuv sample. I have tried other yuv samples and all just display a black screen, but the samples are being processed for sure. Is there any way to debug this to see if the samples are being sent to the EVR Or does anyone have any clues why this is happeni ...Show All
Visual C# Help - folder's property dll
Hi.. In windows , when we right click on any folder or file, we get properties . In the properties we can see General/Security etc.. Is it possible to get the properties dll in c# please help So you have a tree view that displays folders and you want to get some info about the underlying folder when the user clicks on it If so then it is completely dependent upon how you set up the tree. Each node will need to store some information about the associated folder. You could store the DirectoryInfo structure for the folder but this is probably overkill. Instead I'd just store the folder path in the Tag property. Now when the user right-clicks the folder you can retrieve the properties by using ...Show All
Software Development for Windows Vista IfElse with code condition
I don't understand how to use an IfElseBranchActivity with a code condition. I just want to call a method in my IfElse: private void isNumber(object sender, ConditionalEventArgs args) { //... //args.Result = true/false; } but I can't bind this method to my IfElse activity. If I bind it to a new property or field I don't know how to use the generated code. Could you post a simple example Thanks in advance I don't know why the bind dialog is not showing the method you added. But here is how we usually work. After the code activity is added, choose the CodeCondition. Then expand the Condition node, and type in the name of the method you want to evaluate the condition. This does the internal plumbing and ...Show All
Visual Studio Team System Team Foundation and VSS
I installed Team Foundation to test a planned PowerBuilder source control upgrade, and now when I try to open a project in Visual Studio 2003 it is trying to use Team Foundation as the Source Control Manager. I get errors about the project URI not existing, and since we are not yet ready to upgrade from VSS to TF I need to find a way to change the source control back. Is there a simple way to change back to Visual Source Safe that will not affect any of the files I currently have checked out (from VSS) You can change the source control provider under Tools -> Options -> Source Control -> Plug-in Selection. Just switch it back to Visual SourceSafe and you should be fine. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How to you access parent elements from objects?>
I'm new to C#, I usually use VB.net and I'm having trouble finding how to access parent elements from inside objects. For example, imagine I instantiate this object in my program: (Note the class is created in a separate text file from my main program) namespace XNATest5 { class Statistics { private int LastTime; private int FrameCount; public Statistics() { FrameCount = 0; LastTime = Environment.TickCount; } public void Update() { FrameCount += 1; if (Environment.TickCount - LastTime < 1000) return; Window.Title = "FPS="+FrameCount.ToString(); <---- doesn't work FrameCount = 0; LastTime = Environment.TickCount; } } } It seems I can't refer ...Show All
Internet Explorer Development IE6/7 and Frames
I have a website using frames. In order to make sure that if somebody types in a direct link to a page we created some javascript and php code to make sure that we end up with the site displayed as is it should, i.e. using the frames. However, once the site has been opened using a direct link , the menu starts opening pages in the the current window, instead of in the frame. In Firefox there is no problem. First page: default.php <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" > <html> <head> <title>title</title> < some code to fill the $menu and $displaysrc > <!-- frames --> <frameset rows="50%,525,50%" framespacing="0" frameborder=& ...Show All
Game Technologies: DirectX, XNA, XACT, etc. drawing Curves, Lines, in DX?
Hello, I'm doing a drawing program using GDI, but it has a lot of screen tearing so I'm porting it to DirectX. The problem is that in GDI I had a lot of useful functions like DrawBeziers, DrawClosedCurve, DrawLines, etc.... How can I do the same using Direct3D Thanks in advance. You can use the D3DXDrawLine function but it's a strip of line that are square at the vertex not smooth But for most application you will create a VertexBuffer and use DrawPrimitive using the flag for LINELIST or LINESTRIP Basicly you create one vertex for each pts of your line set the FVF and the Steam to use the VertexBuffer It's faster without the Lighting system on The color is in the vert ...Show All
Software Development for Windows Vista Can't download .NET Framework 3.0 June CTP SDK
When I try to download it, it reports : The download you requested is unavailable. If you continue to see this message when trying to access this download, go to the "Search for a Download" area on the Download Center home page. This has been a particularly difficult release to publish live, and it has caused us a lot of late nights and internal conversations. Bottom line is that it took a long time for all bits to be fully live, and now they are. We on the SDK team apologize for your frustration on this, and we're using this as a lesson to help drive how we manage future releases. If you continue to have problems, please email me with a copy of your log. ...Show All
Windows Forms Add a DataGridViewComboBoxCell to the Insertion Row only
I can add a DataGridViewComboBoxCell to a row in my DataGridView. I want this only to be added to the Insertion Row.. New Row.. Row with a star in front of it, whatever you call it. I do not want any rows above this Insertion row to display the ComboBox, but I do want the value to still be there. Any help Thanks. Hi, I'm thinking that it might be possible to change the style of the ComboBox so that the dropdown arrow doesn't show, and also make it read-only for all rows except the new row. I don't know if it'll work, but try setting those properties in the CellFormatting event of the DataGridView. You have access to the column and row indices from the arguments. Luc ...Show All
Visual Studio Team System Independent builds
I have a requirements of creating independent builds. I will try to explain the scenario. Let us assume that I have a baseline build already done. Now, I have work item (WI) 1 (that contains csharp code and some DML and DDL) and WI5 that contains the same things. With these two together, I create a build. Let me call it Build1. Again I have WO2 that has some C# code and DML and DDL. I need to create a build that will contain WO2 only. Let me call this build Build2. Purpose is I need to move these builds independent of each other. So, if Build Build1, only WI1 and WI5 will get promoted to the desired environment. On the other hand if Build1 should not move further, I need option of moving Build2 to the same environment where Build1 ...Show All
