TWild's Q&A profile
Visual Basic How to get a file size on the web
Hello! Can you help me, please. How to get a file size on the web For example http://forums.microsoft.com/library/toolbar/3.0/images/banners/msdn_masthead_ltr.gif Sorry, i'm finished this question. Dim request As Net.WebRequest Dim response As Net.WebResponse request = Net.WebRequest.Create(filepath) response = request.GetResponse() reader = response.GetResponseStream() MsgBox( CInt (response.ContentLength)) ...Show All
Visual Studio Team System Can reports be shown on the Sites and workspaces created under Team portal?
If we create a sites and workspace under a Team project. Can we show reports within this sites & workspace For example, I created a site to manage a new team or project, collaborate on a document, or prepare for a meeting. The new SharePoint site will be created under the current Team site at: http://SERVER/sites/Teamproject/[New Site].I got a provision to specify the type of SharePoint site to a set of available site templates, but there isn't any option for having reports on these sites. Futhermore, can i have reports filtered on the basis of sites' content. If so, how Deepti You can display reports on the new sites using the report view web part that ships with SQL Server Reporting Services. See ht ...Show All
Visual C++ C2027 Error: Full class declaration required: Bug?
Hi, This may touch on some obscure corners of the C++ standard, but I believe the example below should compile as is, without the full declaration of class Atom. Comments Thanks. Stuart ____________________ // Shows VC++ 2005 Bug Requiring Full Class Declaration Where Forward Declaration Should Suffice // Compile: cl /EHsc forward.VC.bug.cc (other options didn't make a difference) // Error: error C2027: use of undefined type 'rosetta::conformation::Atom' // Compiles without warning on: GCC 3.4 and 4.0, and Intel C++ 9.1 // Compiles if: // . Full Atom.hh header is included // , std::vector is used instead of vector1, // . vector1 dtor is made non-virtual // . typedef for Atoms_Iterator is removed // Something about the vector class hierarc ...Show All
Visual Studio 2008 (Pre-release) Connection problems
I've been getting the following System.ServiceModel.CommunicationException in a service client: An error occurred while receiving the HTTP response to http://myService.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details. The client code is as follows: MyServiceClient service = new MyServiceClient(); List<myReturnType> myReturnCollection = service.ReturnList(someInt, someEnum.Item1); myReturnCollection.AddRange(service.ReturnList(someInt, someEnum.Item2)); myReturnCollection.AddRange(service.ReturnList(someInt, someEnum.Item3)); myReturnCo ...Show All
Software Development for Windows Vista Can't delete file after disposing AudioVideoPlayback.Video
.Net 2.0 C# VS2005 SQL Server 2005 I am developing a Windows Forms training application using numerous avi files and AudioVideoPlayback.Video to play them. The file names are stored in a SS2K5 database and the files themselves are encrypted using System.Security.Cryptology. I decrypt the file into a temporary file and play that file. The problem I have is that I cannot delete the file until the application exits. I have tried Video.Dispose() and it doesn't release the file lock. The player is an MDI child form. Any suggestions Been there, done that, but I didn't buy the t-shirt. You and I seem to be thinking along the same lines on this . That is exactly ...Show All
Visual Studio Tools for Office how to use ribbon control(Office 12) with C#/XAML on June CTP of WinFX
I am looking to incorporate ribbon control in our future application based on WPF, WCF and would like to build on ribbon control. Is there any documentation how to incorporate that. Atul Bahl Third party providing such control.. check this url. http://www.devcomponents.com/dotnetbar/index.asp ...Show All
Visual Studio 2008 (Pre-release) Memory leaks
I have developped a WCF services that are use in stress condition. After few hours of activity, my NT Service bigger in memory. I watched it with Perfomon counter's ( Private bytes for Nt Service and Handle count for my Nt Service) and those values increase always. I use WinDbg and its utility SOS.dll and i have make a dumpheap - stat for dumped objects in NT services. I took dump at the beginning of life of the service and after 1 hour of activity. Beginning life : MT Count TotalSize 505cd8f8 769 118492 System.Collections.Generic.Dictionary`2+Entry[[System.String, mscorlib],[System.Xml.XmlDictionaryString, System.Runtime.Serialization]][] 7910af08 2021 121260 System.Reflection.ParameterInfo 505baea8 5257 ...Show All
Visual C# Passing properties as delegates
Let's say I have the following: class Foo { private int myInt; public void SetInt(int i){myInt = i;} } And then somewhere else, I have this: delegate void MyDelegate(int); // Define a delegate that matches the signature of the Foo.SetInt function class Bar{ void DoStuff(MyDelegate someDelegate){ .... } // A function taking the delegate as an argument } Now I can easily pass SetInt as a delegate to the DoStuff function, no problem there. But what if I'd used a set property instead of the SetInt function, like so class Foo { private int myInt; public int MyInt{ set {myInt = value;} } } Is there any way I can then pass the MyInt property as a delegate to another function I suppose I could do it by wrapping it in an ...Show All
Visual C# C# Conversion Issue From Java Encryption...
Well folks, seems like I'm in a bit of a pickle here. Converted info from a Oracle backend to SQL Server and one of which was a column in a table with all encrypted values for a password field. At the same time also converting the java code that accesses the oracle into .NET thus the problem. This is the Java code that does the encrypting of the password (deriving from the java.security.* heirchachy) : MessageDigest sha = MessageDigest.getInstance("MD5"); byte[] tmp = passwd.getBytes(); sha.update(tmp); password = new String(sha.digest()); Going by that it seems that to match what's in the database the user input would have to a) First become converted into a byte (with encoding perhaps being taken into consideration) b) The ...Show All
Windows Forms UserControl resizing in a container
Hello, I have a user control in a tab page, which is in a tab control section. Whenever the main form window resizes itself, I can't get the user control to redraw in the newly available width. I set the SetStyle() method with a flag of ResizeRedraw, but no avail. How do I resize Do I have to do it programmatically Or tap into a resize event Hey, The tab page that displays the user control is programmatically created. I have the user control with dockstyle to fill as you mentioned. However, it fills fine; when the program container resizes, the user control doesn't repaint. So when going from half-sized to maximize, it still shows the half-sized text. What can I do to repaint this user contr ...Show All
Windows Forms GUI for multimedia application
Hi I need to implement an application that shows recorded A/V streams and corresponding notes similar to Macromedia Flash Professional. There will be a timeline for video and notes - each note has a certain time code. Will I be able to implement such an application using Windows Forms Where can I find samples or tutorials for multimedia GUI designs Thanks! hi, plez tell me abt the play method used for DVD play purpose in windowsmediaplayer. JRQ wrote: VS2003 - To add it to the toolbox. Add/Items... then click on the COM tab. The WMP activex should already be listed. You just set the axWindowMediaPlayer.URL to the file you want to play to use it. ...Show All
Visual Basic Very simple question; how do I make the program wait, like in seconds?
Can anyone tell me what to use to make the program wait for a specified amount of time I've searched, but I can't really find the information I need. Thanks. you could also use a timer if you wish, which would be better in the sense that your application won't hang since Thread.Sleep() pauses the application (like it hangs, unresponsive) as the timer approach won't but wait until the tick has been completed/raised. You could during this disable the form to prevent the user from clicking buttons etc... but perhaps also put in a status message like "please wait..." or something. ...Show All
.NET Development HttpWebRequest Problem
I'm using HttpWebRequest with two method GET,POST I'm using dial up connection and DSL connection, with dialup connection there is no problem but for DSL, at some of providers ISP connection I face problems - the operation time out - undlying ...... (closed connection) The proxy has been set. so what is the case Have you consider getting a copy of Fiddler to help you with this http://www.fiddlertool.com/fiddler/ ...Show All
SQL Server SP2 fails during full-text install
Got this error trying to install the service pack on one of my boxes. Any help 02/19/2007 11:19:59.890 Copy Engine: Error, unable to install MSP file: c:\d758bb9ef6e34b2a3f5f9e0f043495cf\HotFixSQL\Files\sqlrun_sql.msp 02/19/2007 11:19:59.937 The following exception occurred: Unable to install Windows Installer MSP file Date: 02/19/2007 11:19:59.937 File: \depot\sqlvault\stable\setupmainl1\setup\sqlse\sqlsedll\copyengine.cpp Line: 800 02/19/2007 11:20:09.453 Watson: Param1 = Unknown 02/19/2007 11:20:09.500 Watson: Param2 = 0x2b18 02/19/2007 11:20:09.546 Watson: Param3 = Unknown 02/19/2007 11:20:09.578 Watson: Param4 = 0x0 02/19/2007 11:20:09.625 Watson: Param5 = copyengine.cpp@800 02/19/2007 11:20:09.671 Watson: Param6 = Unknown 02/19/20 ...Show All
Visual Studio Team System Code Analysis for device projects
Hello, is anyone able to use the code analysis and unit testing tools on device projects If so, how is this accomplished Thanks in advance, Peter Vrenken All new application and assembly projects. I am looking into all the new features that TFS provides, and porting existing projects is not yet on the agenda. This is the content of the HelloWorld.exe.CodeAnalysisLog.xml: < xml version="1.0" encoding="utf-8" > < xml-stylesheet type="text/xsl" href="c:\program files\microsoft visual studio 8\team tools\static analysis tools\fxcop\Xml\CodeAnalysisReport.Xsl" > <FxCopReport Version="8"> <Localized> <String Key="Category">Category</String> <String Key="CollapseAll">Collapse All</Stri ...Show All
