visual-studio-2008

Can I (and how do I) target .net 4 with vs 2008?

。_饼干妹妹 提交于 2019-12-20 04:30:18
问题 VS2010 beta 2 is sloowwww on my machine. I'd like to start playing with .net 4 though. Can my vs 2008 solution's target .net 4 beta 2? How? 回答1: No, you can't target .NET 4.0 using VS 2008. To speed up, you can try to create this key in Registry (worked for me): [HKEY_CURRENT_USER\Software\Microsoft\Avalon.Graphics] "DisableHWAcceleration"=dword:00000001 More info here Visual Studio 2010 Beta 2 editor performance fix running on a virtual machine and Graphics Rendering Registry Settings 回答2:

C ReadProcessMemory - how to examine the memory area associated with a process

醉酒当歌 提交于 2019-12-20 04:07:14
问题 I wans to read all of the memory associated with a particular process. I am aware of ReadProcessMemory, but as I have little experience of using it and I am fearful that I will just get a load of rubbish out (rubbish in...). a) how do I work out, from the base pointer to the end) the total region that I can read b) what is the best way/safest to iterate over this area of memory and print it c) how do I print it given that I don't know what values it will contain so that I can look at it? I

C ReadProcessMemory - how to examine the memory area associated with a process

时光怂恿深爱的人放手 提交于 2019-12-20 04:07:09
问题 I wans to read all of the memory associated with a particular process. I am aware of ReadProcessMemory, but as I have little experience of using it and I am fearful that I will just get a load of rubbish out (rubbish in...). a) how do I work out, from the base pointer to the end) the total region that I can read b) what is the best way/safest to iterate over this area of memory and print it c) how do I print it given that I don't know what values it will contain so that I can look at it? I

Cannot close stream until all bytes are written

混江龙づ霸主 提交于 2019-12-20 03:39:33
问题 I am sending a POST request to an API server and I have reused code where I have successfully done this before on other servers and for some reason, which I cannot figure out why, it's not working. I get the error: "Cannot close stream until all bytes are written." even though I declared the content length correctly and I am not sure what I am missing here... data = data + "</posts>" Dim postBytes As [Byte]() = Encoding.UTF8.GetBytes(data) Thread.Sleep(10000) track = data If uri.Scheme = uri

Using background worker with multiple classes in C#

懵懂的女人 提交于 2019-12-20 03:07:08
问题 I am learning to program in C# and have most of the basics down already. I am having trouble using the background worker and using it with multiple classes. This is a backup program that I am writing I have the following classes. lacie.cs ---> used to search for backup device main.cs ---> Main entry size.cs ---> Determines the size of the backup xml.cs ---> Reads an xml config file of directories to be backed up. I will show what I have in the main.cs so far. [main.cs code] using System;

Transaction has ended in trigger. Batch has been aborted. Derived Attribute

佐手、 提交于 2019-12-20 03:05:30
问题 I have this trigger : CREATE trigger [dbo].[DeriveTheAge] on [dbo].[Student] after insert,update as begin declare @sid as int; declare @sdate as date; select @sid= [Student ID] from inserted; select @sdate=[Date of Birth] from inserted; commit TRANSACTION if(@sdate is not null) begin update Student set Age=DATEDIFF(YEAR,@sdate,GETDATE()) where [Student ID]=@sid; end print 'Successfully Done' end as it suggests, the trigger automatically calculates the Derived attribute "Age" from the date of

Move file associations from Visual Studio 2005 to 2008

家住魔仙堡 提交于 2019-12-20 03:03:01
问题 Both Visual Studio 2005 and Visual Studio 2008 is installed on my PC, but when I open a .aspx or .master file from Explorer, it opens in 2005. I would like them to open in 2008. I could change the file associations manually, but there are quite a lot of file extensions to go through. Is there an easy way to give all the file associations back to 2008? 回答1: maybe this: Options -> Environment -> General -> Restore File Associations 回答2: You should be able to do it like this. First create a text

how to replay a quickfix log

蓝咒 提交于 2019-12-20 02:59:11
问题 I do see that this has been asked before, but I see no answer as yet. Is there a way to replay a quickfix log file? My app initiated the session, receives data, quickfix logs the data, my app crashes. When I restart I want to simple replay everything in the log file. Can that be done? Or if not, does anyone have an example of how to programatically request a resend of all session messages or of resetting the receive seq# to 1? Any help would be appreciated. 回答1: No, not really. FIX is a two

Easiest way to re-use a function without instantiation a new class

心不动则不痛 提交于 2019-12-20 02:38:13
问题 I currently have a function that looks like this: public void AnimateLayoutTransform(object ControlToAnimate) { //Does some stuff } I use this function in a lot of different projects, so I want it to be very reusable. So for now I have it in a .cs file, enclosed in a namespace and a class: namespace LayoutTransformAnimation { public class LayoutAnims { public void AnimateLayoutTransform(object ControlToAnimate) { //Do stuff } } } The problem with this is that to use this one function in a

Failing Build because it can't find AL.exe

十年热恋 提交于 2019-12-20 02:34:17
问题 Here's an interesting problem that really has me scratching my head. I have a project that's being built in TeamCity. It's been working fine until a developer added a resource file to one of the projects with some strings for another locale. He's added the .resx file under the Properties folder next to the default one. Here's the error message from the build log: C:\WINDOWS\Microsoft.NET\Framework\v3.5\Microsoft.Common.targets(2105, 9): error MSB3091: Task failed because "AL.exe" was not