enuffznuff's Q&A profile
Visual Studio 2008 (Pre-release) How to asynchronously display an image
If in my window xaml I have something like: ... <Image Source="http://www.slowserver/image.jpg" Width="20" Height="20" /> The window will be loaded and suddendly the application will freeze while the image is downloaded. After the image is displayed the application becomes responsive once again. How can I workaround this issue Is there an easy way to load the image in the background Thanks ! ...Show All
Visual Studio Express Editions How can I use WTL?
WTL 7.1 has script to install on VS 2003, but how about VS 2005 Express . How can I install it manually in VC++ Express 2005 . I have downloaded the WTL 7.5 from sourceforge, and it has script to install in VS 2005 beta2. So a more basic question, how can I execute 'js' files . ...Show All
Visual Studio MFP Package.Project source
What is the correct way of adding the Package.Project source to our Package solution All of the examples I have seen are using an import statement on ProjectBase.Files. The question I have is determining the path. The IronPython example is using relative path from the project to ..\..\..\Common\Source\CSharp\Project, but the Project sample under Archive\CS_Samples\Project\Project is using this relative path in addition to an env variable $(_NTD ...Show All
Visual C# conditional casting to generic type for value types
Hey, I have the following code for reference types that works perfectly and does what I would like to: public T GetAttribute<T>(string attributeName) where T : class { if (attributeName == null) throw new ArgumentNullException("attributeName"); if (typeof(T) == typeof(string)) return this[attributeName] as T; // this[string attributeName] returns string return null; } Of course, the as operator I can ...Show All
Visual Studio T3 template engine
Is the T3 template engine only avavilable for use with Visual Studio 2005 Is there a DLL available that I could use if say I wanted to use this instead of CodeSmith Also if this DLL is available would it strictly require Whidbey I ask because my team uses macros to spit out some code, such as dataccess code using the Enterprise Library blocks (including correct parameter discovery for stored procs) and I thought the T3 templates would be usefu ...Show All
Visual Studio Express Editions Is Visual C# 2005 Express v50630 avalaible for download?
I saw that there is a new version of Visual Studio 2005 Beta 2 with the framework 2.0.50630. I'd like to know if there's a C# express beta avalaible for download. Thanks in advance for your help luca - No. The 2.0.50630 version is the July CTP, and there was no version of Express released with the July CTP. There will however be an August CTP released in the next week, and an Express version of ...Show All
Visual Studio Express Editions File Read/Saving Question.
Is it possible to open a file and insert a string to the end of it without having to read the data then resave it all Yes My.Computer.Filesystem.WriteAllText(<FileName>,<Content>, <Append>) so My.Computer.Filesystem.WriteAllText("C:\test.txt", "xyz", True) will append xyz to the end of the contents of c:\test.txt ...Show All
Visual Basic setup.exe question
I created windows app with vb 2005, ready to install on a user machine by running application’s setup.exe, I get application warning Application Install Security Warning – Publisher can not be verified. Don’t know any other way to get publisher name to appear. Was using solution’s property window – Publish/options to set up publisher name and product name, it takes product name, but not publisher name, anybody has an answer for that. ...Show All
Windows Forms What the eck??? Error on Line 0???
Got rather weird error in my solution.... Everything has been working fine but I have suddenly got a debug message that reads "Object Reference not set to an instance of an object". Doesnt sound like an unusual message, but this one is&nb ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LoaderLock was detected
Hi, I have installed DirectX 9 SDK (October 2005) and Visual Studio 2005 RC1. When I try using directx classes for capture audio, I have a problem. The code i have wrote is: Dim d As DirectSound.Device Dim ds As DirectSound.CaptureDevicesCollection ds = New CaptureDevicesCollection For Each d In ds Me .ListBox1.Items.Add(d.ToString) Next When I run the application I get ...Show All
.NET Development ModuleBuilder.DefineInitializedData() produces bad assemblies?
Out of curiosty I wanted to see how much the code emitting classes can take. I have a machine with 1GB of RAM. Below is the sample code. Writing 40M NOP instructions seems to be the limit, then I get an out of memory exception. Good. However emittting around 500MB of initialized data doesn't throw any exception, yet leaves a 20kB EXE behind. 400MB worked fine and produces an executable of 400MB plus a little overhead. So I wonder if th ...Show All
Visual C# ForEach or For
I was wondering how can i cut this code down to maybe a function that could give me the average without setting the sum to be assigned to all those varibles is there a way i can loop through the values that are inputted to the console using System; class Addem { static void Main() { int sum = 0; Console.WriteLine("Enter 5 grades"); int num1 = int .Parse(Console.ReadLine()); int num2 = int .Parse(Console.ReadLine()); ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Unmanaged directX and .net windows form
I have written (with a pointer from you lot here - thanks) a visualisation program in unmanaged C++ DirectX. Everything works fine, however I need to be able to change and edit parameters of the model with the usual text input boxes and track bar, as well as haveing a menu with different options. I have written a little windows form program that does this but wihout the directx stuff. I would like to add my DirectX work into a window in the f ...Show All
Visual Studio Multiple checkouts dont work for me
i allowed multiple checkouts (SS 8) via sourcesafe administrator. Me and my teammates restarted visual studio (2005), but it seems we cant checkout one file for more than one person. I think it is because of database has been created with default 'Lock-Modify-Unlock' Model which doesnt support multiple checkouts. Hence the question, can i change existing model "Lock Modify Unlock" is basically equivalent to disabling ...Show All
SQL Server Framework 2.0 changes - TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.
If you connect to a server and open a query in SQL Managment studio (2005) and looses connection and then regain the connection, when you try to run the query it gives me a "TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host." This happens against both 2005 and 2000 servers. If I re-run the query it works. However, this happens in our VB.NET app as well for clients with Wireless conn ...Show All
